mirror of
https://github.com/qemu/qemu.git
synced 2026-01-14 03:01:08 +00:00
hw/char/pl011: Mark implementation as being little-endian
The PL011 component is only built / used by ARM targets, which are only built in little endianness. Thus we only ever built as little endian, never testing the big-endian possibility of the DEVICE_NATIVE_ENDIAN definition. Simplify by only keeping the little endian variant. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org> Reviewed-by: Zhao Liu <zhao1.liu@intel.com> Message-Id: <20251224134644.85582-7-philmd@linaro.org>
This commit is contained in:
@ -538,7 +538,7 @@ static void pl011_clock_update(void *opaque, ClockEvent event)
|
||||
static const MemoryRegionOps pl011_ops = {
|
||||
.read = pl011_read,
|
||||
.write = pl011_write,
|
||||
.endianness = DEVICE_NATIVE_ENDIAN,
|
||||
.endianness = DEVICE_LITTLE_ENDIAN,
|
||||
.impl.min_access_size = 4,
|
||||
.impl.max_access_size = 4,
|
||||
};
|
||||
|
||||
@ -489,7 +489,7 @@ impl PL011State {
|
||||
static PL011_OPS: MemoryRegionOps<PL011State> = MemoryRegionOpsBuilder::<PL011State>::new()
|
||||
.read(&PL011State::read)
|
||||
.write(&PL011State::write)
|
||||
.native_endian()
|
||||
.little_endian()
|
||||
.impl_sizes(4, 4)
|
||||
.build();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user