From nobody Tue Feb 10 11:34:29 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1767882982; cv=none; d=zohomail.com; s=zohoarc; b=GchDo4RUkeILnQlkNPWrBxdxLsiYhCRx3t9GIzHMtPD8ap8R0F816bXcmE6E11c7+9AT30piXSle4XfTTGK0OpA8CE8xLKwWx/nEu0MLV9dnl5t6AbUOVmsz/SDsndjr0p+1jAkSfY6LUbuHylunFTlJnaBCxGucuhSzGl5GiwU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1767882982; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=4tMArHc3fpfAyjhrmZC/JPcKIoMMLYn+9tiOMpEVPwg=; b=cQaXJvpWyo7KbbyPua8lBjQS38XH+cn5MEq8i9SY6Oh2C8NaC3YBmt6fKaY2X7UCU5qWJto/LhTOeqw/KSq2ZW3kXDNhZw24EPnyrDOF/TT9tfSab0X9S+Uti4fw1Iv6mXHqz6bcvfuXiHdK8nz3KKhuNGQxoFl2JEZ4FYVSAe4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1767882982305223.54473840459502; Thu, 8 Jan 2026 06:36:22 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vdr6B-0007Ct-5v; Thu, 08 Jan 2026 09:34:51 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vdr5w-00072A-VZ for qemu-devel@nongnu.org; Thu, 08 Jan 2026 09:34:38 -0500 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vdr5t-0000iC-Oh for qemu-devel@nongnu.org; Thu, 08 Jan 2026 09:34:35 -0500 Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-4779cc419b2so28521765e9.3 for ; Thu, 08 Jan 2026 06:34:31 -0800 (PST) Received: from draig.lan ([185.126.160.19]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-47d7f6f0e15sm151880935e9.10.2026.01.08.06.34.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Jan 2026 06:34:27 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id BADCF5FA43; Thu, 08 Jan 2026 14:34:24 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1767882871; x=1768487671; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=4tMArHc3fpfAyjhrmZC/JPcKIoMMLYn+9tiOMpEVPwg=; b=rsPqBg7z/CpNF7p0A9Fq7t17E39KhznUwiz8jAoiGu0fn38vV2DRtT9UOwyAHhv66g OsAt+j9yocxJXgAY5nma9YBEv0jqcNFlzKdvoZbwj10ZDM3RvLEOdPy4LNY8RGJCVk6Z 9W1F57tl3pKvOvO43+vM1A5CynjliboQoOodlj6gKLsJxya4Y+7/bE4g9hqPJVELkooh 2axeuO4mWGJt+5jAQkGzeD8zGHh4s4u0YPHYszXFbx2Rty/JtXNi4fe6sqG5vKS6TRVe e/IGSIh9iUHjYCiipogHGPXXC8WnVkvZv0V0VOsQYuW/9NmqCtzoSdQFciJz/w4ZDsdf mnvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767882871; x=1768487671; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=4tMArHc3fpfAyjhrmZC/JPcKIoMMLYn+9tiOMpEVPwg=; b=gdLylH3Ttk7fUbQWIlDUna4Yxi2yivLFzcO/LA6sxjw2Lz/+9tOvFtJ1Kqwm5zWzUl 8EFoFQ02Wps60KdP/ItqacK4s4/BzUUVYWbndHUDsylSwBQxfXtVD8sL+2y6kGfGR2NL de+YSvxJAVz6FR3kQdUPVbv5cbDWr9+V9VY2OUjQL+Qedq1svM/a0DAhWQoehH5o819a 0Q2Jrsf2cWS99cha3g3xk81yFfv8PJkYrf89K1zqI1aa3PX5zzJZkJ5B38qMrqrekAa3 Dv3k/z6inGs2FC6gUA26QtT4TG80kNUXsKANt+HdjwkncRASb8DCmb0c90ZRLak7H+q+ +i0g== X-Gm-Message-State: AOJu0YyEs/s5Yov+UKZFxpUzS42FuMN5at/XPqt5Nw5ijKay3nzJmO1Z e4+Twc8Kh5k9cOnExHAN38etAgsoJ8uzCvK5DVc7NDzRVcUeF3u82LqoEr/dNWEno/s= X-Gm-Gg: AY/fxX57vizSFTsKp6/Hp/AlOz6GZK8I0uG69WlkFKmEFTL8hSAzOTbp4xl9qFu3qYy gbvalwSEj7c2eGqUrluVh4n7Hen0D3pMhaljOo2A9ag+QazAtAITziuoNJYE4bpfNUJsHSHK/Gh 1zIgxba5twabMvdxsRZ7s8jZ56x1p+S4LeUtf6F6RXqqsEQgVhRaEUvaRFyUVEyAGPYTfDiIefN 3uivNgVAiTi2ptZmU9Qerwoazf7JT0zwE2l6OvYNe+nHfVYJYfZh0pjosthiBUy8eNZC2CE1pnO Wk1geyUmsE16IWyPaT10wpfI7yM7gj6bubqy1QwcJWxpbsoPT4/p2K/ZQawXMw30EdTiby35A/Y B/l/MHIdVYwn3DtSo8FWu6790InX01kirUV6l8mhZPo41eFcWpG1kAaQZOCDbQzBGBpxICSmXPn 4yrNbxtMdHCOU= X-Google-Smtp-Source: AGHT+IHVOmi2wf66jvsMbt43DmnepHxzKqyfjk3Ie12Q2wlyN40HtlHxf0wwxQZu/Pawgbt1iVWkJg== X-Received: by 2002:a05:600c:c0ca:b0:47d:87ac:73b8 with SMTP id 5b1f17b1804b1-47d87ac7a94mr50207325e9.27.1767882870776; Thu, 08 Jan 2026 06:34:30 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Aurelien Jarno , Jiaxun Yang , Bastian Koppelmann , Marcel Apfelbaum , Zhao Liu , Peter Maydell , Laurent Vivier , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , qemu-arm@nongnu.org, Yoshinori Sato , Yanan Wang , Aleksandar Rikalo , Thomas Huth , Eduardo Habkost , =?UTF-8?q?Alex=20Benn=C3=A9e?= Subject: [RFC PATCH 10/12] target/tricore: move cpu_reset from tricore_cpu_realizefn Date: Thu, 8 Jan 2026 14:34:21 +0000 Message-ID: <20260108143423.1378674-11-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260108143423.1378674-1-alex.bennee@linaro.org> References: <20260108143423.1378674-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::331; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x331.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1767882984919158500 Implement a proper cpu reset handler for tricore cpus. Signed-off-by: Alex Benn=C3=A9e --- target/tricore/cpu.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/target/tricore/cpu.c b/target/tricore/cpu.c index 04319e107ba..c3dda9f6a54 100644 --- a/target/tricore/cpu.c +++ b/target/tricore/cpu.c @@ -24,6 +24,7 @@ #include "qemu/error-report.h" #include "tcg/debug-assert.h" #include "accel/tcg/cpu-ops.h" +#include "system/reset.h" =20 static inline void set_feature(CPUTriCoreState *env, int feature) { @@ -81,6 +82,12 @@ static void tricore_cpu_reset_hold(Object *obj, ResetTyp= e type) cpu_state_reset(cpu_env(cs)); } =20 +static void tricore_cpu_reset(void *opaque) +{ + CPUState *cs =3D opaque; + cpu_reset(cs); +} + static bool tricore_cpu_has_work(CPUState *cs) { return true; @@ -120,8 +127,8 @@ static void tricore_cpu_realizefn(DeviceState *dev, Err= or **errp) if (tricore_has_feature(env, TRICORE_FEATURE_131)) { set_feature(env, TRICORE_FEATURE_13); } - cpu_reset(cs); qemu_init_vcpu(cs); + qemu_register_reset(tricore_cpu_reset, cs); =20 tcc->parent_realize(dev, errp); } --=20 2.47.3