diff options
author | Alex Bennée | 2022-09-29 13:42:24 +0200 |
---|---|---|
committer | Alex Bennée | 2022-10-06 12:53:41 +0200 |
commit | ae7467b1ac49e10c548099e9f9c59af895af2d3f (patch) | |
tree | a414196a412f105a8787c88230bc6b5f749eb2a3 /softmmu | |
parent | gdbstub: move sstep flags probing into AccelClass (diff) | |
download | qemu-ae7467b1ac49e10c548099e9f9c59af895af2d3f.tar.gz qemu-ae7467b1ac49e10c548099e9f9c59af895af2d3f.tar.xz qemu-ae7467b1ac49e10c548099e9f9c59af895af2d3f.zip |
gdbstub: move breakpoint logic to accel ops
As HW virtualization requires specific support to handle breakpoints
lets push out special casing out of the core gdbstub code and into
AccelOpsClass. This will make it easier to add other accelerator
support and reduces some of the stub shenanigans.
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Mads Ynddal <mads@ynddal.dk>
Message-Id: <20220929114231.583801-45-alex.bennee@linaro.org>
Diffstat (limited to 'softmmu')
-rw-r--r-- | softmmu/cpus.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/softmmu/cpus.c b/softmmu/cpus.c index 23b30484b2..61b27ff59d 100644 --- a/softmmu/cpus.c +++ b/softmmu/cpus.c @@ -617,6 +617,13 @@ void cpus_register_accel(const AccelOpsClass *ops) cpus_accel = ops; } +const AccelOpsClass *cpus_get_accel(void) +{ + /* broken if we call this early */ + assert(cpus_accel); + return cpus_accel; +} + void qemu_init_vcpu(CPUState *cpu) { MachineState *ms = MACHINE(qdev_get_machine()); |