On 19/1/26 13:00, Alex Bennée wrote:
The GIC should always be a little-endian device as big-endian
behaviour is a function of the current CPU configuration not the
system as a whole. This allows us to keep the MSI data in plain host
order rather then potentially truncating with multiple byte swaps of
different sizes.

Signed-off-by: Alex Bennée <[email protected]>
---
  hw/intc/arm_gicv3_its_common.c | 4 ++--
  hw/intc/arm_gicv3_its_kvm.c    | 2 +-
  2 files changed, 3 insertions(+), 3 deletions(-)


  static const MemoryRegionOps gicv3_its_trans_ops = {
      .read_with_attrs = gicv3_its_trans_read,
      .write_with_attrs = gicv3_its_trans_write,
-    .endianness = DEVICE_NATIVE_ENDIAN,
+    .endianness = DEVICE_LITTLE_ENDIAN,

\o/

Reviewed-by: Philippe Mathieu-Daudé <[email protected]>

  };

Reply via email to