Revision 51464faf
b/Makefile.target | ||
---|---|---|
46 | 46 |
# cpu emulator library |
47 | 47 |
libobj-y = exec.o translate-all.o cpu-exec.o translate.o |
48 | 48 |
libobj-y += tcg/tcg.o |
49 |
libobj-y += rwhandler.o |
|
50 | 49 |
libobj-$(CONFIG_SOFTFLOAT) += fpu/softfloat.o |
51 | 50 |
libobj-$(CONFIG_NOSOFTFLOAT) += fpu/softfloat-native.o |
52 | 51 |
libobj-y += op_helper.o helper.o |
... | ... | |
174 | 173 |
# virtio has to be here due to weird dependency between PCI and virtio-net. |
175 | 174 |
# need to fix this properly |
176 | 175 |
obj-y += virtio-blk.o virtio-balloon.o virtio-net.o virtio-pci.o virtio-serial-bus.o |
176 |
obj-y += rwhandler.o |
|
177 | 177 |
obj-$(CONFIG_KVM) += kvm.o kvm-all.o |
178 | 178 |
obj-$(CONFIG_ISA_MMIO) += isa_mmio.o |
179 | 179 |
LIBS+=-lz |
b/rwhandler.c | ||
---|---|---|
2 | 2 |
#include "ioport.h" |
3 | 3 |
#include "cpu-all.h" |
4 | 4 |
|
5 |
#if !defined(CONFIG_USER_ONLY) |
|
6 |
|
|
7 | 5 |
#define RWHANDLER_WRITE(name, len, type) \ |
8 | 6 |
static void name(void *opaque, type addr, uint32_t value) \ |
9 | 7 |
{\ |
... | ... | |
87 | 85 |
} |
88 | 86 |
return 0; |
89 | 87 |
} |
90 |
|
|
91 |
#endif |
Also available in: Unified diff