Don't compile rwhandler.c for user targets
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
3682825669
commit
51464fafdf
@ -46,7 +46,6 @@ all: $(PROGS)
|
|||||||
# cpu emulator library
|
# cpu emulator library
|
||||||
libobj-y = exec.o translate-all.o cpu-exec.o translate.o
|
libobj-y = exec.o translate-all.o cpu-exec.o translate.o
|
||||||
libobj-y += tcg/tcg.o
|
libobj-y += tcg/tcg.o
|
||||||
libobj-y += rwhandler.o
|
|
||||||
libobj-$(CONFIG_SOFTFLOAT) += fpu/softfloat.o
|
libobj-$(CONFIG_SOFTFLOAT) += fpu/softfloat.o
|
||||||
libobj-$(CONFIG_NOSOFTFLOAT) += fpu/softfloat-native.o
|
libobj-$(CONFIG_NOSOFTFLOAT) += fpu/softfloat-native.o
|
||||||
libobj-y += op_helper.o helper.o
|
libobj-y += op_helper.o helper.o
|
||||||
@ -174,6 +173,7 @@ obj-y = vl.o async.o monitor.o pci.o pci_host.o pcie_host.o machine.o gdbstub.o
|
|||||||
# virtio has to be here due to weird dependency between PCI and virtio-net.
|
# virtio has to be here due to weird dependency between PCI and virtio-net.
|
||||||
# need to fix this properly
|
# need to fix this properly
|
||||||
obj-y += virtio-blk.o virtio-balloon.o virtio-net.o virtio-pci.o virtio-serial-bus.o
|
obj-y += virtio-blk.o virtio-balloon.o virtio-net.o virtio-pci.o virtio-serial-bus.o
|
||||||
|
obj-y += rwhandler.o
|
||||||
obj-$(CONFIG_KVM) += kvm.o kvm-all.o
|
obj-$(CONFIG_KVM) += kvm.o kvm-all.o
|
||||||
obj-$(CONFIG_ISA_MMIO) += isa_mmio.o
|
obj-$(CONFIG_ISA_MMIO) += isa_mmio.o
|
||||||
LIBS+=-lz
|
LIBS+=-lz
|
||||||
|
@ -2,8 +2,6 @@
|
|||||||
#include "ioport.h"
|
#include "ioport.h"
|
||||||
#include "cpu-all.h"
|
#include "cpu-all.h"
|
||||||
|
|
||||||
#if !defined(CONFIG_USER_ONLY)
|
|
||||||
|
|
||||||
#define RWHANDLER_WRITE(name, len, type) \
|
#define RWHANDLER_WRITE(name, len, type) \
|
||||||
static void name(void *opaque, type addr, uint32_t value) \
|
static void name(void *opaque, type addr, uint32_t value) \
|
||||||
{\
|
{\
|
||||||
@ -87,5 +85,3 @@ int register_ioport_simple(ReadWriteHandler* handler,
|
|||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
Loading…
Reference in New Issue
Block a user