target/avr: Drop avr_cpu_memory_rw_debug()
authorBin Meng <bmeng.cn@gmail.com>
Tue, 22 Mar 2022 09:50:04 +0000 (17:50 +0800)
committerRichard Henderson <richard.henderson@linaro.org>
Mon, 20 Jun 2022 20:11:36 +0000 (13:11 -0700)
CPUClass::memory_rw_debug() holds a callback for GDB memory access.
If not provided, cpu_memory_rw_debug() is used by the GDB stub.
Drop avr_cpu_memory_rw_debug() which does nothing special.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20220322095004.70682-1-bmeng.cn@gmail.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
target/avr/cpu.c
target/avr/cpu.h
target/avr/helper.c

index 5d70e34dd5444f5a4332e3eb1984bcb9e6da82e2..05b992ff73030180beb9aec24ada0b40f3a63224 100644 (file)
@@ -214,7 +214,6 @@ static void avr_cpu_class_init(ObjectClass *oc, void *data)
     cc->has_work = avr_cpu_has_work;
     cc->dump_state = avr_cpu_dump_state;
     cc->set_pc = avr_cpu_set_pc;
-    cc->memory_rw_debug = avr_cpu_memory_rw_debug;
     dc->vmsd = &vms_avr_cpu;
     cc->sysemu_ops = &avr_sysemu_ops;
     cc->disas_set_info = avr_cpu_disas_set_info;
index d304f33301b02326e4d24e4cd280df8eb2e38503..96419c0c2be2e40a14db2df47185673bd0852b51 100644 (file)
@@ -184,8 +184,6 @@ void avr_cpu_tcg_init(void);
 
 void avr_cpu_list(void);
 int cpu_avr_exec(CPUState *cpu);
-int avr_cpu_memory_rw_debug(CPUState *cs, vaddr address, uint8_t *buf,
-                            int len, bool is_write);
 
 enum {
     TB_FLAGS_FULL_ACCESS = 1,
index c27f7029010ff6260f9e47d1dd46fe7008253071..db76452f9a49413562f6d8e478239912306805ae 100644 (file)
@@ -93,12 +93,6 @@ void avr_cpu_do_interrupt(CPUState *cs)
     cs->exception_index = -1;
 }
 
-int avr_cpu_memory_rw_debug(CPUState *cs, vaddr addr, uint8_t *buf,
-                            int len, bool is_write)
-{
-    return cpu_memory_rw_debug(cs, addr, buf, len, is_write);
-}
-
 hwaddr avr_cpu_get_phys_page_debug(CPUState *cs, vaddr addr)
 {
     return addr; /* I assume 1:1 address correspondence */