From nobody Tue Feb 10 00:23:07 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of _spf.google.com designates 209.85.221.53 as permitted sender) client-ip=209.85.221.53; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wr1-f53.google.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.221.53 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1632174423; cv=none; d=zohomail.com; s=zohoarc; b=IgfMuDoR89bcuL5I4gW+XjibH2uTCYLxJNyYKYvjekaXEoXoyXJW8qBK8QHsxBZvwnB/sxBvWY4PtdtVoTU4qStGSLryvUtWHt8Xv+DBV8ThJGkN9TnmLsbviOf0GgDXKZ35aWqnYC4yNUx3FPYQ0aBb5PhOmijtzVG5vXtpqC4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1632174423; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Sender:Subject:To; bh=zo8kftudnPOZgXxxzKZCu6JZDCUogG66dPAYCxpYeH4=; b=gMhTP078i9StrRj/pxOXdQ5+QKMc32DOfLRKR+eMBz0vYLVMNjtkK+N+fODv72Vultxr/KYCwmdLC7C477joY90CvkZCcpYAUBPv2KgE2ZzZqOPgGZ0c22opud2yklJw3w8j/rLMiJ8mn08alaKthVAfQBI+Oi6Rz07sIiSBUA8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.221.53 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) by mx.zohomail.com with SMTPS id 1632174423055139.92002751132213; Mon, 20 Sep 2021 14:47:03 -0700 (PDT) Received: by mail-wr1-f53.google.com with SMTP id t7so322914wrw.13 for ; Mon, 20 Sep 2021 14:47:02 -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 n26sm691138wmi.43.2021.09.20.14.47.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Sep 2021 14:47:00 -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=HZcPnQNoLd1/5Cd5QMamTZjuLhCfDQ5fM0ZSH0Su0vWHMEr9mK/7mACayWz/YxwyKO 1gHzYhX2a4+8TYZSy+VKj0GMlf2X69kLczl7eOHn/LUyVx+E6OoBWVqWRtk6BbddyY4y h3vnVOd2xf2zXQUz5QfzvI62yob4Dae0/qXpe3781tBxI+4g4jz25lqHjTDuP0AUTxe7 1cM/TJ+QneqIMfFa9pWG6pdWMf2+Y7Cs92HXIFL69isAvG4/Ft0NHZxU2FnBZj+r3rcT KmFLMaHxIy9dFFFxKK+/8W2E+OIBf3i+XfaJSGGBRFph/CipcOrtVNUq4I9Pvy++5Mo3 ZB6A== 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=SbVxxEwsoBoCvmonQ8s/fw9ET6w8bYgSPhi+Z7J3yZxgvYPHRSmBPZ4nPZTV8JgYSQ nPTYOfvgomolIe3wkR0GI1BXo2tswX5pza19BQnDV8+Fn7nBY2IYKd/+1Ma9NENdTuAz qgjFjcuTtJh6aHgF4GNsMQ6tKQJ0sHlJEPEswER96iV7t1LyB0ydNndBiMBCG6q741d8 Uh95aBP5qgBJtYYFH2LyfIwBPmuasc4YA9tcJbTrf+Gjm8VjHc/GANmzIe02qsVwUAuN BLfv2fobl66esa4eNz+PRwYXF+JT0UPlpfrYyuoAKEs0oGCdc3XWwrx8W4qKEV5B9j4R kxPw== X-Gm-Message-State: AOAM532k0bqupG0C2jdu8q0DI+JeCFpna3RyekHOaI1Ry16ZYiWYCr/1 d4vQUJEhybfv/sN2yRe/b1c= X-Google-Smtp-Source: ABdhPJxGk72mR05cqEE/KhitBJgbpHrCKGeuzOMe5hEemP1wUt/UROqmXWBFKD1k/gJUEBwaCzl8rQ== X-Received: by 2002:adf:eb4c:: with SMTP id u12mr31459538wrn.111.1632174421315; Mon, 20 Sep 2021 14:47:01 -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 v5 29/31] target/tricore: Restrict has_work() handler to sysemu Date: Mon, 20 Sep 2021 23:44:45 +0200 Message-Id: <20210920214447.2998623-30-f4bug@amsat.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210920214447.2998623-1-f4bug@amsat.org> References: <20210920214447.2998623-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: 1632174424862100001 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