aboutsummaryrefslogtreecommitdiff
path: root/include/qemu/accel.h
diff options
context:
space:
mode:
authorAlex Bennée <alex.bennee@linaro.org>2022-09-29 12:42:23 +0100
committerAlex Bennée <alex.bennee@linaro.org>2022-10-06 11:53:41 +0100
commit3b7a93880a88fb2e3c0e71378a7d39d25103d734 (patch)
tree5dcaa148ff39601c313147703495d926cb2c402d /include/qemu/accel.h
parent842b42df2b5d3bf5ccbafba19dc756d531dcce23 (diff)
downloadqemu-3b7a93880a88fb2e3c0e71378a7d39d25103d734.zip
qemu-3b7a93880a88fb2e3c0e71378a7d39d25103d734.tar.gz
qemu-3b7a93880a88fb2e3c0e71378a7d39d25103d734.tar.bz2
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/accel.h')
-rw-r--r--include/qemu/accel.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/qemu/accel.h b/include/qemu/accel.h
index be56da1..ce47476 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 */