gdbstub: move sstep flags probing into AccelClass
commit3b7a93880a88fb2e3c0e71378a7d39d25103d734
authorAlex Bennée <alex.bennee@linaro.org>
Thu, 29 Sep 2022 11:42:23 +0000 (29 12:42 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Thu, 6 Oct 2022 10:53:41 +0000 (6 11:53 +0100)
tree5dcaa148ff39601c313147703495d926cb2c402d
parent842b42df2b5d3bf5ccbafba19dc756d531dcce23
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>
accel/accel-common.c
accel/kvm/kvm-all.c
accel/tcg/tcg-all.c
gdbstub/gdbstub.c
include/qemu/accel.h
include/sysemu/kvm.h