Commit 1a3ec6fdfc for qemu.org
commit 1a3ec6fdfc06b6dad401077987b261902d42f310
Author: Peter Maydell <peter.maydell@linaro.org>
Date: Tue Oct 20 13:27:51 2026 +0100
target/rx: Convert to translate_for_debug
Convert rx to providing the translate_for_debug method rather than
the deprecated get_phys_addr_debug method.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
Message-ID: <20261020122752.3651914-5-peter.maydell@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
diff --git a/target/rx/cpu.c b/target/rx/cpu.c
index 44ec3c3d62..c35a98f7ce 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/cpu.h b/target/rx/cpu.h
index 0620838062..0c749fc58d 100644
--- a/target/rx/cpu.h
+++ b/target/rx/cpu.h
@@ -150,7 +150,8 @@ const char *rx_crname(uint8_t cr);
const char *rx_exception_name(int excp);
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/helper.c b/target/rx/helper.c
index ed9cadc0bd..f170a14721 100644
--- a/target/rx/helper.c
+++ b/target/rx/helper.c
@@ -159,7 +159,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;
}