Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AE724606A31A for ; Thu, 29 Oct 2026 12:30:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=nifty.com header.i=@nifty.com header.a=rsa-sha256 header.s=default-1th84yt82rvi header.b=CRjR16kx Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMPGv-0003Ff-M4; Thu, 29 Oct 2026 08:30:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xMPGs-0003Ds-Gl for qemu-devel@nongnu.org; Thu, 29 Oct 2026 08:30:19 -0400 Received: from mta-snd-w10.mail.nifty.com ([106.153.227.42]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xMPGo-0001ep-Jn for qemu-devel@nongnu.org; Thu, 29 Oct 2026 08:30:18 -0400 Received: from sakura.ysato.name by mta-snd-w10.mail.nifty.com with ESMTP id <20261029123004701.LWLB.44671.sakura.ysato.name@nifty.com>; Thu, 29 Oct 2026 21:30:04 +0900 Received: from SIOS1075.ysato.ml (ZM005235.ppp.dion.ne.jp [222.8.5.235]) by sakura.ysato.name (Postfix) with ESMTPSA id 2F8EE1C0169; Thu, 29 Oct 2026 21:30:04 +0900 (JST) Date: Thu, 29 Oct 2026 21:30:01 +0900 Message-ID: <87a4nwwuye.wl-yoshinori.sato@nifty.com> From: yoshinori.sato@nifty.com To: Peter Maydell Cc: qemu-devel@nongnu.org, Richard Henderson , Michael Rolnik , Stafford Horne Subject: Re: [PATCH 4/5] target/rx: Convert to translate_for_debug In-Reply-To: <20261020122752.3651914-5-peter.maydell@linaro.org> References: <20261020122752.3651914-1-peter.maydell@linaro.org> <20261020122752.3651914-5-peter.maydell@linaro.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/30.1 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) X-Archived-By: MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=default-1th84yt82rvi; t=1793277004; bh=/3RbcK/jShbNGvdU3ChIsGMz2CQ42hXLQ4jVGkUI9BE=; h=Date:From:To:Cc:Subject:In-Reply-To; b=CRjR16kxK/jWHA9KXDaY7TS+cbc4tI6GKvVt6JxfihLkZfAJXLpRV3cu1xxccSI76S5a3XWZ SoLSe3SmpK3PWNZLIGeScg/IGnXNZGPpKiyMDLXSuDxYm3zh0jotXpthUFP/7Ip7nlqSmtHqfb JvZN4u82Qu5MCiGDQmMVOFgV2ygJVwd42UFnstpLzJ/UKsnYX3iUHmkjj+mC9hyTwibXu5iGhk XriG43EPKitoqWC8iUeLjC1LLK07w/d9aE3vw/NZngTteE2Fn1OX0XecjHpu4eGYadpJNa+QsQ rEpbzCaKxgWZGV8Y7ufvWLkCdUNMYfAL+qDD0vkVeoNsqyfg== Received-SPF: pass client-ip=106.153.227.42; envelope-from=yoshinori.sato@nifty.com; helo=mta-snd-w10.mail.nifty.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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_PASS, SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On Tue, 20 Oct 2026 21:27:51 +0900, Peter Maydell wrote: > > Convert rx to providing the translate_for_debug method rather than > the deprecated get_phys_addr_debug method. > > Signed-off-by: Peter Maydell > --- > target/rx/cpu.h | 3 ++- > target/rx/cpu.c | 2 +- > target/rx/helper.c | 10 ++++++++-- > 3 files changed, 11 insertions(+), 4 deletions(-) > > diff --git a/target/rx/cpu.h b/target/rx/cpu.h > index 64ba48a7329..8ec704a9f72 100644 > --- a/target/rx/cpu.h > +++ b/target/rx/cpu.h > @@ -136,7 +136,8 @@ struct RXCPUClass { > const char *rx_crname(uint8_t cr); > void rx_cpu_do_interrupt(CPUState *cpu); > bool rx_cpu_exec_interrupt(CPUState *cpu, int int_req); > -hwaddr rx_cpu_get_phys_addr_debug(CPUState *cpu, vaddr addr); > +bool rx_cpu_translate_for_debug(CPUState *cpu, vaddr addr, > + TranslateForDebugResult *result); > void rx_cpu_dump_state(CPUState *cpu, FILE *f, int flags); > int rx_cpu_gdb_read_register(CPUState *cpu, GByteArray *buf, int reg); > int rx_cpu_gdb_write_register(CPUState *cpu, uint8_t *buf, int reg); > diff --git a/target/rx/cpu.c b/target/rx/cpu.c > index 9b8473d71cf..0bcfec1d7c0 100644 > --- a/target/rx/cpu.c > +++ b/target/rx/cpu.c > @@ -209,7 +209,7 @@ static void rx_cpu_init(Object *obj) > > static const struct SysemuCPUOps rx_sysemu_ops = { > .has_work = rx_cpu_has_work, > - .get_phys_addr_debug = rx_cpu_get_phys_addr_debug, > + .translate_for_debug = rx_cpu_translate_for_debug, > }; > > static const TCGCPUOps rx_tcg_ops = { > diff --git a/target/rx/helper.c b/target/rx/helper.c > index 0f99279bbaa..1f73fed6efd 100644 > --- a/target/rx/helper.c > +++ b/target/rx/helper.c > @@ -147,7 +147,13 @@ bool rx_cpu_exec_interrupt(CPUState *cs, int interrupt_request) > return false; > } > > -hwaddr rx_cpu_get_phys_addr_debug(CPUState *cs, vaddr addr) > +bool rx_cpu_translate_for_debug(CPUState *cs, vaddr addr, > + TranslateForDebugResult *result) > { > - return addr; > + *result = (TranslateForDebugResult) { > + .physaddr = addr, > + .lg_page_size = TARGET_PAGE_BITS, > + .attrs.debug = 1, > + }; > + return true; > } > -- > 2.43.0 > Reviewed-by: Yoshinori Sato -- Yosinori Sato