]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
hw/core: Restrict reset handlers API to system-mode
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Sat, 18 Jan 2020 14:06:18 +0000 (15:06 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 24 Jan 2020 19:59:09 +0000 (20:59 +0100)
The user-mode code does not use this API, restrict it
to the system-mode.

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20200118140619.26333-6-philmd@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/core/Makefile.objs

index 0edd9e635db0359967f8075c0ae6a67815946219..2fea68ccf7fb155660486fd91fc57862c1977dd4 100644 (file)
@@ -1,6 +1,7 @@
 # core qdev-related obj files, also used by *-user:
 common-obj-y += qdev.o qdev-properties.o
-common-obj-y += bus.o reset.o
+common-obj-y += bus.o
+common-obj-$(CONFIG_SOFTMMU) += reset.o
 common-obj-$(CONFIG_SOFTMMU) += qdev-fw.o
 common-obj-$(CONFIG_SOFTMMU) += fw-path-provider.o
 # irq.o needed for qdev GPIO handling: