We want to remove the cpu_get_phys_addr_debug() function; update the
xtensa boards to use cpu_translate_for_debug() instead.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <
20260430093810.
2762539-22-peter.maydell@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
static uint64_t translate_phys_addr(void *opaque, uint64_t addr)
{
XtensaCPU *cpu = opaque;
+ TranslateForDebugResult tres;
- return cpu_get_phys_addr_debug(CPU(cpu), addr);
+ if (!cpu_translate_for_debug(CPU(cpu), addr, &tres)) {
+ return -1;
+ }
+ return tres.physaddr;
}
static void sim_reset(void *opaque)
static uint64_t translate_phys_addr(void *opaque, uint64_t addr)
{
XtensaCPU *cpu = opaque;
+ TranslateForDebugResult tres;
- return cpu_get_phys_addr_debug(CPU(cpu), addr);
+ if (!cpu_translate_for_debug(CPU(cpu), addr, &tres)) {
+ return -1;
+ }
+ return tres.physaddr;
}
static void xtfpga_reset(void *opaque)