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 B3595CF45C6 for ; Tue, 13 Jan 2026 01:17:37 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vfT2A-0001Hb-Ko; Mon, 12 Jan 2026 20:17:23 -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 1vfT26-0001Bp-3B for qemu-arm@nongnu.org; Mon, 12 Jan 2026 20:17:18 -0500 Received: from mail-pj1-x102e.google.com ([2607:f8b0:4864:20::102e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vfT24-0001PM-Ku for qemu-arm@nongnu.org; Mon, 12 Jan 2026 20:17:17 -0500 Received: by mail-pj1-x102e.google.com with SMTP id 98e67ed59e1d1-34c21417781so4653284a91.3 for ; Mon, 12 Jan 2026 17:17:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1768267035; x=1768871835; darn=nongnu.org; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:from:subject:user-agent:mime-version:date:message-id:from:to :cc:subject:date:message-id:reply-to; bh=WNIxp9+oIDhWbXbqZljoYOObsGQg/DyVvwPoYUgmhgw=; b=qgqjetGftw4YzcXlzoUI8+3LDda77s3kzmUf0+OpWoRvarqRvvfr9TOMKRcBJuLCBO tuAcxdSaSqAr5PCsvj9Y2wnF43Gzufj7z0q2euYMI9d3lOR9CGARAolf29TaL9I1O7Ln GwKiFBhZJ+GobUcs4DCDcFdC0zQx+Tv8Y6aEMM7OMAi7uAOoSgGd9x+UL/TKw/T7ZyTa CmuBB1ALdXzGZQaPxGvk1YAvnt/t6bW+fbWnwDw7Ao3xMqtO00OBrBA6vC0aODRyiENk Xuhin//edsAkBCCugDAa3FRlR+XPRBEwfdK1wMbk/DakG+WI0/dVQkfS66ywjSnMrSn0 FO+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768267035; x=1768871835; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:from:subject:user-agent:mime-version:date:message-id:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=WNIxp9+oIDhWbXbqZljoYOObsGQg/DyVvwPoYUgmhgw=; b=RNgqtbzBMoVE42EphIbe70ptVY/qGP6TQbUD0CKQiMQ1xp1Bx8h0M3jjvahFKAV38B aO6O3TyZHt8kJKSogZ2xd0hm90gMxKWOihilljYv17geJ8crBUIvXNnfBmbSAVFEliWQ qvYyVj++yvT3s1Vg0Yp4hkuBQoTstKMU4sBAPUpQRHkcuq1MG7NMxE/Q5MtrkILIXIQ0 hASF+BBuImWDJxXZVYeoJbyNK/OKsqVxGnabBfjJJhZuiTdMJTNjjKFKJFPkz8coiSdD hI4fokqf8etsVRHKSzx8XhAaA5Cpszy/jDeou6sJNSgDigmzYdAIz+tTSXaI/CrqXyIh ZAhA== X-Forwarded-Encrypted: i=1; AJvYcCVp5D1gmvkroPWpiVFBeRr2tUTguMKQif3FJkwdFw5EWvb0r1st8q0JRqvl88KiqKP2Y39wlIOL5w==@nongnu.org X-Gm-Message-State: AOJu0YxzE5o0CbQSWg+NwvrIyJw0ZjNoURU53KpLa/Qx7N2+bwEEHqrv xI4zqH7BbUzja7ZcRo++eU1PBr/RE7vbnYAugirLD5JTHXZsLiXxk0ag6qclgFDU9o8= X-Gm-Gg: AY/fxX6z/g1tsrHIKjghILfaNhBD3LLsFBIfQpQiW0411e3byANG3sykl+ZRnbu8mkN ToZID/VztmA4rTcjsakSNJMN9q2dxdXjDyKUCWoOoSUaC/o6G4cbP6+gfJfqz9Hd0CfKBbP4Xxr IVT30zYt3nRcha/0ptFl5uHWa6Nfsvndl+ERcmXWnNQhA25Qy1G+DQ9WrcY5TaCem5B3cdBzBNW OJ3xOY/h7wt9OW6NvjiXHJJJQT8qQOChEYb0/FeaDFHtHVUgdQatbX68ipk01m5UL6FPkOWWL5m PsLBYN1jKUIhGf73GUxJVMlJoY8pVELIP0rMa2euTAffnEt9ztNUwEWxI171uTwIGH4UKcY1uA/ BtpXs9eJtMOZrWSPrwt/SvRyT1rn/Ip83rmUUUhRe9PxNh7FXTr47BZcu+ao0ivbFD75up3Q6LE nfcH+LpF2sci8gt1C6AYv7mLtlslQ= X-Google-Smtp-Source: AGHT+IFKE61Z9YBOke4ODn3SMYictQ0cZ5Ql6gin9FH9Q7r8gFrAZdSyCYDlLngTqYTw8b5kJvReiw== X-Received: by 2002:a17:90b:3e43:b0:34a:b4a2:f0bf with SMTP id 98e67ed59e1d1-34f68c28716mr19082495a91.16.1768267034639; Mon, 12 Jan 2026 17:17:14 -0800 (PST) Received: from [192.168.15.8] ([101.187.175.172]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-350ff06dc07sm172123a91.4.2026.01.12.17.17.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 12 Jan 2026 17:17:14 -0800 (PST) Message-ID: <216accff-56e3-4658-8cb3-d033b5e837b0@linaro.org> Date: Tue, 13 Jan 2026 12:17:05 +1100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC PATCH 02/12] target/m68k: introduce env->reset_pc From: Richard Henderson To: =?UTF-8?Q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Cc: Aurelien Jarno , Jiaxun Yang , Bastian Koppelmann , Marcel Apfelbaum , Zhao Liu , Peter Maydell , Laurent Vivier , =?UTF-8?Q?Philippe_Mathieu-Daud=C3=A9?= , qemu-arm@nongnu.org, Yoshinori Sato , Yanan Wang , Aleksandar Rikalo , Thomas Huth , Eduardo Habkost References: <20260108143423.1378674-1-alex.bennee@linaro.org> <20260108143423.1378674-3-alex.bennee@linaro.org> Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::102e; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x102e.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=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 On 1/11/26 18:52, Richard Henderson wrote: > On 1/9/26 01:34, 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; >>   } CPUM68KState; >>   /* > > I think this ought to merge with something else. > Just adding the field is clearly incomplete. Nevermind, I now see how it's used for the various m68k machines. Reviewed-by: Richard Henderson r~