mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
gdbstub: move update guest debug to accel ops
Continuing the refactor of a48e7d9e52
(gdbstub: move guest debug support
check to ops) by removing hardcoded kvm_enabled() from generic cpu.c
code, and replace it with a property of AccelOpsClass.
Signed-off-by: Mads Ynddal <m.ynddal@samsung.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20230207131721.49233-1-mads@ynddal.dk>
[AJB: add ifdef around update_guest_debug_ops, fix brace]
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20230302190846.2593720-27-alex.bennee@linaro.org>
Message-Id: <20230303025805.625589-30-richard.henderson@linaro.org>
This commit is contained in:
parent
2d3d2517cc
commit
412ae12647
3 changed files with 17 additions and 3 deletions
|
@ -48,6 +48,7 @@ struct AccelOpsClass {
|
|||
|
||||
/* gdbstub hooks */
|
||||
bool (*supports_guest_debug)(void);
|
||||
int (*update_guest_debug)(CPUState *cpu);
|
||||
int (*insert_breakpoint)(CPUState *cpu, int type, vaddr addr, vaddr len);
|
||||
int (*remove_breakpoint)(CPUState *cpu, int type, vaddr addr, vaddr len);
|
||||
void (*remove_all_breakpoints)(CPUState *cpu);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue