mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
hw/char/pl011: Restrict MemoryRegionOps implementation access sizes
The pl011_read() and pl011_write() handlers shift the offset argument by 2, so are implemented on a 32-bit boundary. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20230710175102.32429-2-philmd@linaro.org>
This commit is contained in:
parent
53c7c92422
commit
7e66d52b0c
1 changed files with 2 additions and 0 deletions
|
@ -358,6 +358,8 @@ static const MemoryRegionOps pl011_ops = {
|
|||
.read = pl011_read,
|
||||
.write = pl011_write,
|
||||
.endianness = DEVICE_NATIVE_ENDIAN,
|
||||
.impl.min_access_size = 4,
|
||||
.impl.max_access_size = 4,
|
||||
};
|
||||
|
||||
static bool pl011_clock_needed(void *opaque)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue