]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/misc/aspeed_scu: Set MemoryRegionOps::impl::access_size to 32-bit
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 31 Mar 2025 23:04:43 +0000 (01:04 +0200)
committerCédric Le Goater <clg@redhat.com>
Tue, 1 Apr 2025 09:29:25 +0000 (11:29 +0200)
commitf0095c8ad93de7652aba36c4c713d9035417bea8
tree80aaf23ed9ab47381b8e49fa842ea969b5ab5e9a
parent0f15892acaf3f50ecc20c6dad4b3ebdd701aa93e
hw/misc/aspeed_scu: Set MemoryRegionOps::impl::access_size to 32-bit

All MemoryRegionOps::read/write() handlers switch over a 32-bit
aligned value, because converted using TO_REG(), which is defined
as:

  #define TO_REG(offset) ((offset) >> 2)

So all implementations are 32-bit.
Set min/max access_size accordingly.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Andrew Jeffery <andrew@codeconstruct.com.au>
Link: https://lore.kernel.org/qemu-devel/20250331230444.88295-2-philmd@linaro.org
Signed-off-by: Cédric Le Goater <clg@redhat.com>
hw/misc/aspeed_scu.c