From nobody Mon Feb 9 23:03:02 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of _spf.google.com designates 209.85.128.49 as permitted sender) client-ip=209.85.128.49; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wm1-f49.google.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.128.49 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1631467790; cv=none; d=zohomail.com; s=zohoarc; b=FecGgWuiulhGnUxLmyldWdMfyDhJzSAZWENU0STH6FD7Ya3sJA4KjYmtkh7JiCRL1+C2Gazimj3Rty+NAY64R2XWZKvY3JAse+U8wJWhzIesnCwEtA6ntcJWB1Fu4LibLAZTPOMo1WumpYRM91AXSQgPyOdGme59s7URGP/aEv0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1631467790; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Sender:Subject:To; bh=zo8kftudnPOZgXxxzKZCu6JZDCUogG66dPAYCxpYeH4=; b=Ys/VlJZO8aZ+ZSSLQjhHravSvfZEzhXWL0WSAeWl7CsIvptH2eKBZ1Z2I8Ru9bvPbT3jqfyJ3XDTMmPEP3+NoTeZHzFykCchwamDj58CEFIS/94YTSxN8aYtYHsavCrKWwzMMYnjKVOo5z+LGWoCB+5kggCEwlyj52Q6BJih0HU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.128.49 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) by mx.zohomail.com with SMTPS id 1631467790379939.719096161751; Sun, 12 Sep 2021 10:29:50 -0700 (PDT) Received: by mail-wm1-f49.google.com with SMTP id l7-20020a1c2507000000b002e6be5d86b3so4965844wml.3 for ; Sun, 12 Sep 2021 10:29:49 -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 o2sm5301135wrh.13.2021.09.12.10.29.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Sep 2021 10:29:48 -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=nDkBx0SE2JWOWic80sIZo+UWrCW+cSKt1Ly1bAzgQtgunxnbZEbKKIBiURMdUiuM/k OZ7Yn1K+Ii6BG7dP1kh0WC5CDmZu+t3NrerEFmbfuO03wDwNPsalCpQuqjzrs4HrpmU/ 0DeAdJWU19kH/zSANj/WEtsG+IQrruIPwj9pPYC9CO52nEuSGAMrh3U4Js8NFNTESluP OaHklBCu71pro5Pwlk+LCE0e9e93vh5HUQLnkpqZFhwxr+RL7YPOovkFhYzxIll3LEyx lXKbVduI4T/Bl2Uz5+yC6lUE0s4l31Jv6t8vvBcQKmpDRc6/uDEgcfiU2kO8wwD4pMeC b78w== 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=obGQA6TGFQeVAmw3WmZjQ+ClUNrA6rOv9N9HSBxCwJPWcLl+nRTlOSEow/Np4eTCzY 8eYJ9U9Lv6dWilXKw/IUyiMSaRair+Cy7RBZE/eCD9ny7bVmOhNdqzir02FT7l0QqXRn 3m82h0/tL6cjW4TpoyJ9MUFi1QE63aeIz/UL7hEAiu6kDqUD/wwiwMqT3L+SAUmJa4qS loO+6pBe6rLloPFexMIG/xIm9HCu5ZVQgwOPov5xUz71X3hPJNBLRhya2acvvDkO9oaY OB/C6wKHElReacg18axD4zB/T/x9DJ+Q/D9WCrGWXnB+lhdzp7tJMl/2jPOuxpTBQQD4 KanQ== X-Gm-Message-State: AOAM532gkQzROITLg3w5WcXUcQTx4Fa7ft19Skst40A0bJoIMMSV4jkc QOAoC1evX1AW2kh39CU3yR0= X-Google-Smtp-Source: ABdhPJwkUbT+jZV9DIoyS1BD13V7X7qv3lQ4N0BUO3k02DmuP5doAX5ZijLrTwTlOELZ8Z9MPLN5QA== X-Received: by 2002:a05:600c:1d0e:: with SMTP id l14mr3618329wms.16.1631467788676; Sun, 12 Sep 2021 10:29:48 -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: David Gibson , Richard Henderson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH v4 28/30] target/tricore: Restrict has_work() handler to sysemu Date: Sun, 12 Sep 2021 19:27:29 +0200 Message-Id: <20210912172731.789788-29-f4bug@amsat.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210912172731.789788-1-f4bug@amsat.org> References: <20210912172731.789788-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: 1631467790953100001 Restrict has_work() to sysemu. Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- 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