diff options
author | Isaku Yamahata <yamahata@valinux.co.jp> | 2009-07-02 19:32:07 +0900 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-07-09 16:06:39 -0500 |
commit | d56dd6cf031075bef985c831146691fdeec8af5c (patch) | |
tree | 53d56051c2a09096e239a34316c798b7a59649f8 /ioport.h | |
parent | 329939776005fad213086e54b038ccd39054e2bc (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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |