Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B0CC2D1D482 for ; Thu, 8 Jan 2026 17:23:33 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vdtjM-0007YL-Fx; Thu, 08 Jan 2026 12:23:28 -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 1vdtjD-00075E-U0; Thu, 08 Jan 2026 12:23:20 -0500 Received: from zero.eik.bme.hu ([2001:738:2001:2001::2001]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vdtjB-0003ZI-UO; Thu, 08 Jan 2026 12:23:19 -0500 Received: from localhost (localhost [127.0.0.1]) by zero.eik.bme.hu (Postfix) with ESMTP id C64EA596AC0; Thu, 08 Jan 2026 18:23:14 +0100 (CET) X-Virus-Scanned: amavis at eik.bme.hu Received: from zero.eik.bme.hu ([127.0.0.1]) by localhost (zero.eik.bme.hu [127.0.0.1]) (amavis, port 10028) with ESMTP id iXg4bMYum59F; Thu, 8 Jan 2026 18:23:12 +0100 (CET) Received: by zero.eik.bme.hu (Postfix, from userid 432) id AFEE4596ABF; Thu, 08 Jan 2026 18:23:12 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by zero.eik.bme.hu (Postfix) with ESMTP id ADD46596ABD; Thu, 08 Jan 2026 18:23:12 +0100 (CET) Date: Thu, 8 Jan 2026 18:23:12 +0100 (CET) From: BALATON Zoltan To: =?ISO-8859-15?Q?Alex_Benn=E9e?= cc: qemu-devel@nongnu.org, Aurelien Jarno , Jiaxun Yang , Bastian Koppelmann , Marcel Apfelbaum , Zhao Liu , Peter Maydell , Laurent Vivier , =?ISO-8859-15?Q?Philippe_Mathieu-Daud=E9?= , qemu-arm@nongnu.org, Yoshinori Sato , Yanan Wang , Aleksandar Rikalo , Thomas Huth , Eduardo Habkost Subject: Re: [RFC PATCH 02/12] target/m68k: introduce env->reset_pc In-Reply-To: <7361d961-6dbf-57af-b5e6-93f32c1b2b4c@eik.bme.hu> Message-ID: <07c0f120-c847-29ec-84f7-01d05a7ef25e@eik.bme.hu> References: <20260108143423.1378674-1-alex.bennee@linaro.org> <20260108143423.1378674-3-alex.bennee@linaro.org> <7361d961-6dbf-57af-b5e6-93f32c1b2b4c@eik.bme.hu> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="3866299591-747926588-1767892992=:81929" Received-SPF: pass client-ip=2001:738:2001:2001::2001; envelope-from=balaton@eik.bme.hu; helo=zero.eik.bme.hu X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-arm@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-arm-bounces+qemu-arm=archiver.kernel.org@nongnu.org Sender: qemu-arm-bounces+qemu-arm=archiver.kernel.org@nongnu.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --3866299591-747926588-1767892992=:81929 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8BIT On Thu, 8 Jan 2026, BALATON Zoltan wrote: > On Thu, 8 Jan 2026, Alex Bennée wrote: >> To transition CPUs to use the multi-phase resettable logic we need to >> stash some information for the reset handlers. Arm does this with >> arm_boot_info but for m68k all we really need is the PC we should >> reset to. >> >> Signed-off-by: Alex Bennée >> --- >> target/m68k/cpu.h | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/target/m68k/cpu.h b/target/m68k/cpu.h >> index d9db6a486a8..fda015c4b7b 100644 >> --- a/target/m68k/cpu.h >> +++ b/target/m68k/cpu.h >> @@ -155,6 +155,7 @@ typedef struct CPUArchState { >> >> /* Fields from here on are preserved across CPU reset. */ >> uint64_t features; >> + uint32_t reset_pc; > > The m64k CPUs are 32 bit but should this better use some other type like > vaddr or hwaddr here? Nevermind. This is matching what pc is using so that makes sense. Regards. BALATON Zoltan >> } CPUM68KState; >> >> /* > --3866299591-747926588-1767892992=:81929--