diff options
author | Alex Bennée | 2022-09-29 13:42:23 +0200 |
---|---|---|
committer | Alex Bennée | 2022-10-06 12:53:41 +0200 |
commit | 3b7a93880a88fb2e3c0e71378a7d39d25103d734 (patch) | |
tree | 5dcaa148ff39601c313147703495d926cb2c402d /include/qemu | |
parent | gdbstub: move into its own sub directory (diff) | |
download | qemu-3b7a93880a88fb2e3c0e71378a7d39d25103d734.tar.gz qemu-3b7a93880a88fb2e3c0e71378a7d39d25103d734.tar.xz qemu-3b7a93880a88fb2e3c0e71378a7d39d25103d734.zip |
gdbstub: move sstep flags probing into AccelClass
The support of single-stepping is very much dependent on support from
the accelerator we are using. To avoid special casing in gdbstub move
the probing out to an AccelClass function so future accelerators can
put their code there.
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Mads Ynddal <mads@ynddal.dk>
Message-Id: <20220929114231.583801-44-alex.bennee@linaro.org>
Diffstat (limited to 'include/qemu')
-rw-r--r-- | include/qemu/accel.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/qemu/accel.h b/include/qemu/accel.h index be56da1b99..ce4747634a 100644 --- a/include/qemu/accel.h +++ b/include/qemu/accel.h @@ -43,6 +43,10 @@ typedef struct AccelClass { bool (*has_memory)(MachineState *ms, AddressSpace *as, hwaddr start_addr, hwaddr size); #endif + + /* gdbstub related hooks */ + int (*gdbstub_supported_sstep_flags)(void); + bool *allowed; /* * Array of global properties that would be applied when specific @@ -92,4 +96,12 @@ void accel_cpu_instance_init(CPUState *cpu); */ bool accel_cpu_realizefn(CPUState *cpu, Error **errp); +/** + * accel_supported_gdbstub_sstep_flags: + * + * Returns the supported single step modes for the configured + * accelerator. + */ +int accel_supported_gdbstub_sstep_flags(void); + #endif /* QEMU_ACCEL_H */ |