summaryrefslogtreecommitdiffstats
path: root/hw
diff options
context:
space:
mode:
authorClaudio Fontana2021-02-04 17:39:11 +0100
committerRichard Henderson2021-02-05 21:24:14 +0100
commit7df5e3d6ad569f004d6aa943e8b60ab25875b577 (patch)
tree7ddda87219c97c13327e793503099ced166922a3 /hw
parenttarget/riscv: remove CONFIG_TCG, as it is always TCG (diff)
downloadqemu-7df5e3d6ad569f004d6aa943e8b60ab25875b577.tar.gz
qemu-7df5e3d6ad569f004d6aa943e8b60ab25875b577.tar.xz
qemu-7df5e3d6ad569f004d6aa943e8b60ab25875b577.zip
accel/tcg: split TCG-only code from cpu_exec_realizefn
move away TCG-only code, make it compile only on TCG. Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> [claudio: moved the prototypes from hw/core/cpu.h to exec/cpu-all.h] Signed-off-by: Claudio Fontana <cfontana@suse.de> Message-Id: <20210204163931.7358-4-cfontana@suse.de> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'hw')
-rw-r--r--hw/core/cpu.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/hw/core/cpu.c b/hw/core/cpu.c
index 7553411653..57542b6906 100644
--- a/hw/core/cpu.c
+++ b/hw/core/cpu.c
@@ -199,6 +199,10 @@ static bool cpu_common_virtio_is_big_endian(CPUState *cpu)
return target_words_bigendian();
}
+/*
+ * XXX the following #if is always true because this is a common_ss
+ * module, so target CONFIG_* is never defined.
+ */
#if !defined(CONFIG_USER_ONLY)
GuestPanicInformation *cpu_get_crash_info(CPUState *cpu)
{
@@ -340,9 +344,9 @@ static void cpu_common_realizefn(DeviceState *dev, Error **errp)
static void cpu_common_unrealizefn(DeviceState *dev)
{
CPUState *cpu = CPU(dev);
+
/* NOTE: latest generic point before the cpu is fully unrealized */
trace_fini_vcpu(cpu);
- qemu_plugin_vcpu_exit_hook(cpu);
cpu_exec_unrealizefn(cpu);
}