summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsaku Yamahata <yamahata@valinux.co.jp>2009-07-02 19:32:07 +0900
committerAnthony Liguori <aliguori@us.ibm.com>2009-07-09 16:06:39 -0500
commitd56dd6cf031075bef985c831146691fdeec8af5c (patch)
tree53d56051c2a09096e239a34316c798b7a59649f8 /ioport.h
parentsplit out ioport related stuffs from vl.c into ioport.c. (diff)
downloadqemu-kvm-d56dd6cf031075bef985c831146691fdeec8af5c.tar.gz
qemu-kvm-d56dd6cf031075bef985c831146691fdeec8af5c.tar.bz2
qemu-kvm-d56dd6cf031075bef985c831146691fdeec8af5c.zip
use constant IOPORTS_MASK instead of 0xffff.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'ioport.h')
-rw-r--r--ioport.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ioport.h b/ioport.h
index 309a402f8..4cb59e951 100644
--- a/ioport.h
+++ b/ioport.h
@@ -28,6 +28,7 @@
#include "qemu-common.h"
#define MAX_IOPORTS (64 * 1024)
+#define IOPORTS_MASK (MAX_IOPORTS - 1)
/* These should really be in isa.h, but are here to make pc.h happy. */
typedef void (IOPortWriteFunc)(void *opaque, uint32_t address, uint32_t data);