From nobody Tue Feb 10 03:56:05 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of _spf.google.com designates 209.85.221.44 as permitted sender) client-ip=209.85.221.44; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wr1-f44.google.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.221.44 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1632695413; cv=none; d=zohomail.com; s=zohoarc; b=LoM5V2b1CCaTa87gePP+P76Z44HW1r7BwjECN7M0HpCj9YAPKte+HvKdAvIjtF7ERc325XomYEOdiG5ZG97MtA5ANz3Thd1Ju970XGRfxZbQeODwwHdmE2T7o2HBv7FxhIFs858ApuUoH8RzNMvOB+O0viWgf2/I5SlLWM5rFm8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1632695413; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Sender:Subject:To; bh=1gsdxrxIkLL008ui7WH6lPMx1hd/4ygkSIHUg3uTtLo=; b=bZqCp9FRTCV3ls0IC2ChuWKL4/PmA6oHB+UTM7DicksYrJPP18IicZenJ8bFAd5mc4q4TbXup7UiGtgJXoGUUFC7KeCNd5zCOGHxBebzMyRS5Eh60AvfTWhguKlnbjBG55het7c+qjwzFKijW58GTzAUpJD6Xj2fG9Gje9vXnhg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.221.44 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com Received: from mail-wr1-f44.google.com (mail-wr1-f44.google.com [209.85.221.44]) by mx.zohomail.com with SMTPS id 1632695413727493.14531358729505; Sun, 26 Sep 2021 15:30:13 -0700 (PDT) Received: by mail-wr1-f44.google.com with SMTP id i23so46582250wrb.2 for ; Sun, 26 Sep 2021 15:30:13 -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 b11sm8345335wmb.27.2021.09.26.15.30.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Sep 2021 15:30:11 -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=1gsdxrxIkLL008ui7WH6lPMx1hd/4ygkSIHUg3uTtLo=; b=PpjUmsuZA+KYcyopDCxf73aGZ1pXnkPG7BtLPRmyG7WNbe5M9hIDP6d2qoECu8wrQo D5LBKtDl0euZIeCBi9f3G7UeyhIzbUUS0QJU33xmpnr+EaI3noqRwJ9WS4otst5/R9h+ GKQ99dZJWhzq+XZfn3l/sNA1M82/Qs6kMq710sJVLEWPP4c6TqapJYHUMaODaHnxWkIE JMeMh5Jg4hCbW+sLx7i1++DiknYuLKGRp1SlF94nrrAfodNg6d3svw3w7SxdFTJffaLh xq3FFhgbDVKyYnT5lZg1HVL8f9BTNowE8l1uvhlxh224SWwLl9tfIhu/PC0XgqtlrCmS bgTg== 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=1gsdxrxIkLL008ui7WH6lPMx1hd/4ygkSIHUg3uTtLo=; b=jXvqLhsFBXQgFurOpaSoodD61Yz+n1DG+KAl2rTOQWxi5t+RCexyoTwg/WhqdWrJAH vUlm3/baCdHXYufWRuhjfA1uJyIuJlfeBj+xbyY3q+ZbbFxeH+0XhEZqTCHX/GYgn8bL weESsT2vD0U2C/2WbEN8JwlquNc3G97RR8NM2IfjfP2Kgyy+ooha3k0oZ0z9PNZ6dSfM JA643CDKU2Uz1T3tr9YfkkiS7LVCxHK062cDJtdzkBDY+Vgf09axjxv+y+mMF9e6P2AO 3pBWLDmH7wOvovLIKK9TVQzLsvQg7n0RmbEUiXlULfOHr0MNIQ5sTA0uumG6Kxk0FSeQ G37g== X-Gm-Message-State: AOAM530noqJU/vRRdukm/l/3smICJ6D5jj0Cs8UiU0wsY8nKjelPkJGT f0F+8hHXZDT8W6XUbjMHaCw= X-Google-Smtp-Source: ABdhPJzSoiVhoETIUZjTn+HRPlmlsO5sQXjJhJz0SSvcLI654NXR9Jt6xwjYKO/r9o9vIU17JZmx6w== X-Received: by 2002:a05:600c:40c4:: with SMTP id m4mr12658825wmh.100.1632695411857; Sun, 26 Sep 2021 15:30:11 -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?= Subject: [PATCH v8 37/40] target/tricore: Restrict has_work() handler to sysemu Date: Mon, 27 Sep 2021 00:27:13 +0200 Message-Id: <20210926222716.1732932-38-f4bug@amsat.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210926222716.1732932-1-f4bug@amsat.org> References: <20210926222716.1732932-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: 1632695413958100001 Restrict has_work() to sysemu. Reviewed-by: Richard Henderson Reviewed-by: Bastian Koppelmann 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