]> Git Repo - qemu.git/commitdiff
hw/intc: Add .impl.[min|max]_access_size declaration in RISC-V ACLINT
authorFrank Chang <[email protected]>
Wed, 20 Apr 2022 08:08:57 +0000 (16:08 +0800)
committerAlistair Francis <[email protected]>
Fri, 22 Apr 2022 00:35:16 +0000 (10:35 +1000)
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 <[email protected]>
Reviewed-by: Alistair Francis <[email protected]>
Reviewed-by: Jim Shu <[email protected]>
Message-Id: <20220420080901[email protected]>
Signed-off-by: Alistair Francis <[email protected]>
hw/intc/riscv_aclint.c

index e43b050e92906cb530f240cee4ff516a62f3a41d..37e9ace801c8f671ee5285e055b9c2672208b8b1 100644 (file)
@@ -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,
     }
 };
 
This page took 0.029517 seconds and 4 git commands to generate.