qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

hw/core: Add a config switch for the "register" device

The "register" device is only used by certain machines. Let's add
a proper config switch for it so that it only gets compiled when we
really need it.

Message-Id: <20190817101931.28386-5-thuth@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>

+6 -1
+1
hw/Kconfig
··· 76 76 77 77 config XLNX_ZYNQMP 78 78 bool 79 + select REGISTER
+3
hw/core/Kconfig
··· 9 9 10 10 config PLATFORM_BUS 11 11 bool 12 + 13 + config REGISTER 14 + bool
+1 -1
hw/core/Makefile.objs
··· 17 17 common-obj-$(CONFIG_SOFTMMU) += loader.o 18 18 common-obj-$(CONFIG_FITLOADER) += loader-fit.o 19 19 common-obj-$(CONFIG_SOFTMMU) += qdev-properties-system.o 20 - common-obj-$(CONFIG_SOFTMMU) += register.o 20 + common-obj-$(CONFIG_REGISTER) += register.o 21 21 common-obj-$(CONFIG_SOFTMMU) += or-irq.o 22 22 common-obj-$(CONFIG_SOFTMMU) += split-irq.o 23 23 common-obj-$(CONFIG_PLATFORM_BUS) += platform-bus.o
+1
hw/dma/Kconfig
··· 16 16 17 17 config ZYNQ_DEVCFG 18 18 bool 19 + select REGISTER 19 20 20 21 config STP2000 21 22 bool