gdbstub: move update guest debug to accel ops
commit412ae12647d1086c713e13841fd25d10d5418c7f
authorMads Ynddal <m.ynddal@samsung.com>
Fri, 3 Mar 2023 02:58:05 +0000 (2 18:58 -0800)
committerAlex Bennée <alex.bennee@linaro.org>
Tue, 7 Mar 2023 20:44:09 +0000 (7 20:44 +0000)
treeb6db82a148295a5165f8208dc628589c06986797
parent2d3d2517cc78763cc31da053a29786c53ccd90a2
gdbstub: move update guest debug to accel ops

Continuing the refactor of a48e7d9e52 (gdbstub: move guest debug support
check to ops) by removing hardcoded kvm_enabled() from generic cpu.c
code, and replace it with a property of AccelOpsClass.

Signed-off-by: Mads Ynddal <m.ynddal@samsung.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20230207131721.49233-1-mads@ynddal.dk>
[AJB: add ifdef around update_guest_debug_ops, fix brace]
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20230302190846.2593720-27-alex.bennee@linaro.org>
Message-Id: <20230303025805.625589-30-richard.henderson@linaro.org>
accel/kvm/kvm-accel-ops.c
cpu.c
include/sysemu/accel-ops.h