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 <cjc...@igel.co.jp> Tested-by: CJ Chen <cjc...@igel.co.jp> Acked-by: Tomoyuki Hirose <hrstmyk8...@gmail.com> Reported-by: Tomoyuki Hirose <hrstmyk8...@gmail.com> --- 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, -- 2.25.1