On 8/22/25 6:24 AM, CJ Chen wrote:
Since riscv-iommu does not support unaligned accesses, drop
`.impl.unaligned = true` to avoid the contradictory pairing with
`.valid.unaligned = false`. This makes QEMU reject unaligned accesses
for this device and prevents the assertion in memory.c that previously
caused `make check` to fail.
Signed-off-by: CJ Chen <[email protected]>
Tested-by: CJ Chen <[email protected]>
Acked-by: Tomoyuki Hirose <[email protected]>
Reported-by: Tomoyuki Hirose <[email protected]>
---
Reviewed-by: Daniel Henrique Barboza <[email protected]>
hw/riscv/riscv-iommu.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/hw/riscv/riscv-iommu.c b/hw/riscv/riscv-iommu.c
index a877e5da84..277746598a 100644
--- a/hw/riscv/riscv-iommu.c
+++ b/hw/riscv/riscv-iommu.c
@@ -2288,7 +2288,6 @@ static const MemoryRegionOps riscv_iommu_trap_ops = {
.impl = {
.min_access_size = 4,
.max_access_size = 8,
- .unaligned = true,
},
.valid = {
.min_access_size = 4,