diff options
author | Frank Chang <frank.chang@sifive.com> | 2022-04-20 16:08:57 +0800 |
---|---|---|
committer | Alistair Francis <alistair.francis@wdc.com> | 2022-04-22 10:35:16 +1000 |
commit | 231a90c08545a7f903800d2ffb988dad08947460 (patch) | |
tree | 700f49c88f9452ecad521ca460efa7758515f83a /hw/intc | |
parent | d6db2c0fabf979397189aa105d7708be2b433cc4 (diff) | |
download | qemu-231a90c08545a7f903800d2ffb988dad08947460.zip qemu-231a90c08545a7f903800d2ffb988dad08947460.tar.gz qemu-231a90c08545a7f903800d2ffb988dad08947460.tar.bz2 |
hw/intc: Add .impl.[min|max]_access_size declaration in RISC-V ACLINT
If device's MemoryRegion doesn't have .impl.[min|max]_access_size
declaration, the default access_size_min would be 1 byte and
access_size_max would be 4 bytes (see: softmmu/memory.c).
This will cause a 64-bit memory access to ACLINT to be splitted into
two 32-bit memory accesses.
Signed-off-by: Frank Chang <frank.chang@sifive.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Jim Shu <jim.shu@sifive.com>
Message-Id: <20220420080901.14655-2-frank.chang@sifive.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'hw/intc')
-rw-r--r-- | hw/intc/riscv_aclint.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/intc/riscv_aclint.c b/hw/intc/riscv_aclint.c index e43b050..37e9ace 100644 --- a/hw/intc/riscv_aclint.c +++ b/hw/intc/riscv_aclint.c @@ -208,6 +208,10 @@ static const MemoryRegionOps riscv_aclint_mtimer_ops = { .valid = { .min_access_size = 4, .max_access_size = 8 + }, + .impl = { + .min_access_size = 4, + .max_access_size = 8, } }; |