aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2022-12-20 15:56:24 +0100
committerThomas Huth <thuth@redhat.com>2023-01-09 13:50:13 +0100
commit057733f2e57e9793db6cc74e0df56dcb0bfe1bee (patch)
tree4582346ba630e6f6f03d3f8505b72afee0bc7820
parente4272df0987366a96ac10a3961aa2eccbb42d41f (diff)
downloadqemu-057733f2e57e9793db6cc74e0df56dcb0bfe1bee.zip
qemu-057733f2e57e9793db6cc74e0df56dcb0bfe1bee.tar.gz
qemu-057733f2e57e9793db6cc74e0df56dcb0bfe1bee.tar.bz2
target/s390x: Restrict sysemu/reset.h to system emulation
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>
-rw-r--r--target/s390x/cpu.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/target/s390x/cpu.c b/target/s390x/cpu.c
index 96562c5..b10a854 100644
--- a/target/s390x/cpu.c
+++ b/target/s390x/cpu.c
@@ -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;