From nobody Mon Feb 9 18:46:37 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of _spf.google.com designates 209.85.128.43 as permitted sender) client-ip=209.85.128.43; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wm1-f43.google.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.128.43 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1630692880; cv=none; d=zohomail.com; s=zohoarc; b=DN0LFs3lpJrOt4NP2dwg9d9lD24yV3SHgj76aCsbIb4xfrKUGJAx9f/MgRBtB3xMdKd2LkLRAsbKriZr/rCXp3rpDpiC6/9y3GOj+PBe57gpdxPMueSm85weCtl6UW24szBnWD0g7Yz7AFyFZFw3peLsmhlxkzImBswsjZYoemg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1630692880; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Sender:Subject:To; bh=A19B3XnYK5iosC8N3WaWzgfCc7f73/1fliTA2V4jk14=; b=f+WG7hMijfuyPAebYHxJhT/Xq2Y3d+Yjfg9MRXQS4ajQmZ33X2mu6Ca/NengLBJuPdmC0bozjAECZ/wqMtCIRlXsvKOXo1kJxqQxdVr5NYmwHTcT0wmVOlMjUEZpfftWFfaG15mLf6UGlIQGDDN5wVa92VUJ0akoPvioptjMZgs= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.128.43 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) by mx.zohomail.com with SMTPS id 1630692880276229.14811316302234; Fri, 3 Sep 2021 11:14:40 -0700 (PDT) Received: by mail-wm1-f43.google.com with SMTP id k5-20020a05600c1c8500b002f76c42214bso119365wms.3 for ; Fri, 03 Sep 2021 11:14:39 -0700 (PDT) Return-Path: Return-Path: Received: from x1w.. (21.red-83-52-55.dynamicip.rima-tde.net. [83.52.55.21]) by smtp.gmail.com with ESMTPSA id j18sm5584248wrd.56.2021.09.03.11.14.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Sep 2021 11:14:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=A19B3XnYK5iosC8N3WaWzgfCc7f73/1fliTA2V4jk14=; b=gbvI5CNIvwVasuPa+ul2iPYuxkugpsQp9e2yvjHa6rTSV3cZm4ZqzzhcUFSqhd4Bg5 qS/ysH592m9eL4tfCwMX1gC3fDjOxA0tzUeb7V7ikQUobTijXvAor/Phr5ZgvJRr4/5h 9ZdWw5qowQu3quYKh4cbxiLmN6H1oEiVK3zyqKf1eiLVFc1/rsRZw2ciqif8w1QGRRF4 IuauiFs+Ktr8Wfu/C2CESlwVjLXdhknsTeJGIBm+Kais5PZdY7OBJuFCtALIAADHJBzs +ERXsUxoyasCz2WigEt9Glrt8NcSgdhI8tkJHdoOl/oog8nQZeDqXLWXxvQPP//kRcbc HZQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=A19B3XnYK5iosC8N3WaWzgfCc7f73/1fliTA2V4jk14=; b=g0IaH0H6z8LlUF8OHnaamrHdaarUxd7qrC4ibOldIuOGYMXtW231KdbEIosxiGA8Xe H1VWw/3QuX57lXmVoCAroqOU+sArn0o+ulJ4/Xg4rKVohiQd5uOGWN9wPcoWCe+aWrVJ Y/KthHStONjrgm1XlYo54wIV3foQ8H8+iI+BWw4ctqU1ENlNB2LZVUSiRFYlg/g0I1Xm BWUm1Iq6z3WImLTavEF8E8dekbaq56YyGSYef6qpF6CHQNZvlSdx38Jfz0OQfq0Wv3E3 APCluKE+EtAsMNGgDiXac3jaQOv55OwFeYmOo5/zCsazaGJdHqbCHsLBJoNGxEUDnyhE V/YA== X-Gm-Message-State: AOAM531jxxwyrwZFArONqGIuE5ahDWJNks4CAzsmFmgGPKRdqA8Qjk9i UeNda5HNY8B3JCgJ/CUfsVr4/kw54pk= X-Google-Smtp-Source: ABdhPJwsMv5zKZYdPZ/ffk+o37IDLwD8z6dkFXcnv9z7z5vhbgak3Oe1Rhnt2NQGplQbzwhIB7v2Yw== X-Received: by 2002:a7b:cb09:: with SMTP id u9mr122250wmj.63.1630692878580; Fri, 03 Sep 2021 11:14:38 -0700 (PDT) Sender: =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Richard Henderson , Bastian Koppelmann , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH v3 28/30] target/tricore: Restrict has_work() handler to sysemu and TCG Date: Fri, 3 Sep 2021 20:14:35 +0200 Message-Id: <20210903181435.761585-1-f4bug@amsat.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210902161543.417092-1-f4bug@amsat.org> References: <20210902161543.417092-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1630692881202100001 Restrict has_work() to TCG sysemu. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Richard Henderson --- target/tricore/cpu.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/target/tricore/cpu.c b/target/tricore/cpu.c index b95682b7f04..728da5d4ee3 100644 --- a/target/tricore/cpu.c +++ b/target/tricore/cpu.c @@ -62,10 +62,12 @@ static void tricore_cpu_reset(DeviceState *dev) cpu_state_reset(env); } =20 +#if defined(CONFIG_TCG) && !defined(CONFIG_USER_ONLY) static bool tricore_cpu_has_work(CPUState *cs) { return true; } +#endif /* CONFIG_TCG && !CONFIG_USER_ONLY */ =20 static void tricore_cpu_realizefn(DeviceState *dev, Error **errp) { @@ -154,6 +156,9 @@ static const struct TCGCPUOps tricore_tcg_ops =3D { .initialize =3D tricore_tcg_init, .synchronize_from_tb =3D tricore_cpu_synchronize_from_tb, .tlb_fill =3D tricore_cpu_tlb_fill, +#if !defined(CONFIG_USER_ONLY) + .has_work =3D tricore_cpu_has_work, +#endif }; =20 static void tricore_cpu_class_init(ObjectClass *c, void *data) @@ -167,7 +172,6 @@ static void tricore_cpu_class_init(ObjectClass *c, void= *data) =20 device_class_set_parent_reset(dc, tricore_cpu_reset, &mcc->parent_rese= t); cc->class_by_name =3D tricore_cpu_class_by_name; - cc->has_work =3D tricore_cpu_has_work; =20 cc->gdb_read_register =3D tricore_cpu_gdb_read_register; cc->gdb_write_register =3D tricore_cpu_gdb_write_register; --=20 2.31.1