mirror of
https://github.com/qemu/qemu.git
synced 2026-02-04 02:24:51 +00:00
hw/intc: declare GICv3 regions as little endian
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 should have no functional effect as the GIC cannot be instantiated on a BE system but will help the single binary efforts. Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-id: 20260121105932.135676-4-alex.bennee@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
committed by
Peter Maydell
parent
62b688d7eb
commit
a051f78714
@@ -417,7 +417,7 @@ static const MemoryRegionOps gic_ops[] = {
|
||||
{
|
||||
.read_with_attrs = gicv3_dist_read,
|
||||
.write_with_attrs = gicv3_dist_write,
|
||||
.endianness = DEVICE_NATIVE_ENDIAN,
|
||||
.endianness = DEVICE_LITTLE_ENDIAN,
|
||||
.valid.min_access_size = 1,
|
||||
.valid.max_access_size = 8,
|
||||
.impl.min_access_size = 1,
|
||||
@@ -426,7 +426,7 @@ static const MemoryRegionOps gic_ops[] = {
|
||||
{
|
||||
.read_with_attrs = gicv3_redist_read,
|
||||
.write_with_attrs = gicv3_redist_write,
|
||||
.endianness = DEVICE_NATIVE_ENDIAN,
|
||||
.endianness = DEVICE_LITTLE_ENDIAN,
|
||||
.valid.min_access_size = 1,
|
||||
.valid.max_access_size = 8,
|
||||
.impl.min_access_size = 1,
|
||||
|
||||
@@ -1906,7 +1906,7 @@ static const MemoryRegionOps gicv3_its_control_ops = {
|
||||
.valid.max_access_size = 8,
|
||||
.impl.min_access_size = 4,
|
||||
.impl.max_access_size = 8,
|
||||
.endianness = DEVICE_NATIVE_ENDIAN,
|
||||
.endianness = DEVICE_LITTLE_ENDIAN,
|
||||
};
|
||||
|
||||
static const MemoryRegionOps gicv3_its_translation_ops = {
|
||||
@@ -1916,7 +1916,7 @@ static const MemoryRegionOps gicv3_its_translation_ops = {
|
||||
.valid.max_access_size = 4,
|
||||
.impl.min_access_size = 2,
|
||||
.impl.max_access_size = 4,
|
||||
.endianness = DEVICE_NATIVE_ENDIAN,
|
||||
.endianness = DEVICE_LITTLE_ENDIAN,
|
||||
};
|
||||
|
||||
static void gicv3_arm_its_realize(DeviceState *dev, Error **errp)
|
||||
|
||||
@@ -97,7 +97,7 @@ static MemTxResult gicv3_its_trans_write(void *opaque, hwaddr offset,
|
||||
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,
|
||||
};
|
||||
|
||||
void gicv3_its_init_mmio(GICv3ITSState *s, const MemoryRegionOps *ops,
|
||||
|
||||
Reference in New Issue
Block a user