summaryrefslogtreecommitdiff
path: root/ioport.h
diff options
context:
space:
mode:
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);