]> git.proxmox.com Git - mirror_qemu.git/commitdiff
target/s390x: Restrict sysemu/reset.h to system emulation
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 20 Dec 2022 14:56:24 +0000 (15:56 +0100)
committerThomas Huth <thuth@redhat.com>
Mon, 9 Jan 2023 12:50:13 +0000 (13:50 +0100)
In user emulation, threads -- implemented as CPU -- are
created/destroyed, but never reset. There is no point in
allowing the user emulation access the sysemu/reset API.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20221220145625.26392-5-philmd@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
target/s390x/cpu.c

index 96562c516d6a4f322d1b988b85252793c9c98ca4..b10a8541ff836648671d8f26a8bdfe6a033071b4 100644 (file)
@@ -26,7 +26,6 @@
 #include "s390x-internal.h"
 #include "kvm/kvm_s390x.h"
 #include "sysemu/kvm.h"
-#include "sysemu/reset.h"
 #include "qemu/module.h"
 #include "trace.h"
 #include "qapi/qapi-types-machine.h"
@@ -35,6 +34,9 @@
 #include "fpu/softfloat-helpers.h"
 #include "disas/capstone.h"
 #include "sysemu/tcg.h"
+#ifndef CONFIG_USER_ONLY
+#include "sysemu/reset.h"
+#endif
 
 #define CR0_RESET       0xE0UL
 #define CR14_RESET      0xC2000000UL;