gdbstub: move guest debug support check to ops
commita48e7d9e52f8fe8b47f4c74f3e99d9d677b87fe5
authorAlex Bennée <alex.bennee@linaro.org>
Thu, 29 Sep 2022 11:42:25 +0000 (29 12:42 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Thu, 6 Oct 2022 10:53:41 +0000 (6 11:53 +0100)
tree0cd888467fa5a777b02d75ee831895d2473b5e31
parentae7467b1ac49e10c548099e9f9c59af895af2d3f
gdbstub: move guest debug support check to ops

This removes the final hard coding of kvm_enabled() in gdbstub and
moves the check to an AccelOps.

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-46-alex.bennee@linaro.org>
accel/kvm/kvm-accel-ops.c
accel/kvm/kvm-all.c
accel/kvm/kvm-cpus.h
accel/tcg/tcg-accel-ops.c
gdbstub/gdbstub.c
gdbstub/internals.h
gdbstub/softmmu.c
gdbstub/user.c
include/sysemu/accel-ops.h
include/sysemu/kvm.h