diff options
author | Li Qiang <liq3ea@163.com> | 2019-05-10 09:43:48 -0700 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2019-06-03 14:03:01 +0200 |
commit | c45eb53aabaa620c71ac567ddf4ee89802a97a70 (patch) | |
tree | b702ed0f88038b4fde7b48a37181e2ad7f01e170 /hw/misc/edu.c | |
parent | 20fb3105ce632e70500a92d7c76e02f28c2c07d4 (diff) |
edu: mmio: allow 64-bit access in read dispatch
The edu spec says when address >= 0x80, the MMIO area can
be accessed by 64-bit.
Signed-off-by: Li Qiang <liq3ea@163.com>
Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com>
Message-Id: <20190510164349.81507-3-liq3ea@163.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/misc/edu.c')
-rw-r--r-- | hw/misc/edu.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/hw/misc/edu.c b/hw/misc/edu.c index 65fc32b928..33de05141f 100644 --- a/hw/misc/edu.c +++ b/hw/misc/edu.c @@ -185,7 +185,11 @@ static uint64_t edu_mmio_read(void *opaque, hwaddr addr, unsigned size) EduState *edu = opaque; uint64_t val = ~0ULL; - if (size != 4) { + if (addr < 0x80 && size != 4) { + return val; + } + + if (addr >= 0x80 && size != 4 && size != 8) { return val; } |