From nobody Tue Feb 10 15:45:32 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of _spf.google.com designates 209.85.221.41 as permitted sender) client-ip=209.85.221.41; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wr1-f41.google.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.221.41 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1632476507; cv=none; d=zohomail.com; s=zohoarc; b=aQ4Us/WcXhk7G8+3mlENYfpC+82F/XivtH5TOx5Ms8+rwjrG8DceWnZeRoRLmciY2BQSMmFQMVusLG65sTVhicdViB+vfBmdW9mUTRjBiSkeWoSwd8dBUnzZwFRreJKXwVsGXxQa48RGeO9Kr+u7sYRZfGUAhQS+hWCYuAicJ5k= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1632476507; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Sender:Subject:To; bh=zo8kftudnPOZgXxxzKZCu6JZDCUogG66dPAYCxpYeH4=; b=JDdXyYgNiwYYeyDkApZlBeuE9fM9WjchmiPNHIF13/76KMADoAiY8yp1o9f3alvEz5jZLdkwf7GBCf8Nak+lDjC6kwffVvWNzYoZ7aZsDYxCknX30vr1zJIa7kt1QfVftYaSm1b2kfq0p/WlTNTZdbx3YmWcdvFs5sueSE0mEPU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.221.41 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com Received: from mail-wr1-f41.google.com (mail-wr1-f41.google.com [209.85.221.41]) by mx.zohomail.com with SMTPS id 1632476507217198.05629006397612; Fri, 24 Sep 2021 02:41:47 -0700 (PDT) Received: by mail-wr1-f41.google.com with SMTP id d21so25382513wra.12 for ; Fri, 24 Sep 2021 02:41:46 -0700 (PDT) Return-Path: Return-Path: Received: from x1w.. (118.red-83-35-24.dynamicip.rima-tde.net. [83.35.24.118]) by smtp.gmail.com with ESMTPSA id 20sm12868821wme.46.2021.09.24.02.41.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Sep 2021 02:41:44 -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=zo8kftudnPOZgXxxzKZCu6JZDCUogG66dPAYCxpYeH4=; b=chUbqeJV+99AjzZ2+mWb6PHXxL7KV1IoRNF/wC+uVUh4JMDQ6+DrfIgieceLBCNV0y gRqWvQIdoPnmkPC0MjNEbNq3HhLsffeDQXOvgFY7IW9qPPAJ5P8/FXSzead+XE7v2V4Z VnLh3NUaBnMf+uJjcgBZKDE+SCLVZERmOu0K+yLqD3UqhUq5a0F72qut3HXWHqsQiBaV nK9AurxeUFi8cPgqTWj8I2UPUYFzwNCoBg9UvMLfHpuLCAvvclenYdIwTLaT5ajZuA63 GxxWbz3l+JKgmLmSA/evbleZwvOyrs9GMRCVt7jKiLA9GW32275/qgsVi5BhBfZx40bh NybQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=zo8kftudnPOZgXxxzKZCu6JZDCUogG66dPAYCxpYeH4=; b=cCfj8FcqxPS4xtCFpQW3G+KbNzINkJr0aRYI1W/4vF36wx+fyjdKAY7gqlPHYYV4J8 eoZtdj0r1ocHLKTIC5HSjvDW1kuCpZhVAX6i2pXXCBKjaIauqzHb9FohBLpN5qutMkDw KqDkhEvenqSk4dxlylxyOG5dMx68JcGdQkq3m+dmkqCyUm+twlQ2G9m7zTJNRdRqIOh7 Wb0OB2nJWcHhBUMD9WtNnVeiUJvwdh4Yq+SLklsvhQXF5II4EKxDA5JLiHqpLkoxuDUM /rMMxwPf/z2hyAn1MGra8vQaTn3h1GfBTa+/Dwz8sjzI/hy65fZV6Opu/oqNezUnJilj hFlA== X-Gm-Message-State: AOAM533EMzSwtznX9QstwFAjepl1oEp02wlGVlror8wHxpV5z9zzmfRH MZl/16+CzWT0cZWOqAEzmthfz6kMrKU= X-Google-Smtp-Source: ABdhPJy1UoZIAFxZw7dsk5UXIWVHWrGa0sr0xKDp49LL/Sd1laHKtSJCf1n0E7mSfIOzxvMsWdDKgQ== X-Received: by 2002:a7b:cc18:: with SMTP id f24mr1091089wmh.8.1632476505294; Fri, 24 Sep 2021 02:41:45 -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 , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Bastian Koppelmann Subject: [PATCH v6 37/40] target/tricore: Restrict has_work() handler to sysemu Date: Fri, 24 Sep 2021 11:38:44 +0200 Message-Id: <20210924093847.1014331-38-f4bug@amsat.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210924093847.1014331-1-f4bug@amsat.org> References: <20210924093847.1014331-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: 1632476507927100015 Restrict has_work() to sysemu. Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Bastian Koppelmann --- 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..419fa624bd5 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_USER_ONLY) static bool tricore_cpu_has_work(CPUState *cs) { return true; } +#endif /* !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