From: Frank Chang Date: Wed, 20 Apr 2022 08:08:57 +0000 (+0800) Subject: hw/intc: Add .impl.[min|max]_access_size declaration in RISC-V ACLINT X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=231a90c08545a7f903800d2ffb988dad08947460;p=qmiga%2Fqemu.git 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 Reviewed-by: Alistair Francis Reviewed-by: Jim Shu Message-Id: <20220420080901.14655-2-frank.chang@sifive.com> Signed-off-by: Alistair Francis --- diff --git a/hw/intc/riscv_aclint.c b/hw/intc/riscv_aclint.c index e43b050e92..37e9ace801 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, } };