aboutsummaryrefslogtreecommitdiff
path: root/ioport.h
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
parent329939776005fad213086e54b038ccd39054e2bc (diff)
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 309a402f86..4cb59e951f 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);