cpu: Introduce CPUClass::memory_rw_debug() for target_memory_rw_debug()
Make inline target_memory_rw_debug() always available and change its
argument to CPUState. Let it check if CPUClass::memory_rw_debug provides
a specialized callback and fall back to cpu_memory_rw_debug() otherwise.
The only overriding implementation is for 32-bit sparc.
This prepares for changing GDBState::g_cpu to CPUState.
Signed-off-by:
Andreas Färber <afaerber@suse.de>
Showing
- gdbstub.c 12 additions, 9 deletionsgdbstub.c
- include/qom/cpu.h 3 additions, 0 deletionsinclude/qom/cpu.h
- target-sparc/cpu.c 3 additions, 0 deletionstarget-sparc/cpu.c
- target-sparc/cpu.h 2 additions, 3 deletionstarget-sparc/cpu.h
- target-sparc/mmu_helper.c 5 additions, 3 deletionstarget-sparc/mmu_helper.c
Loading
Please register or sign in to comment