aboutsummaryrefslogtreecommitdiff
path: root/hw/riscv/sifive_clint.c
diff options
context:
space:
mode:
authorAlistair Francis <alistair.francis@wdc.com>2020-06-30 13:12:11 -0700
committerAlistair Francis <alistair.francis@wdc.com>2020-07-02 09:19:32 -0700
commit70b78d4e71494c90d2ccb40381336bc9b9a22f79 (patch)
tree714cdb42219e4cb45c452b90b20e770253915f68 /hw/riscv/sifive_clint.c
parent55765822804f5a58594e0931e0fb8f80337b5425 (diff)
hw/riscv: Allow 64 bit access to SiFive CLINT
Commit 5d971f9e672507210e77d020d89e0e89165c8fc9 "memory: Revert "memory: accept mismatching sizes in memory_region_access_valid"" broke most RISC-V boards as they do 64 bit accesses to the CLINT and QEMU would trigger a fault. Fix this failure by allowing 8 byte accesses. Signed-off-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: LIU Zhiwei<zhiwei_liu@c-sky.com> Message-Id: <122b78825b077e4dfd39b444d3a46fe894a7804c.1593547870.git.alistair.francis@wdc.com>
Diffstat (limited to 'hw/riscv/sifive_clint.c')
-rw-r--r--hw/riscv/sifive_clint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/riscv/sifive_clint.c b/hw/riscv/sifive_clint.c
index b11ffa0edc..669c21adc2 100644
--- a/hw/riscv/sifive_clint.c
+++ b/hw/riscv/sifive_clint.c
@@ -181,7 +181,7 @@ static const MemoryRegionOps sifive_clint_ops = {
.endianness = DEVICE_LITTLE_ENDIAN,
.valid = {
.min_access_size = 4,
- .max_access_size = 4
+ .max_access_size = 8
}
};