diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2022-12-06 16:20:51 +0100 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-02-27 22:29:01 +0100 |
commit | 6d2d454a884eeae588a9a08fcbdc6c9b6d079720 (patch) | |
tree | 0f9a78d52a0a1a1f81d6a97c99678c9c716af760 /target/rx | |
parent | 55b5b8e9284147529fa92804127f6d99ce4f89d9 (diff) | |
download | qemu-6d2d454a884eeae588a9a08fcbdc6c9b6d079720.zip qemu-6d2d454a884eeae588a9a08fcbdc6c9b6d079720.tar.gz qemu-6d2d454a884eeae588a9a08fcbdc6c9b6d079720.tar.bz2 |
target/cpu: Restrict cpu_get_phys_page_debug() handlers to sysemu
The 'hwaddr' type is only available / meaningful on system emulation.
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20221216215519.5522-5-philmd@linaro.org>
Diffstat (limited to 'target/rx')
-rw-r--r-- | target/rx/cpu.h | 2 | ||||
-rw-r--r-- | target/rx/helper.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/target/rx/cpu.h b/target/rx/cpu.h index 5655dff..555d230 100644 --- a/target/rx/cpu.h +++ b/target/rx/cpu.h @@ -123,11 +123,11 @@ const char *rx_crname(uint8_t cr); #ifndef CONFIG_USER_ONLY void rx_cpu_do_interrupt(CPUState *cpu); bool rx_cpu_exec_interrupt(CPUState *cpu, int int_req); +hwaddr rx_cpu_get_phys_page_debug(CPUState *cpu, vaddr addr); #endif /* !CONFIG_USER_ONLY */ 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); -hwaddr rx_cpu_get_phys_page_debug(CPUState *cpu, vaddr addr); void rx_translate_init(void); void rx_cpu_list(void); diff --git a/target/rx/helper.c b/target/rx/helper.c index f34945e..dad5fb4 100644 --- a/target/rx/helper.c +++ b/target/rx/helper.c @@ -144,9 +144,9 @@ bool rx_cpu_exec_interrupt(CPUState *cs, int interrupt_request) return false; } -#endif /* !CONFIG_USER_ONLY */ - hwaddr rx_cpu_get_phys_page_debug(CPUState *cs, vaddr addr) { return addr; } + +#endif /* !CONFIG_USER_ONLY */ |