mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
hw/pci-host: Mark versatile regions as little-endian
This device is only used by the ARM targets, which are only built as little-endian. Therefore the DEVICE_NATIVE_ENDIAN definition expand to DEVICE_LITTLE_ENDIAN (besides, the DEVICE_BIG_ENDIAN case isn't tested). Simplify directly using DEVICE_LITTLE_ENDIAN. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20250212113938.38692-5-philmd@linaro.org>
This commit is contained in:
parent
8970e2ea01
commit
62fb8ec35b
1 changed files with 2 additions and 2 deletions
|
@ -246,7 +246,7 @@ static uint64_t pci_vpb_reg_read(void *opaque, hwaddr addr,
|
||||||
static const MemoryRegionOps pci_vpb_reg_ops = {
|
static const MemoryRegionOps pci_vpb_reg_ops = {
|
||||||
.read = pci_vpb_reg_read,
|
.read = pci_vpb_reg_read,
|
||||||
.write = pci_vpb_reg_write,
|
.write = pci_vpb_reg_write,
|
||||||
.endianness = DEVICE_NATIVE_ENDIAN,
|
.endianness = DEVICE_LITTLE_ENDIAN,
|
||||||
.valid = {
|
.valid = {
|
||||||
.min_access_size = 4,
|
.min_access_size = 4,
|
||||||
.max_access_size = 4,
|
.max_access_size = 4,
|
||||||
|
@ -312,7 +312,7 @@ static uint64_t pci_vpb_config_read(void *opaque, hwaddr addr,
|
||||||
static const MemoryRegionOps pci_vpb_config_ops = {
|
static const MemoryRegionOps pci_vpb_config_ops = {
|
||||||
.read = pci_vpb_config_read,
|
.read = pci_vpb_config_read,
|
||||||
.write = pci_vpb_config_write,
|
.write = pci_vpb_config_write,
|
||||||
.endianness = DEVICE_NATIVE_ENDIAN,
|
.endianness = DEVICE_LITTLE_ENDIAN,
|
||||||
};
|
};
|
||||||
|
|
||||||
static int pci_vpb_map_irq(PCIDevice *d, int irq_num)
|
static int pci_vpb_map_irq(PCIDevice *d, int irq_num)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue