diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2010-01-14 16:00:14 +0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2010-02-14 16:10:53 +0200 |
commit | 049f7adbd547969ba013fed13c0a26c1f62a4a71 (patch) | |
tree | 0c173dc801f22831a061199887c2ee0135691e89 /Makefile.target | |
parent | e73d6e3a028c777e642c687d433db914d8be8679 (diff) | |
download | qemu-049f7adbd547969ba013fed13c0a26c1f62a4a71.zip qemu-049f7adbd547969ba013fed13c0a26c1f62a4a71.tar.gz qemu-049f7adbd547969ba013fed13c0a26c1f62a4a71.tar.bz2 |
rwhandler: simplified way to register for mem/io
Some users prefer a single callback with length passed as parameter to
using b/w/l callbacks. It would maybe be cleaner to just pass length to
existing callbacks but that's a lot of churn. So for now add a wrapper.
For convenience use pcibus_t for address so a single callback can be
used for pci io and pci memory.
I did have to resort to preprocessor to reduce code duplication. It is
however slightly more straightforward, and better contained than what we
had with pci_host_template.h. Again, it would go away if we just passed
len to existing callbacks.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'Makefile.target')
-rw-r--r-- | Makefile.target | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile.target b/Makefile.target index f498574..068408f 100644 --- a/Makefile.target +++ b/Makefile.target @@ -46,6 +46,7 @@ all: $(PROGS) # cpu emulator library libobj-y = exec.o translate-all.o cpu-exec.o translate.o libobj-y += tcg/tcg.o +libobj-y += rwhandler.o libobj-$(CONFIG_SOFTFLOAT) += fpu/softfloat.o libobj-$(CONFIG_NOSOFTFLOAT) += fpu/softfloat-native.o libobj-y += op_helper.o helper.o |