@@ -463,7 +463,7 @@ static const MemoryRegionOps acpi_pm_evt_ops = {
.write = acpi_pm_evt_write,
.valid.min_access_size = 2,
.valid.max_access_size = 2,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
void acpi_pm1_evt_init(ACPIREGS *ar, acpi_update_sci_fn update_sci,
@@ -532,7 +532,7 @@ static const MemoryRegionOps acpi_pm_tmr_ops = {
.write = acpi_pm_tmr_write,
.valid.min_access_size = 4,
.valid.max_access_size = 4,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
void acpi_pm_tmr_init(ACPIREGS *ar, acpi_update_sci_fn update_sci,
@@ -604,7 +604,7 @@ static const MemoryRegionOps acpi_pm_cnt_ops = {
.write = acpi_pm_cnt_write,
.valid.min_access_size = 2,
.valid.max_access_size = 2,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
void acpi_pm1_cnt_init(ACPIREGS *ar, MemoryRegion *parent,
@@ -180,7 +180,7 @@ static void cpu_hotplug_wr(void *opaque, hwaddr addr, uint64_t data,
static const MemoryRegionOps cpu_hotplug_ops = {
.read = cpu_hotplug_rd,
.write = cpu_hotplug_wr,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.valid = {
.min_access_size = 1,
.max_access_size = 4,
@@ -48,7 +48,7 @@ static void cpu_status_write(void *opaque, hwaddr addr, uint64_t data,
static const MemoryRegionOps AcpiCpuHotplug_ops = {
.read = cpu_status_read,
.write = cpu_status_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.valid = {
.min_access_size = 1,
.max_access_size = 1,
@@ -77,7 +77,7 @@ static const MemoryRegionOps ich9_gpe_ops = {
.valid.max_access_size = 4,
.impl.min_access_size = 1,
.impl.max_access_size = 1,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static uint64_t ich9_smi_readl(void *opaque, hwaddr addr, unsigned width)
@@ -118,7 +118,7 @@ static const MemoryRegionOps ich9_smi_ops = {
.write = ich9_smi_writel,
.valid.min_access_size = 4,
.valid.max_access_size = 4,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
void ich9_pm_iospace_update(ICH9LPCPMRegs *pm, uint32_t pm_io_base)
@@ -202,7 +202,7 @@ static void acpi_memory_hotplug_write(void *opaque, hwaddr addr, uint64_t data,
static const MemoryRegionOps acpi_memory_hotplug_ops = {
.read = acpi_memory_hotplug_read,
.write = acpi_memory_hotplug_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.valid = {
.min_access_size = 1,
.max_access_size = 4,
@@ -911,7 +911,7 @@ exit:
static const MemoryRegionOps nvdimm_dsm_ops = {
.read = nvdimm_dsm_read,
.write = nvdimm_dsm_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.valid = {
.min_access_size = 4,
.max_access_size = 4,
@@ -352,7 +352,7 @@ static void pci_write(void *opaque, hwaddr addr, uint64_t data,
static const MemoryRegionOps acpi_pcihp_io_ops = {
.read = pci_read,
.write = pci_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.valid = {
.min_access_size = 4,
.max_access_size = 4,
@@ -603,7 +603,7 @@ static const MemoryRegionOps piix4_gpe_ops = {
.valid.max_access_size = 4,
.impl.min_access_size = 1,
.impl.max_access_size = 1,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
@@ -217,7 +217,7 @@ static const MemoryRegionOps tco_io_ops = {
.valid.max_access_size = 4,
.impl.min_access_size = 1,
.impl.max_access_size = 2,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
void acpi_pm_tco_init(TCOIORegs *tr, MemoryRegion *parent)
@@ -26,7 +26,7 @@ static void ignore_write(void *opaque, hwaddr addr, uint64_t v, unsigned size)
const MemoryRegionOps alpha_pci_ignore_ops = {
.read = ignore_read,
.write = ignore_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.valid = {
.min_access_size = 1,
.max_access_size = 8,
@@ -56,7 +56,7 @@ static void bw_conf1_write(void *opaque, hwaddr addr,
const MemoryRegionOps alpha_pci_conf1_ops = {
.read = bw_conf1_read,
.write = bw_conf1_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.impl = {
.min_access_size = 1,
.max_access_size = 4,
@@ -79,7 +79,7 @@ static void special_write(void *opaque, hwaddr addr,
const MemoryRegionOps alpha_pci_iack_ops = {
.read = iack_read,
.write = special_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.valid = {
.min_access_size = 4,
.max_access_size = 4,
@@ -568,7 +568,7 @@ static MemTxResult pchip_write(void *opaque, hwaddr addr,
static const MemoryRegionOps cchip_ops = {
.read_with_attrs = cchip_read,
.write_with_attrs = cchip_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.valid = {
.min_access_size = 8,
.max_access_size = 8,
@@ -582,7 +582,7 @@ static const MemoryRegionOps cchip_ops = {
static const MemoryRegionOps dchip_ops = {
.read = dchip_read,
.write = dchip_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.valid = {
.min_access_size = 8,
.max_access_size = 8,
@@ -596,7 +596,7 @@ static const MemoryRegionOps dchip_ops = {
static const MemoryRegionOps pchip_ops = {
.read_with_attrs = pchip_read,
.write_with_attrs = pchip_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.valid = {
.min_access_size = 8,
.max_access_size = 8,
@@ -332,7 +332,7 @@ static void aspeed_soc_realize(DeviceState *dev, Error **errp)
if (serial_hd(0)) {
qemu_irq uart5 = aspeed_soc_get_irq(s, ASPEED_UART5);
serial_mm_init(get_system_memory(), sc->info->memmap[ASPEED_UART5], 2,
- uart5, 38400, serial_hd(0), DEVICE_LITTLE_ENDIAN);
+ uart5, 38400, serial_hd(0), MO_LE);
}
/* I2C */
@@ -258,7 +258,7 @@ static void omap_mpu_timer_write(void *opaque, hwaddr addr,
static const MemoryRegionOps omap_mpu_timer_ops = {
.read = omap_mpu_timer_read,
.write = omap_mpu_timer_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void omap_mpu_timer_reset(struct omap_mpu_timer_s *s)
@@ -1349,7 +1349,7 @@ static MemTxResult smmu_read_mmio(void *opaque, hwaddr offset, uint64_t *data,
static const MemoryRegionOps smmu_mem_ops = {
.read_with_attrs = smmu_read_mmio,
.write_with_attrs = smmu_write_mmio,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.valid = {
.min_access_size = 4,
.max_access_size = 8,
@@ -1276,7 +1276,7 @@ static const MemoryRegionOps ac97_io_nam_ops = {
.min_access_size = 1,
.max_access_size = 4,
},
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static uint64_t nabm_read(void *opaque, hwaddr addr, unsigned size)
@@ -1325,7 +1325,7 @@ static const MemoryRegionOps ac97_io_nabm_ops = {
.min_access_size = 1,
.max_access_size = 4,
},
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void ac97_on_reset (DeviceState *dev)
@@ -774,7 +774,7 @@ static const MemoryRegionOps es1370_io_ops = {
.min_access_size = 4,
.max_access_size = 4,
},
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static const VMStateDescription vmstate_es1370_channel = {
@@ -242,7 +242,7 @@ static void mv88w8618_audio_reset(DeviceState *d)
static const MemoryRegionOps mv88w8618_audio_ops = {
.read = mv88w8618_audio_read,
.write = mv88w8618_audio_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void mv88w8618_audio_init(Object *obj)
@@ -522,7 +522,7 @@ static void pl041_device_reset(DeviceState *d)
static const MemoryRegionOps pl041_ops = {
.read = pl041_read,
.write = pl041_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void pl041_init(Object *obj)
@@ -1273,7 +1273,7 @@ static void nvme_mmio_write(void *opaque, hwaddr addr, uint64_t data,
static const MemoryRegionOps nvme_mmio_ops = {
.read = nvme_mmio_read,
.write = nvme_mmio_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.impl = {
.min_access_size = 2,
.max_access_size = 8,
@@ -1296,7 +1296,7 @@ static uint64_t nvme_cmb_read(void *opaque, hwaddr addr, unsigned size)
static const MemoryRegionOps nvme_cmb_ops = {
.read = nvme_cmb_read,
.write = nvme_cmb_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.impl = {
.min_access_size = 1,
.max_access_size = 8,
@@ -771,7 +771,7 @@ static void onenand_write(void *opaque, hwaddr addr,
static const MemoryRegionOps onenand_ops = {
.read = onenand_read,
.write = onenand_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void onenand_realize(DeviceState *dev, Error **errp)
@@ -459,7 +459,7 @@ static uint64_t uart_read(void *opaque, hwaddr offset,
static const MemoryRegionOps uart_ops = {
.read = uart_read,
.write = uart_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void cadence_uart_reset(DeviceState *dev)
@@ -300,7 +300,7 @@ static void uart_write(void *opaque, hwaddr offset, uint64_t value,
static const MemoryRegionOps uart_ops = {
.read = uart_read,
.write = uart_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void cmsdk_apb_uart_reset(DeviceState *dev)
@@ -82,7 +82,7 @@ static const MemoryRegionOps debugcon_ops = {
.write = debugcon_ioport_write,
.valid.min_access_size = 1,
.valid.max_access_size = 1,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void debugcon_realize_core(DebugconState *s, Error **errp)
@@ -157,7 +157,7 @@ ser_write(void *opaque, hwaddr addr,
static const MemoryRegionOps ser_ops = {
.read = ser_read,
.write = ser_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.valid = {
.min_access_size = 4,
.max_access_size = 4
@@ -334,7 +334,7 @@ static void imx_event(void *opaque, int event)
static const struct MemoryRegionOps imx_serial_ops = {
.read = imx_serial_read,
.write = imx_serial_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void imx_serial_realize(DeviceState *dev, Error **errp)
@@ -192,7 +192,7 @@ static void uart_write(void *opaque, hwaddr addr,
static const MemoryRegionOps uart_ops = {
.read = uart_read,
.write = uart_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void nrf51_uart_reset(DeviceState *dev)
@@ -289,7 +289,7 @@ static void pl011_event(void *opaque, int event)
static const MemoryRegionOps pl011_ops = {
.read = pl011_read,
.write = pl011_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static const VMStateDescription vmstate_pl011 = {
@@ -977,7 +977,7 @@ const MemoryRegionOps serial_io_ops = {
.min_access_size = 1,
.max_access_size = 1,
},
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
SerialState *serial_init(int base, qemu_irq irq, int baudbase,
@@ -1020,7 +1020,7 @@ static const MemoryRegionOps serial_mm_ops[2] = {
[0] = {
.read = serial_mm_read,
.write = serial_mm_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.valid.max_access_size = 8,
.impl.max_access_size = 8,
},
@@ -810,7 +810,7 @@ static void ati_mm_write(void *opaque, hwaddr addr,
static const MemoryRegionOps ati_mm_ops = {
.read = ati_mm_read,
.write = ati_mm_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void ati_vga_realize(PCIDevice *dev, Error **errp)
@@ -107,7 +107,7 @@ static const MemoryRegionOps bochs_display_vbe_ops = {
.valid.max_access_size = 4,
.impl.min_access_size = 2,
.impl.max_access_size = 2,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static uint64_t bochs_display_qext_read(void *ptr, hwaddr addr,
@@ -148,7 +148,7 @@ static const MemoryRegionOps bochs_display_qext_ops = {
.write = bochs_display_qext_write,
.valid.min_access_size = 4,
.valid.max_access_size = 4,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static int bochs_display_get_mode(BochsDisplayState *s,
@@ -2125,7 +2125,7 @@ static void cirrus_vga_mem_write(void *opaque,
static const MemoryRegionOps cirrus_vga_mem_ops = {
.read = cirrus_vga_mem_read,
.write = cirrus_vga_mem_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.impl = {
.min_access_size = 1,
.max_access_size = 1,
@@ -2438,7 +2438,7 @@ static void cirrus_linear_bitblt_write(void *opaque,
static const MemoryRegionOps cirrus_linear_bitblt_io_ops = {
.read = cirrus_linear_bitblt_read,
.write = cirrus_linear_bitblt_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.impl = {
.min_access_size = 1,
.max_access_size = 1,
@@ -2738,7 +2738,7 @@ static void cirrus_mmio_write(void *opaque, hwaddr addr,
static const MemoryRegionOps cirrus_mmio_io_ops = {
.read = cirrus_mmio_read,
.write = cirrus_mmio_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.impl = {
.min_access_size = 1,
.max_access_size = 1,
@@ -2849,7 +2849,7 @@ static void cirrus_reset(void *opaque)
static const MemoryRegionOps cirrus_linear_io_ops = {
.read = cirrus_linear_read,
.write = cirrus_linear_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.impl = {
.min_access_size = 1,
.max_access_size = 1,
@@ -2859,7 +2859,7 @@ static const MemoryRegionOps cirrus_linear_io_ops = {
static const MemoryRegionOps cirrus_vga_io_ops = {
.read = cirrus_vga_ioport_read,
.write = cirrus_vga_ioport_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.impl = {
.min_access_size = 1,
.max_access_size = 1,
@@ -22,7 +22,7 @@ static const MemoryRegionOps edid_region_ops = {
.valid.max_access_size = 4,
.impl.min_access_size = 1,
.impl.max_access_size = 1,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
void qemu_edid_region_io(MemoryRegion *region, Object *owner,
@@ -431,7 +431,7 @@ static void g364fb_ctrl_write(void *opaque,
static const MemoryRegionOps g364fb_ctrl_ops = {
.read = g364fb_ctrl_read,
.write = g364fb_ctrl_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.impl.min_access_size = 4,
.impl.max_access_size = 4,
};
@@ -473,7 +473,7 @@ static void pl110_write(void *opaque, hwaddr offset,
static const MemoryRegionOps pl110_ops = {
.read = pl110_read,
.write = pl110_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void pl110_mux_ctrl_set(void *opaque, int line, int level)
@@ -968,7 +968,7 @@ static const MemoryRegionOps sm501_system_config_ops = {
.min_access_size = 4,
.max_access_size = 4,
},
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static uint64_t sm501_i2c_read(void *opaque, hwaddr addr, unsigned size)
@@ -1071,7 +1071,7 @@ static const MemoryRegionOps sm501_i2c_ops = {
.min_access_size = 1,
.max_access_size = 1,
},
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static uint32_t sm501_palette_read(void *opaque, hwaddr addr)
@@ -1359,7 +1359,7 @@ static const MemoryRegionOps sm501_disp_ctrl_ops = {
.min_access_size = 4,
.max_access_size = 4,
},
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static uint64_t sm501_2d_engine_read(void *opaque, hwaddr addr,
@@ -1534,7 +1534,7 @@ static const MemoryRegionOps sm501_2d_engine_ops = {
.min_access_size = 4,
.max_access_size = 4,
},
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
/* draw line functions for all console modes */
@@ -1962,7 +1962,7 @@ static void sm501_realize_sysbus(DeviceState *dev, Error **errp)
if (s->chr_state) {
serial_mm_init(&s->state.mmio_region, SM501_UART0, 2,
NULL, /* TODO : chain irq to IRL */
- 115200, s->chr_state, DEVICE_LITTLE_ENDIAN);
+ 115200, s->chr_state, MO_LE);
}
}
@@ -549,7 +549,7 @@ TC6393xbState *tc6393xb_init(MemoryRegion *sysmem, uint32_t base, qemu_irq irq)
static const MemoryRegionOps tc6393xb_ops = {
.read = tc6393xb_readb,
.write = tc6393xb_writeb,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.impl = {
.min_access_size = 1,
.max_access_size = 1,
@@ -111,7 +111,7 @@ static const MemoryRegionOps pci_vga_ioport_ops = {
.valid.max_access_size = 4,
.impl.min_access_size = 1,
.impl.max_access_size = 2,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static uint64_t pci_vga_bochs_read(void *ptr, hwaddr addr,
@@ -141,7 +141,7 @@ static const MemoryRegionOps pci_vga_bochs_ops = {
.valid.max_access_size = 4,
.impl.min_access_size = 2,
.impl.max_access_size = 2,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static uint64_t pci_vga_qext_read(void *ptr, hwaddr addr, unsigned size)
@@ -195,7 +195,7 @@ static const MemoryRegionOps pci_vga_qext_ops = {
.write = pci_vga_qext_write,
.valid.min_access_size = 4,
.valid.max_access_size = 4,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
void pci_std_vga_mmio_region_init(VGACommonState *s,
@@ -2064,7 +2064,7 @@ static void vga_mem_write(void *opaque, hwaddr addr,
const MemoryRegionOps vga_mem_ops = {
.read = vga_mem_read,
.write = vga_mem_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.impl = {
.min_access_size = 1,
.max_access_size = 1,
@@ -1281,7 +1281,7 @@ static void vmsvga_io_write(void *opaque, hwaddr addr,
static const MemoryRegionOps vmsvga_io_ops = {
.read = vmsvga_io_read,
.write = vmsvga_io_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.valid = {
.min_access_size = 4,
.max_access_size = 4,
@@ -290,7 +290,7 @@ static void bcm2835_dma15_write(void *opaque, hwaddr offset, uint64_t value,
static const MemoryRegionOps bcm2835_dma0_ops = {
.read = bcm2835_dma0_read,
.write = bcm2835_dma0_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.valid.min_access_size = 4,
.valid.max_access_size = 4,
};
@@ -298,7 +298,7 @@ static const MemoryRegionOps bcm2835_dma0_ops = {
static const MemoryRegionOps bcm2835_dma15_ops = {
.read = bcm2835_dma15_read,
.write = bcm2835_dma15_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.valid.min_access_size = 4,
.valid.max_access_size = 4,
};
@@ -700,7 +700,7 @@ dma_write(void *opaque, hwaddr addr,
static const MemoryRegionOps dma_ops = {
.read = dma_read,
.write = dma_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.valid = {
.min_access_size = 1,
.max_access_size = 4
@@ -350,7 +350,7 @@ static void pl080_write(void *opaque, hwaddr offset,
static const MemoryRegionOps pl080_ops = {
.read = pl080_read,
.write = pl080_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void pl080_reset(DeviceState *dev)
@@ -1496,7 +1496,7 @@ static uint64_t pl330_iomem_read(void *opaque, hwaddr offset,
static const MemoryRegionOps pl330_ops = {
.read = pl330_iomem_read,
.write = pl330_iomem_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.impl = {
.min_access_size = 4,
.max_access_size = 4,
@@ -74,7 +74,7 @@ static const MemoryRegionOps puv3_dma_ops = {
.min_access_size = 4,
.max_access_size = 4,
},
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void puv3_dma_realize(DeviceState *dev, Error **errp)
@@ -745,7 +745,7 @@ static void zdma_write(void *opaque, hwaddr addr, uint64_t value,
static const MemoryRegionOps zdma_ops = {
.read = zdma_read,
.write = zdma_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.valid = {
.min_access_size = 4,
.max_access_size = 4,
@@ -320,7 +320,7 @@ static const RegisterAccessInfo xlnx_zynq_devcfg_regs_info[] = {
static const MemoryRegionOps xlnx_zynq_devcfg_reg_ops = {
.read = register_read_memory,
.write = register_write_memory,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.valid = {
.min_access_size = 4,
.max_access_size = 4,
@@ -227,7 +227,7 @@ static void nrf51_gpio_write(void *opaque, hwaddr offset,
static const MemoryRegionOps gpio_ops = {
.read = nrf51_gpio_read,
.write = nrf51_gpio_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.impl.min_access_size = 4,
.impl.max_access_size = 4,
};
@@ -341,7 +341,7 @@ static void pl061_set_irq(void * opaque, int irq, int level)
static const MemoryRegionOps pl061_ops = {
.read = pl061_read,
.write = pl061_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void pl061_luminary_init(Object *obj)
@@ -157,7 +157,7 @@ static void scoop_write(void *opaque, hwaddr addr,
static const MemoryRegionOps scoop_ops = {
.read = scoop_read,
.write = scoop_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void scoop_gpio_set(void *opaque, int line, int level)
@@ -357,7 +357,7 @@ static void dino_config_data_write(void *opaque, hwaddr addr,
static const MemoryRegionOps dino_config_data_ops = {
.read = dino_config_data_read,
.write = dino_config_data_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static uint64_t dino_config_addr_read(void *opaque, hwaddr addr, unsigned len)
@@ -287,7 +287,7 @@ static const MemoryRegionOps synic_test_sint_ops = {
.write = hv_test_dev_write,
.valid.min_access_size = 4,
.valid.max_access_size = 4,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void hv_test_dev_realizefn(DeviceState *d, Error **errp)
@@ -366,13 +366,13 @@ static void aspeed_i2c_ctrl_write(void *opaque, hwaddr offset,
static const MemoryRegionOps aspeed_i2c_bus_ops = {
.read = aspeed_i2c_bus_read,
.write = aspeed_i2c_bus_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static const MemoryRegionOps aspeed_i2c_ctrl_ops = {
.read = aspeed_i2c_ctrl_read,
.write = aspeed_i2c_ctrl_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static const VMStateDescription aspeed_i2c_bus_vmstate = {
@@ -278,7 +278,7 @@ static const MemoryRegionOps imx_i2c_ops = {
.write = imx_i2c_write,
.valid.min_access_size = 1,
.valid.max_access_size = 2,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static const VMStateDescription imx_i2c_vmstate = {
@@ -71,7 +71,7 @@ static void microbit_i2c_write(void *opaque, hwaddr addr, uint64_t data,
static const MemoryRegionOps microbit_i2c_ops = {
.read = microbit_i2c_read,
.write = microbit_i2c_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.impl.min_access_size = 4,
.impl.max_access_size = 4,
};
@@ -452,7 +452,7 @@ static const MemoryRegionOps pm_smbus_ops = {
.write = smb_ioport_writeb,
.valid.min_access_size = 1,
.valid.max_access_size = 1,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
bool pm_smbus_vmstate_needed(void)
@@ -77,7 +77,7 @@ static void versatile_i2c_write(void *opaque, hwaddr offset,
static const MemoryRegionOps versatile_i2c_ops = {
.read = versatile_i2c_read,
.write = versatile_i2c_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void versatile_i2c_init(Object *obj)
@@ -1380,7 +1380,7 @@ static MemTxResult amdvi_mem_ir_read(void *opaque, hwaddr addr,
static const MemoryRegionOps amdvi_ir_ops = {
.read_with_attrs = amdvi_mem_ir_read,
.write_with_attrs = amdvi_mem_ir_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.impl = {
.min_access_size = 4,
.max_access_size = 4,
@@ -1454,7 +1454,7 @@ static AddressSpace *amdvi_host_dma_iommu(PCIBus *bus, void *opaque, int devfn)
static const MemoryRegionOps mmio_mem_ops = {
.read = amdvi_mmio_read,
.write = amdvi_mmio_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.impl = {
.min_access_size = 1,
.max_access_size = 8,
@@ -2996,7 +2996,7 @@ static const VMStateDescription vtd_vmstate = {
static const MemoryRegionOps vtd_mem_ops = {
.read = vtd_mem_read,
.write = vtd_mem_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.impl = {
.min_access_size = 4,
.max_access_size = 8,
@@ -3273,7 +3273,7 @@ static MemTxResult vtd_mem_ir_write(void *opaque, hwaddr addr,
static const MemoryRegionOps vtd_mem_ir_ops = {
.read_with_attrs = vtd_mem_ir_read,
.write_with_attrs = vtd_mem_ir_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.impl = {
.min_access_size = 4,
.max_access_size = 4,
@@ -819,7 +819,7 @@ static const MemoryRegionOps port92_ops = {
.min_access_size = 1,
.max_access_size = 1,
},
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void port92_initfn(Object *obj)
@@ -137,7 +137,7 @@ static const MemoryRegionOps vmport_ops = {
.min_access_size = 4,
.max_access_size = 4,
},
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void vmport_realizefn(DeviceState *dev, Error **errp)
@@ -329,7 +329,7 @@ static const MemoryRegionOps platform_fixed_io_ops = {
.max_access_size = 4,
.unaligned = true,
},
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void platform_fixed_ioport_init(PCIXenPlatformState* s)
@@ -70,7 +70,7 @@ static void xen_pv_mmio_write(void *opaque, hwaddr addr,
static const MemoryRegionOps xen_pv_mmio_ops = {
.read = &xen_pv_mmio_read,
.write = &xen_pv_mmio_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static const VMStateDescription vmstate_xen_pvdevice = {
@@ -82,7 +82,7 @@ static const MemoryRegionOps allwinner_ahci_mem_ops = {
.write = allwinner_ahci_mem_write,
.valid.min_access_size = 4,
.valid.max_access_size = 4,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void allwinner_ahci_init(Object *obj)
@@ -523,7 +523,7 @@ static void ahci_mem_write(void *opaque, hwaddr addr,
static const MemoryRegionOps ahci_mem_ops = {
.read = ahci_mem_read,
.write = ahci_mem_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static uint64_t ahci_idp_read(void *opaque, hwaddr addr,
@@ -559,7 +559,7 @@ static void ahci_idp_write(void *opaque, hwaddr addr,
static const MemoryRegionOps ahci_idp_ops = {
.read = ahci_idp_read,
.write = ahci_idp_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
@@ -352,7 +352,7 @@ static const MemoryRegionOps pmac_ide_ops = {
.write = pmac_ide_write,
.valid.min_access_size = 1,
.valid.max_access_size = 4,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static const VMStateDescription vmstate_pmac = {
@@ -85,7 +85,7 @@ static void mmio_ide_write(void *opaque, hwaddr addr,
static const MemoryRegionOps mmio_ide_ops = {
.read = mmio_ide_read,
.write = mmio_ide_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static uint64_t mmio_ide_status_read(void *opaque, hwaddr addr,
@@ -105,7 +105,7 @@ static void mmio_ide_cmd_write(void *opaque, hwaddr addr,
static const MemoryRegionOps mmio_ide_cs_ops = {
.read = mmio_ide_status_read,
.write = mmio_ide_cmd_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static const VMStateDescription vmstate_ide_mmio = {
@@ -62,7 +62,7 @@ static void pci_ide_cmd_write(void *opaque, hwaddr addr,
const MemoryRegionOps pci_ide_cmd_le_ops = {
.read = pci_ide_cmd_read,
.write = pci_ide_cmd_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static uint64_t pci_ide_data_read(void *opaque, hwaddr addr, unsigned size)
@@ -100,7 +100,7 @@ static void pci_ide_data_write(void *opaque, hwaddr addr,
const MemoryRegionOps pci_ide_data_le_ops = {
.read = pci_ide_data_read,
.write = pci_ide_data_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void bmdma_start_dma(IDEDMA *dma, IDEState *s,
@@ -338,7 +338,7 @@ static void bmdma_addr_write(void *opaque, hwaddr addr,
MemoryRegionOps bmdma_addr_ioport_ops = {
.read = bmdma_addr_read,
.write = bmdma_addr_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static bool ide_bmdma_current_needed(void *opaque)
@@ -209,7 +209,7 @@ static void sii3112_reg_write(void *opaque, hwaddr addr,
static const MemoryRegionOps sii3112_reg_ops = {
.read = sii3112_reg_read,
.write = sii3112_reg_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
/* the PCI irq level is the logical OR of the two channels */
@@ -521,7 +521,7 @@ static const MemoryRegionOps i8042_data_ops = {
.min_access_size = 1,
.max_access_size = 1,
},
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static const MemoryRegionOps i8042_cmd_ops = {
@@ -531,7 +531,7 @@ static const MemoryRegionOps i8042_cmd_ops = {
.min_access_size = 1,
.max_access_size = 1,
},
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void i8042_initfn(Object *obj)
@@ -139,7 +139,7 @@ static void pl050_write(void *opaque, hwaddr offset,
static const MemoryRegionOps pl050_ops = {
.read = pl050_read,
.write = pl050_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void pl050_realize(DeviceState *dev, Error **errp)
@@ -2000,38 +2000,38 @@ static const MemoryRegionOps gic_ops[2] = {
{
.read_with_attrs = gic_dist_read,
.write_with_attrs = gic_dist_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
},
{
.read_with_attrs = gic_thiscpu_read,
.write_with_attrs = gic_thiscpu_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
}
};
static const MemoryRegionOps gic_cpu_ops = {
.read_with_attrs = gic_do_cpu_read,
.write_with_attrs = gic_do_cpu_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static const MemoryRegionOps gic_virt_ops[2] = {
{
.read_with_attrs = gic_thiscpu_hyp_read,
.write_with_attrs = gic_thiscpu_hyp_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
},
{
.read_with_attrs = gic_thisvcpu_read,
.write_with_attrs = gic_thisvcpu_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
}
};
static const MemoryRegionOps gic_viface_ops = {
.read_with_attrs = gic_do_hyp_read,
.write_with_attrs = gic_do_hyp_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void arm_gic_realize(DeviceState *dev, Error **errp)
@@ -128,7 +128,7 @@ static void gicv2m_write(void *opaque, hwaddr offset,
static const MemoryRegionOps gicv2m_ops = {
.read = gicv2m_read,
.write = gicv2m_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void gicv2m_realize(DeviceState *dev, Error **errp)
@@ -352,12 +352,12 @@ static const MemoryRegionOps gic_ops[] = {
{
.read_with_attrs = gicv3_dist_read,
.write_with_attrs = gicv3_dist_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
},
{
.read_with_attrs = gicv3_redist_read,
.write_with_attrs = gicv3_redist_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
}
};
@@ -285,7 +285,7 @@ static void aspeed_vic_write(void *opaque, hwaddr offset, uint64_t data,
static const MemoryRegionOps aspeed_vic_ops = {
.read = aspeed_vic_read,
.write = aspeed_vic_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.valid.min_access_size = 4,
.valid.max_access_size = 4,
.valid.unaligned = false,
@@ -112,7 +112,7 @@ static void pic_write(void *opaque, hwaddr addr,
static const MemoryRegionOps pic_ops = {
.read = pic_read,
.write = pic_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.valid = {
.min_access_size = 4,
.max_access_size = 4
@@ -110,7 +110,7 @@ static uint64_t heathrow_read(void *opaque, hwaddr addr,
static const MemoryRegionOps heathrow_ops = {
.read = heathrow_read,
.write = heathrow_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void heathrow_set_irq(void *opaque, int num, int level)
@@ -310,7 +310,7 @@ static void imx_avic_write(void *opaque, hwaddr offset,
static const MemoryRegionOps imx_avic_ops = {
.read = imx_avic_read,
.write = imx_avic_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void imx_avic_reset(DeviceState *dev)
@@ -65,7 +65,7 @@ static void imx_gpcv2_write(void *opaque, hwaddr offset,
static const struct MemoryRegionOps imx_gpcv2_ops = {
.read = imx_gpcv2_read,
.write = imx_gpcv2_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.impl = {
/*
* Our device would not work correctly if the guest was doing
@@ -1150,7 +1150,7 @@ static uint64_t openpic_cpu_read(void *opaque, hwaddr addr, unsigned len)
static const MemoryRegionOps openpic_glb_ops_le = {
.write = openpic_gbl_write,
.read = openpic_gbl_read,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.impl = {
.min_access_size = 4,
.max_access_size = 4,
@@ -1170,7 +1170,7 @@ static const MemoryRegionOps openpic_glb_ops_be = {
static const MemoryRegionOps openpic_tmr_ops_le = {
.write = openpic_tmr_write,
.read = openpic_tmr_read,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.impl = {
.min_access_size = 4,
.max_access_size = 4,
@@ -1190,7 +1190,7 @@ static const MemoryRegionOps openpic_tmr_ops_be = {
static const MemoryRegionOps openpic_cpu_ops_le = {
.write = openpic_cpu_write,
.read = openpic_cpu_read,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.impl = {
.min_access_size = 4,
.max_access_size = 4,
@@ -1210,7 +1210,7 @@ static const MemoryRegionOps openpic_cpu_ops_be = {
static const MemoryRegionOps openpic_src_ops_le = {
.write = openpic_src_write,
.read = openpic_src_read,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.impl = {
.min_access_size = 4,
.max_access_size = 4,
@@ -222,7 +222,7 @@ static void pl190_write(void *opaque, hwaddr offset,
static const MemoryRegionOps pl190_ops = {
.read = pl190_read,
.write = pl190_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void pl190_reset(DeviceState *d)
@@ -101,7 +101,7 @@ static const MemoryRegionOps puv3_intc_ops = {
.min_access_size = 4,
.max_access_size = 4,
},
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void puv3_intc_realize(DeviceState *dev, Error **errp)
@@ -467,7 +467,7 @@ static void xlnx_pmu_io_intc_reset(DeviceState *dev)
static const MemoryRegionOps xlnx_pmu_io_intc_ops = {
.read = register_read_memory,
.write = register_write_memory,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.valid = {
.min_access_size = 4,
.max_access_size = 4,
@@ -297,7 +297,7 @@ static void xlnx_zynqmp_obs_handler(void *opaque, int n, int level)
static const MemoryRegionOps xlnx_zynqmp_ipi_ops = {
.read = register_read_memory,
.write = register_write_memory,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.valid = {
.min_access_size = 4,
.max_access_size = 4,
@@ -322,7 +322,7 @@ static const MemoryRegionOps ipmi_bt_io_ops = {
.min_access_size = 1,
.max_access_size = 1,
},
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void ipmi_bt_set_atn(IPMIInterface *ii, int val, int irq)
@@ -315,7 +315,7 @@ const MemoryRegionOps ipmi_kcs_io_ops = {
.min_access_size = 1,
.max_access_size = 1,
},
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void ipmi_kcs_set_atn(IPMIInterface *ii, int val, int irq)
@@ -573,7 +573,7 @@ static void ich9_lpc_reset(DeviceState *qdev)
static const MemoryRegionOps rcrb_mmio_ops = {
.read = ich9_cc_read,
.write = ich9_cc_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void ich9_lpc_machine_ready(Notifier *n, void *opaque)
@@ -624,7 +624,7 @@ static uint64_t ich9_rst_cnt_read(void *opaque, hwaddr addr, unsigned len)
static const MemoryRegionOps ich9_rst_cnt_ops = {
.read = ich9_rst_cnt_read,
.write = ich9_rst_cnt_write,
- .endianness = DEVICE_LITTLE_ENDIAN
+ .endianness = MO_LE
};
static void ich9_lpc_get_sci_int(Object *obj, Visitor *v, const char *name,
@@ -267,7 +267,7 @@ static uint64_t pc87312_io_read(void *opaque, hwaddr addr, unsigned int size)
static const MemoryRegionOps pc87312_io_ops = {
.read = pc87312_io_read,
.write = pc87312_io_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.valid = {
.min_access_size = 1,
.max_access_size = 1,
@@ -109,7 +109,7 @@ static uint64_t superio_ioport_readb(void *opaque, hwaddr addr, unsigned size)
static const MemoryRegionOps superio_ops = {
.read = superio_ioport_readb,
.write = superio_ioport_writeb,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.impl = {
.min_access_size = 1,
.max_access_size = 1,
@@ -122,7 +122,7 @@ petalogix_ml605_init(MachineState *machine)
serial_mm_init(address_space_mem, UART16550_BASEADDR + 0x1000, 2,
irq[UART16550_IRQ], 115200, serial_hd(0),
- DEVICE_LITTLE_ENDIAN);
+ MO_LE);
/* 2 timers at irq 2 @ 100 Mhz. */
dev = qdev_create(NULL, "xlnx.xps-timer");
@@ -96,7 +96,7 @@ static void a9_scu_write(void *opaque, hwaddr offset,
static const MemoryRegionOps a9_scu_ops = {
.read = a9_scu_read,
.write = a9_scu_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void a9_scu_reset(DeviceState *dev)
@@ -285,7 +285,7 @@ static void qdev_applesmc_isa_reset(DeviceState *dev)
static const MemoryRegionOps applesmc_data_io_ops = {
.write = applesmc_io_data_write,
.read = applesmc_io_data_read,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.impl = {
.min_access_size = 1,
.max_access_size = 1,
@@ -295,7 +295,7 @@ static const MemoryRegionOps applesmc_data_io_ops = {
static const MemoryRegionOps applesmc_cmd_io_ops = {
.write = applesmc_io_cmd_write,
.read = applesmc_io_cmd_read,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.impl = {
.min_access_size = 1,
.max_access_size = 1,
@@ -305,7 +305,7 @@ static const MemoryRegionOps applesmc_cmd_io_ops = {
static const MemoryRegionOps applesmc_err_io_ops = {
.write = applesmc_io_err_write,
.read = applesmc_io_err_read,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.impl = {
.min_access_size = 1,
.max_access_size = 1,
@@ -58,7 +58,7 @@ static void mpcore_scu_write(void *opaque, hwaddr offset,
static const MemoryRegionOps mpcore_scu_ops = {
.read = mpcore_scu_read,
.write = mpcore_scu_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void arm11_scu_realize(DeviceState *dev, Error **errp)
@@ -159,7 +159,7 @@ static void l2x0_priv_reset(DeviceState *dev)
static const MemoryRegionOps l2x0_mem_ops = {
.read = l2x0_priv_read,
.write = l2x0_priv_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void l2x0_priv_init(Object *obj)
@@ -84,7 +84,7 @@ static void armsse_cpuid_write(void *opaque, hwaddr offset,
static const MemoryRegionOps armsse_cpuid_ops = {
.read = armsse_cpuid_read,
.write = armsse_cpuid_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
/* byte/halfword accesses are just zero-padded on reads and writes */
.impl.min_access_size = 4,
.impl.max_access_size = 4,
@@ -140,7 +140,7 @@ static void armsse_mhu_write(void *opaque, hwaddr offset,
static const MemoryRegionOps armsse_mhu_ops = {
.read = armsse_mhu_read,
.write = armsse_mhu_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.valid.min_access_size = 4,
.valid.max_access_size = 4,
};
@@ -277,7 +277,7 @@ static void aspeed_scu_write(void *opaque, hwaddr offset, uint64_t data,
static const MemoryRegionOps aspeed_scu_ops = {
.read = aspeed_scu_read,
.write = aspeed_scu_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.valid.min_access_size = 4,
.valid.max_access_size = 4,
.valid.unaligned = false,
@@ -170,7 +170,7 @@ static void aspeed_sdmc_write(void *opaque, hwaddr addr, uint64_t data,
static const MemoryRegionOps aspeed_sdmc_ops = {
.read = aspeed_sdmc_read,
.write = aspeed_sdmc_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.valid.min_access_size = 4,
.valid.max_access_size = 4,
};
@@ -40,7 +40,7 @@ static const MemoryRegionOps debug_exit_ops = {
.write = debug_exit_write,
.valid.min_access_size = 1,
.valid.max_access_size = 4,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void debug_exit_realizefn(DeviceState *d, Error **errp)
@@ -562,7 +562,7 @@ static MemTxResult iotkit_secctl_ns_write(void *opaque, hwaddr addr,
static const MemoryRegionOps iotkit_secctl_s_ops = {
.read_with_attrs = iotkit_secctl_s_read,
.write_with_attrs = iotkit_secctl_s_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.valid.min_access_size = 1,
.valid.max_access_size = 4,
.impl.min_access_size = 1,
@@ -572,7 +572,7 @@ static const MemoryRegionOps iotkit_secctl_s_ops = {
static const MemoryRegionOps iotkit_secctl_ns_ops = {
.read_with_attrs = iotkit_secctl_ns_read,
.write_with_attrs = iotkit_secctl_ns_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.valid.min_access_size = 1,
.valid.max_access_size = 4,
.impl.min_access_size = 1,
@@ -390,7 +390,7 @@ static void iotkit_sysctl_write(void *opaque, hwaddr offset,
static const MemoryRegionOps iotkit_sysctl_ops = {
.read = iotkit_sysctl_read,
.write = iotkit_sysctl_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
/* byte/halfword accesses are just zero-padded on reads and writes */
.impl.min_access_size = 4,
.impl.max_access_size = 4,
@@ -88,7 +88,7 @@ static void iotkit_sysinfo_write(void *opaque, hwaddr offset,
static const MemoryRegionOps iotkit_sysinfo_ops = {
.read = iotkit_sysinfo_read,
.write = iotkit_sysinfo_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
/* byte/halfword accesses are just zero-padded on reads and writes */
.impl.min_access_size = 4,
.impl.max_access_size = 4,
@@ -145,7 +145,7 @@ static uint64_t macio_gpio_read(void *opaque, hwaddr addr, unsigned size)
static const MemoryRegionOps macio_gpio_ops = {
.read = macio_gpio_read,
.write = macio_gpio_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.impl = {
.min_access_size = 1,
.max_access_size = 1,
@@ -794,7 +794,7 @@ static uint64_t dbdma_read(void *opaque, hwaddr addr,
static const MemoryRegionOps dbdma_ops = {
.read = dbdma_read,
.write = dbdma_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.valid = {
.min_access_size = 4,
.max_access_size = 4,
@@ -286,7 +286,7 @@ static uint64_t timer_read(void *opaque, hwaddr addr, unsigned size)
static const MemoryRegionOps timer_ops = {
.read = timer_read,
.write = timer_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void macio_newworld_realize(PCIDevice *d, Error **errp)
@@ -222,7 +222,7 @@ static void mps2_fpgaio_write(void *opaque, hwaddr offset, uint64_t value,
static const MemoryRegionOps mps2_fpgaio_ops = {
.read = mps2_fpgaio_read,
.write = mps2_fpgaio_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void mps2_fpgaio_reset(DeviceState *dev)
@@ -217,7 +217,7 @@ static void mps2_scc_write(void *opaque, hwaddr offset, uint64_t value,
static const MemoryRegionOps mps2_scc_ops = {
.read = mps2_scc_read,
.write = mps2_scc_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void mps2_scc_reset(DeviceState *dev)
@@ -140,7 +140,7 @@ static void rng_write(void *opaque, hwaddr offset,
static const MemoryRegionOps rng_ops = {
.read = rng_read,
.write = rng_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.impl.min_access_size = 4,
.impl.max_access_size = 4
};
@@ -77,7 +77,7 @@ static const MemoryRegionOps test_irq_ops = {
.write = test_irq_line_write,
.valid.min_access_size = 1,
.valid.max_access_size = 1,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void test_ioport_write(void *opaque, hwaddr addr, uint64_t data,
@@ -103,7 +103,7 @@ static uint64_t test_ioport_read(void *opaque, hwaddr addr, unsigned len)
static const MemoryRegionOps test_ioport_ops = {
.read = test_ioport_read,
.write = test_ioport_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static const MemoryRegionOps test_ioport_byte_ops = {
@@ -113,7 +113,7 @@ static const MemoryRegionOps test_ioport_byte_ops = {
.valid.max_access_size = 4,
.impl.min_access_size = 1,
.impl.max_access_size = 1,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static uint64_t test_flush_page_read(void *opaque, hwaddr addr, unsigned size)
@@ -141,7 +141,7 @@ static const MemoryRegionOps test_flush_ops = {
.write = test_flush_page_write,
.valid.min_access_size = 4,
.valid.max_access_size = 4,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static uint64_t test_iomem_read(void *opaque, hwaddr addr, unsigned len)
@@ -164,7 +164,7 @@ static void test_iomem_write(void *opaque, hwaddr addr, uint64_t val,
static const MemoryRegionOps test_iomem_ops = {
.read = test_iomem_read,
.write = test_iomem_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void testdev_realizefn(DeviceState *d, Error **errp)
@@ -222,7 +222,7 @@ pci_testdev_pio_write(void *opaque, hwaddr addr, uint64_t val,
static const MemoryRegionOps pci_testdev_mmio_ops = {
.read = pci_testdev_read,
.write = pci_testdev_mmio_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.impl = {
.min_access_size = 1,
.max_access_size = 1,
@@ -232,7 +232,7 @@ static const MemoryRegionOps pci_testdev_mmio_ops = {
static const MemoryRegionOps pci_testdev_pio_ops = {
.read = pci_testdev_read,
.write = pci_testdev_pio_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.impl = {
.min_access_size = 1,
.max_access_size = 1,
@@ -117,7 +117,7 @@ static const MemoryRegionOps puv3_pm_ops = {
.min_access_size = 4,
.max_access_size = 4,
},
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void puv3_pm_realize(DeviceState *dev, Error **errp)
@@ -335,7 +335,7 @@ static MemTxResult tz_mpc_reg_write(void *opaque, hwaddr addr,
static const MemoryRegionOps tz_mpc_reg_ops = {
.read_with_attrs = tz_mpc_reg_read,
.write_with_attrs = tz_mpc_reg_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.valid.min_access_size = 1,
.valid.max_access_size = 4,
.impl.min_access_size = 1,
@@ -411,7 +411,7 @@ static MemTxResult tz_mpc_mem_blocked_write(void *opaque, hwaddr addr,
static const MemoryRegionOps tz_mpc_mem_blocked_ops = {
.read_with_attrs = tz_mpc_mem_blocked_read,
.write_with_attrs = tz_mpc_mem_blocked_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.valid.min_access_size = 1,
.valid.max_access_size = 8,
.impl.min_access_size = 1,
@@ -209,7 +209,7 @@ static MemTxResult tz_msc_write(void *opaque, hwaddr addr, uint64_t val,
static const MemoryRegionOps tz_msc_ops = {
.read_with_attrs = tz_msc_read,
.write_with_attrs = tz_msc_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void tz_msc_reset(DeviceState *dev)
@@ -182,7 +182,7 @@ static MemTxResult tz_ppc_write(void *opaque, hwaddr addr, uint64_t val,
static const MemoryRegionOps tz_ppc_ops = {
.read_with_attrs = tz_ppc_read,
.write_with_attrs = tz_ppc_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static bool tz_ppc_dummy_accepts(void *opaque, hwaddr addr,
@@ -142,7 +142,7 @@ static void moxiesim_init(MachineState *machine)
/* A single 16450 sits at offset 0x3f8. */
if (serial_hd(0)) {
serial_mm_init(address_space_mem, 0x3f8, 0, env->irq[4],
- 8000000/16, serial_hd(0), DEVICE_LITTLE_ENDIAN);
+ 8000000/16, serial_hd(0), MO_LE);
}
}
@@ -421,7 +421,7 @@ static void aw_emac_set_link(NetClientState *nc)
static const MemoryRegionOps aw_emac_mem_ops = {
.read = aw_emac_read,
.write = aw_emac_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.valid = {
.min_access_size = 4,
.max_access_size = 4,
@@ -1518,7 +1518,7 @@ static void gem_write(void *opaque, hwaddr offset, uint64_t val,
static const MemoryRegionOps gem_ops = {
.read = gem_read,
.write = gem_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void gem_set_link(NetClientState *nc)
@@ -192,7 +192,7 @@ static void kvaser_pci_xilinx_io_write(void *opaque, hwaddr addr, uint64_t data,
static const MemoryRegionOps kvaser_pci_s5920_io_ops = {
.read = kvaser_pci_s5920_io_read,
.write = kvaser_pci_s5920_io_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.impl = {
.min_access_size = 4,
.max_access_size = 4,
@@ -202,7 +202,7 @@ static const MemoryRegionOps kvaser_pci_s5920_io_ops = {
static const MemoryRegionOps kvaser_pci_sja_io_ops = {
.read = kvaser_pci_sja_io_read,
.write = kvaser_pci_sja_io_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.impl = {
.max_access_size = 1,
},
@@ -211,7 +211,7 @@ static const MemoryRegionOps kvaser_pci_sja_io_ops = {
static const MemoryRegionOps kvaser_pci_xilinx_io_ops = {
.read = kvaser_pci_xilinx_io_read,
.write = kvaser_pci_xilinx_io_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.impl = {
.max_access_size = 1,
},
@@ -137,7 +137,7 @@ static void mioe3680_pci_sja2_io_write(void *opaque, hwaddr addr, uint64_t data,
static const MemoryRegionOps mioe3680_pci_sja1_io_ops = {
.read = mioe3680_pci_sja1_io_read,
.write = mioe3680_pci_sja1_io_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.impl = {
.max_access_size = 1,
},
@@ -146,7 +146,7 @@ static const MemoryRegionOps mioe3680_pci_sja1_io_ops = {
static const MemoryRegionOps mioe3680_pci_sja2_io_ops = {
.read = mioe3680_pci_sja2_io_read,
.write = mioe3680_pci_sja2_io_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.impl = {
.max_access_size = 1,
},
@@ -137,7 +137,7 @@ static void pcm3680i_pci_sja2_io_write(void *opaque, hwaddr addr, uint64_t data,
static const MemoryRegionOps pcm3680i_pci_sja1_io_ops = {
.read = pcm3680i_pci_sja1_io_read,
.write = pcm3680i_pci_sja1_io_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.impl = {
.max_access_size = 1,
},
@@ -146,7 +146,7 @@ static const MemoryRegionOps pcm3680i_pci_sja1_io_ops = {
static const MemoryRegionOps pcm3680i_pci_sja2_io_ops = {
.read = pcm3680i_pci_sja2_io_read,
.write = pcm3680i_pci_sja2_io_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.impl = {
.max_access_size = 1,
},
@@ -1342,7 +1342,7 @@ e1000_mmio_read(void *opaque, hwaddr addr, unsigned size)
static const MemoryRegionOps e1000_mmio_ops = {
.read = e1000_mmio_read,
.write = e1000_mmio_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.impl = {
.min_access_size = 4,
.max_access_size = 4,
@@ -1369,7 +1369,7 @@ static void e1000_io_write(void *opaque, hwaddr addr,
static const MemoryRegionOps e1000_io_ops = {
.read = e1000_io_read,
.write = e1000_io_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static bool is_version_1(void *opaque, int version_id)
@@ -182,7 +182,7 @@ e1000e_io_write(void *opaque, hwaddr addr,
static const MemoryRegionOps mmio_ops = {
.read = e1000e_mmio_read,
.write = e1000e_mmio_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.impl = {
.min_access_size = 4,
.max_access_size = 4,
@@ -192,7 +192,7 @@ static const MemoryRegionOps mmio_ops = {
static const MemoryRegionOps io_ops = {
.read = e1000e_io_read,
.write = e1000e_io_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.impl = {
.min_access_size = 4,
.max_access_size = 4,
@@ -1603,7 +1603,7 @@ static void eepro100_write(void *opaque, hwaddr addr,
static const MemoryRegionOps eepro100_ops = {
.read = eepro100_read,
.write = eepro100_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static ssize_t nic_receive(NetClientState *nc, const uint8_t * buf, size_t size)
@@ -569,7 +569,7 @@ static void eth_set_link(NetClientState *nc)
static const MemoryRegionOps eth_ops = {
.read = eth_read,
.write = eth_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.valid = {
.min_access_size = 4,
.max_access_size = 4
@@ -982,7 +982,7 @@ static const MemoryRegionOps ftgmac100_ops = {
.write = ftgmac100_write,
.valid.min_access_size = 4,
.valid.max_access_size = 4,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void ftgmac100_cleanup(NetClientState *nc)
@@ -1285,7 +1285,7 @@ static const MemoryRegionOps imx_eth_ops = {
.write = imx_eth_write,
.valid.min_access_size = 4,
.valid.max_access_size = 4,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void imx_eth_cleanup(NetClientState *nc)
@@ -1308,13 +1308,13 @@ static uint64_t lan9118_16bit_mode_read(void *opaque, hwaddr offset,
static const MemoryRegionOps lan9118_mem_ops = {
.read = lan9118_readl,
.write = lan9118_writel,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static const MemoryRegionOps lan9118_16bit_mem_ops = {
.read = lan9118_16bit_mode_read,
.write = lan9118_16bit_mode_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static NetClientInfo net_lan9118_info = {
@@ -688,7 +688,7 @@ static void ne2000_write(void *opaque, hwaddr addr,
static const MemoryRegionOps ne2000_ops = {
.read = ne2000_read,
.write = ne2000_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
/***********************************************************/
@@ -140,7 +140,7 @@ static void pcnet_ioport_write(void *opaque, hwaddr addr,
static const MemoryRegionOps pcnet_io_ops = {
.read = pcnet_ioport_read,
.write = pcnet_ioport_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static const VMStateDescription vmstate_pci_pcnet = {
@@ -163,7 +163,7 @@ static const MemoryRegionOps pcnet_mmio_ops = {
.valid.max_access_size = 4,
.impl.min_access_size = 1,
.impl.max_access_size = 4,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void pci_physical_memory_write(void *dma_opaque, hwaddr addr,
@@ -1197,7 +1197,7 @@ static uint64_t rocker_mmio_read(void *opaque, hwaddr addr, unsigned size)
static const MemoryRegionOps rocker_mmio_ops = {
.read = rocker_mmio_read,
.write = rocker_mmio_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.valid = {
.min_access_size = 4,
.max_access_size = 8,
@@ -3312,7 +3312,7 @@ static const MemoryRegionOps rtl8139_io_ops = {
.min_access_size = 1,
.max_access_size = 4,
},
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void rtl8139_timer(void *opaque)
@@ -760,7 +760,7 @@ static const MemoryRegionOps smc91c111_mem_ops = {
.write = smc91c111_writefn,
.valid.min_access_size = 1,
.valid.max_access_size = 4,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static NetClientInfo net_smc91c111_info = {
@@ -459,7 +459,7 @@ static void stellaris_enet_write(void *opaque, hwaddr offset,
static const MemoryRegionOps stellaris_enet_ops = {
.read = stellaris_enet_read,
.write = stellaris_enet_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void stellaris_enet_reset(DeviceState *dev)
@@ -926,7 +926,7 @@ static uint64_t sungem_mmio_greg_read(void *opaque, hwaddr addr, unsigned size)
static const MemoryRegionOps sungem_mmio_greg_ops = {
.read = sungem_mmio_greg_read,
.write = sungem_mmio_greg_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.impl = {
.min_access_size = 4,
.max_access_size = 4,
@@ -995,7 +995,7 @@ static uint64_t sungem_mmio_txdma_read(void *opaque, hwaddr addr, unsigned size)
static const MemoryRegionOps sungem_mmio_txdma_ops = {
.read = sungem_mmio_txdma_read,
.write = sungem_mmio_txdma_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.impl = {
.min_access_size = 4,
.max_access_size = 4,
@@ -1068,7 +1068,7 @@ static uint64_t sungem_mmio_rxdma_read(void *opaque, hwaddr addr, unsigned size)
static const MemoryRegionOps sungem_mmio_rxdma_ops = {
.read = sungem_mmio_rxdma_read,
.write = sungem_mmio_rxdma_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.impl = {
.min_access_size = 4,
.max_access_size = 4,
@@ -1165,7 +1165,7 @@ static uint64_t sungem_mmio_mac_read(void *opaque, hwaddr addr, unsigned size)
static const MemoryRegionOps sungem_mmio_mac_ops = {
.read = sungem_mmio_mac_read,
.write = sungem_mmio_mac_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.impl = {
.min_access_size = 4,
.max_access_size = 4,
@@ -1231,7 +1231,7 @@ static uint64_t sungem_mmio_mif_read(void *opaque, hwaddr addr, unsigned size)
static const MemoryRegionOps sungem_mmio_mif_ops = {
.read = sungem_mmio_mif_read,
.write = sungem_mmio_mif_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.impl = {
.min_access_size = 4,
.max_access_size = 4,
@@ -1286,7 +1286,7 @@ static uint64_t sungem_mmio_pcs_read(void *opaque, hwaddr addr, unsigned size)
static const MemoryRegionOps sungem_mmio_pcs_ops = {
.read = sungem_mmio_pcs_read,
.write = sungem_mmio_pcs_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.impl = {
.min_access_size = 4,
.max_access_size = 4,
@@ -288,7 +288,7 @@ static uint64_t sunhme_seb_read(void *opaque, hwaddr addr,
static const MemoryRegionOps sunhme_seb_ops = {
.read = sunhme_seb_read,
.write = sunhme_seb_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.valid = {
.min_access_size = 4,
.max_access_size = 4,
@@ -331,7 +331,7 @@ static uint64_t sunhme_etx_read(void *opaque, hwaddr addr,
static const MemoryRegionOps sunhme_etx_ops = {
.read = sunhme_etx_read,
.write = sunhme_etx_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.valid = {
.min_access_size = 4,
.max_access_size = 4,
@@ -364,7 +364,7 @@ static uint64_t sunhme_erx_read(void *opaque, hwaddr addr,
static const MemoryRegionOps sunhme_erx_ops = {
.read = sunhme_erx_read,
.write = sunhme_erx_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.valid = {
.min_access_size = 4,
.max_access_size = 4,
@@ -407,7 +407,7 @@ static uint64_t sunhme_mac_read(void *opaque, hwaddr addr,
static const MemoryRegionOps sunhme_mac_ops = {
.read = sunhme_mac_read,
.write = sunhme_mac_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.valid = {
.min_access_size = 4,
.max_access_size = 4,
@@ -529,7 +529,7 @@ static uint64_t sunhme_mif_read(void *opaque, hwaddr addr,
static const MemoryRegionOps sunhme_mif_ops = {
.read = sunhme_mif_read,
.write = sunhme_mif_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.valid = {
.min_access_size = 4,
.max_access_size = 4,
@@ -2146,7 +2146,7 @@ vmxnet3_cleanup_msi(VMXNET3State *s)
static const MemoryRegionOps b0_ops = {
.read = vmxnet3_io_bar0_read,
.write = vmxnet3_io_bar0_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.impl = {
.min_access_size = 4,
.max_access_size = 4,
@@ -2156,7 +2156,7 @@ static const MemoryRegionOps b0_ops = {
static const MemoryRegionOps b1_ops = {
.read = vmxnet3_io_bar1_read,
.write = vmxnet3_io_bar1_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.impl = {
.min_access_size = 4,
.max_access_size = 4,
@@ -312,7 +312,7 @@ static void enet_write(void *opaque, hwaddr addr,
static const MemoryRegionOps enet_mem_ops = {
.read = enet_read,
.write = enet_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static int eth_can_rx(XgmacState *s)
@@ -665,7 +665,7 @@ static void enet_write(void *opaque, hwaddr addr,
static const MemoryRegionOps enet_ops = {
.read = enet_read,
.write = enet_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static int eth_can_rx(XilinxAXIEnet *s)
@@ -71,7 +71,7 @@ static const MemoryRegionOps nvram_ops = {
.min_access_size = 1,
.max_access_size = 1,
},
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static int nvram_post_load(void *opaque, int version_id)
@@ -544,7 +544,7 @@ static const MemoryRegionOps fw_cfg_data_mem_ops = {
static const MemoryRegionOps fw_cfg_comb_mem_ops = {
.read = fw_cfg_data_read,
.write = fw_cfg_comb_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.valid.accepts = fw_cfg_comb_valid,
};
@@ -98,7 +98,7 @@ static const MemoryRegionOps ficr_ops = {
.write = ficr_write,
.impl.min_access_size = 4,
.impl.max_access_size = 4,
- .endianness = DEVICE_LITTLE_ENDIAN
+ .endianness = MO_LE
};
/*
@@ -191,7 +191,7 @@ static const MemoryRegionOps uicr_ops = {
.write = uicr_write,
.impl.min_access_size = 4,
.impl.max_access_size = 4,
- .endianness = DEVICE_LITTLE_ENDIAN
+ .endianness = MO_LE
};
@@ -270,7 +270,7 @@ static const MemoryRegionOps io_ops = {
.write = io_write,
.impl.min_access_size = 4,
.impl.max_access_size = 4,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
@@ -303,7 +303,7 @@ static const MemoryRegionOps flash_ops = {
.write = flash_write,
.valid.min_access_size = 4,
.valid.max_access_size = 4,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void nrf51_nvm_init(Object *obj)
@@ -78,7 +78,7 @@ static void designware_pcie_root_msi_write(void *opaque, hwaddr addr,
static const MemoryRegionOps designware_pci_host_msi_ops = {
.write = designware_pcie_root_msi_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.valid = {
.min_access_size = 4,
.max_access_size = 4,
@@ -238,7 +238,7 @@ static void designware_pcie_root_data_write(void *opaque, hwaddr addr,
static const MemoryRegionOps designware_pci_host_conf_ops = {
.read = designware_pcie_root_data_read,
.write = designware_pcie_root_data_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.valid = {
.min_access_size = 1,
.max_access_size = 4,
@@ -623,7 +623,7 @@ static void designware_pcie_host_mmio_write(void *opaque, hwaddr addr,
static const MemoryRegionOps designware_pci_mmio_ops = {
.read = designware_pcie_host_mmio_read,
.write = designware_pcie_host_mmio_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.impl = {
/*
* Our device would not work correctly if the guest was doing
@@ -695,7 +695,7 @@ static uint64_t rcr_read(void *opaque, hwaddr addr, unsigned len)
static const MemoryRegionOps rcr_ops = {
.read = rcr_read,
.write = rcr_write,
- .endianness = DEVICE_LITTLE_ENDIAN
+ .endianness = MO_LE
};
static void piix3_realize(PCIDevice *dev, Error **errp)
@@ -110,7 +110,7 @@ static uint64_t raven_pci_io_read(void *opaque, hwaddr addr,
static const MemoryRegionOps raven_pci_io_ops = {
.read = raven_pci_io_read,
.write = raven_pci_io_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static uint64_t raven_intack_read(void *opaque, hwaddr addr,
@@ -188,7 +188,7 @@ static void raven_io_write(void *opaque, hwaddr addr,
static const MemoryRegionOps raven_io_ops = {
.read = raven_io_read,
.write = raven_io_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.impl.max_access_size = 4,
.valid.unaligned = true,
};
@@ -289,12 +289,12 @@ static void tseg_blackhole_write(void *opaque, hwaddr addr, uint64_t val,
static const MemoryRegionOps tseg_blackhole_ops = {
.read = tseg_blackhole_read,
.write = tseg_blackhole_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.valid.min_access_size = 1,
.valid.max_access_size = 4,
.impl.min_access_size = 4,
.impl.max_access_size = 4,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
/* PCIe MMCFG */
@@ -370,7 +370,7 @@ static void sabre_reset(DeviceState *d)
static const MemoryRegionOps pci_config_ops = {
.read = sabre_pci_config_read,
.write = sabre_pci_config_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void sabre_realize(DeviceState *dev, Error **errp)
@@ -109,7 +109,7 @@ static uint64_t unin_data_read(void *opaque, hwaddr addr,
static const MemoryRegionOps unin_data_ops = {
.read = unin_data_read,
.write = unin_data_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void pci_unin_init_irqs(UNINHostState *s)
@@ -243,7 +243,7 @@ static uint64_t pci_vpb_reg_read(void *opaque, hwaddr addr,
static const MemoryRegionOps pci_vpb_reg_ops = {
.read = pci_vpb_reg_read,
.write = pci_vpb_reg_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.valid = {
.min_access_size = 4,
.max_access_size = 4,
@@ -309,7 +309,7 @@ static uint64_t pci_vpb_config_read(void *opaque, hwaddr addr,
static const MemoryRegionOps pci_vpb_config_ops = {
.read = pci_vpb_config_read,
.write = pci_vpb_config_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static int pci_vpb_map_irq(PCIDevice *d, int irq_num)
@@ -196,7 +196,7 @@ static void msix_table_mmio_write(void *opaque, hwaddr addr,
static const MemoryRegionOps msix_table_mmio_ops = {
.read = msix_table_mmio_read,
.write = msix_table_mmio_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.valid = {
.min_access_size = 4,
.max_access_size = 4,
@@ -224,7 +224,7 @@ static void msix_pba_mmio_write(void *opaque, hwaddr addr,
static const MemoryRegionOps msix_pba_mmio_ops = {
.read = msix_pba_mmio_read,
.write = msix_pba_mmio_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.valid = {
.min_access_size = 4,
.max_access_size = 4,
@@ -190,7 +190,7 @@ static uint64_t pci_host_data_read(void *opaque,
const MemoryRegionOps pci_host_conf_le_ops = {
.read = pci_host_config_read,
.write = pci_host_config_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
const MemoryRegionOps pci_host_conf_be_ops = {
@@ -202,7 +202,7 @@ const MemoryRegionOps pci_host_conf_be_ops = {
const MemoryRegionOps pci_host_data_le_ops = {
.read = pci_host_data_read,
.write = pci_host_data_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
const MemoryRegionOps pci_host_data_be_ops = {
@@ -71,7 +71,7 @@ static uint64_t pcie_mmcfg_data_read(void *opaque,
static const MemoryRegionOps pcie_mmcfg_ops = {
.read = pcie_mmcfg_data_read,
.write = pcie_mmcfg_data_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void pcie_host_init(Object *obj)
@@ -478,7 +478,7 @@ static void shpc_mmio_write(void *opaque, hwaddr addr,
static const MemoryRegionOps shpc_mmio_ops = {
.read = shpc_mmio_read,
.write = shpc_mmio_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.valid = {
/* SHPC ECN requires dword accesses, but the original 1.0 spec doesn't.
* It's easier to suppport all sizes than worry about it. */
@@ -393,7 +393,7 @@ static uint64_t ppc440_pcix_reg_read4(void *opaque, hwaddr addr,
static const MemoryRegionOps pci_reg_ops = {
.read = ppc440_pcix_reg_read4,
.write = ppc440_pcix_reg_write4,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void ppc440_pcix_reset(DeviceState *dev)
@@ -464,7 +464,7 @@ static uint64_t pci_host_data_read(void *opaque,
const MemoryRegionOps ppc440_pcix_host_data_ops = {
.read = pci_host_data_read,
.write = pci_host_data_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void ppc440_pcix_realize(DeviceState *dev, Error **errp)
@@ -229,7 +229,7 @@ static uint64_t ppc4xx_pci_reg_read4(void *opaque, hwaddr offset,
static const MemoryRegionOps pci_reg_ops = {
.read = ppc4xx_pci_reg_read4,
.write = ppc4xx_pci_reg_write4,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void ppc4xx_pci_reset(void *opaque)
@@ -757,7 +757,7 @@ static const MemoryRegionOps spapr_msi_ops = {
/* There is no .read as the read result is undefined by PCI spec */
.read = NULL,
.write = spapr_msi_write,
- .endianness = DEVICE_LITTLE_ENDIAN
+ .endianness = MO_LE
};
/*
@@ -243,7 +243,7 @@ static void virtex_init(MachineState *machine)
}
serial_mm_init(address_space_mem, UART16550_BASEADDR, 2, irq[UART16550_IRQ],
- 115200, serial_hd(0), DEVICE_LITTLE_ENDIAN);
+ 115200, serial_hd(0), MO_LE);
/* 2 timers at irq 2 @ 62 Mhz. */
dev = qdev_create(NULL, "xlnx.xps-timer");
@@ -437,7 +437,7 @@ static void pvrdma_regs_write(void *opaque, hwaddr addr, uint64_t val,
static const MemoryRegionOps regs_ops = {
.read = pvrdma_regs_read,
.write = pvrdma_regs_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.impl = {
.min_access_size = sizeof(uint32_t),
.max_access_size = sizeof(uint32_t),
@@ -505,7 +505,7 @@ static void pvrdma_uar_write(void *opaque, hwaddr addr, uint64_t val,
static const MemoryRegionOps uar_ops = {
.read = pvrdma_uar_read,
.write = pvrdma_uar_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.impl = {
.min_access_size = sizeof(uint32_t),
.max_access_size = sizeof(uint32_t),
@@ -177,7 +177,7 @@ static void sifive_clint_write(void *opaque, hwaddr addr, uint64_t value,
static const MemoryRegionOps sifive_clint_ops = {
.read = sifive_clint_read,
.write = sifive_clint_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.valid = {
.min_access_size = 4,
.max_access_size = 4
@@ -274,7 +274,7 @@ static void sifive_gpio_write(void *opaque, hwaddr offset,
static const MemoryRegionOps gpio_ops = {
.read = sifive_gpio_read,
.write = sifive_gpio_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.impl.min_access_size = 4,
.impl.max_access_size = 4,
};
@@ -355,7 +355,7 @@ err:
static const MemoryRegionOps sifive_plic_ops = {
.read = sifive_plic_read,
.write = sifive_plic_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.valid = {
.min_access_size = 4,
.max_access_size = 4
@@ -502,7 +502,7 @@ static void riscv_virt_board_init(MachineState *machine)
serial_mm_init(system_memory, memmap[VIRT_UART0].base,
0, qdev_get_gpio_in(DEVICE(s->plic), UART0_IRQ), 399193,
- serial_hd(0), DEVICE_LITTLE_ENDIAN);
+ serial_hd(0), MO_LE);
g_free(plic_hart_config);
}
@@ -690,7 +690,7 @@ static uint64_t s390_msi_ctrl_read(void *opaque, hwaddr addr, unsigned size)
static const MemoryRegionOps s390_msi_ctrl_ops = {
.write = s390_msi_ctrl_write,
.read = s390_msi_ctrl_read,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
void s390_pci_iommu_enable(S390PCIIOMMU *iommu)
@@ -293,7 +293,7 @@ static void esp_pci_dma_memory_write(void *opaque, uint8_t *buf, int len)
static const MemoryRegionOps esp_pci_io_ops = {
.read = esp_pci_io_read,
.write = esp_pci_io_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.impl = {
.min_access_size = 1,
.max_access_size = 4,
@@ -2105,7 +2105,7 @@ static uint64_t lsi_mmio_read(void *opaque, hwaddr addr,
static const MemoryRegionOps lsi_mmio_ops = {
.read = lsi_mmio_read,
.write = lsi_mmio_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.impl = {
.min_access_size = 1,
.max_access_size = 1,
@@ -2129,7 +2129,7 @@ static uint64_t lsi_ram_read(void *opaque, hwaddr addr,
static const MemoryRegionOps lsi_ram_ops = {
.read = lsi_ram_read,
.write = lsi_ram_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static uint64_t lsi_io_read(void *opaque, hwaddr addr,
@@ -2149,7 +2149,7 @@ static void lsi_io_write(void *opaque, hwaddr addr,
static const MemoryRegionOps lsi_io_ops = {
.read = lsi_io_read,
.write = lsi_io_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.impl = {
.min_access_size = 1,
.max_access_size = 1,
@@ -2154,7 +2154,7 @@ static void megasas_mmio_write(void *opaque, hwaddr addr,
static const MemoryRegionOps megasas_mmio_ops = {
.read = megasas_mmio_read,
.write = megasas_mmio_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.impl = {
.min_access_size = 8,
.max_access_size = 8,
@@ -2176,7 +2176,7 @@ static void megasas_port_write(void *opaque, hwaddr addr,
static const MemoryRegionOps megasas_port_ops = {
.read = megasas_port_read,
.write = megasas_port_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.impl = {
.min_access_size = 4,
.max_access_size = 4,
@@ -2198,7 +2198,7 @@ static void megasas_queue_write(void *opaque, hwaddr addr,
static const MemoryRegionOps megasas_queue_ops = {
.read = megasas_queue_read,
.write = megasas_queue_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.impl = {
.min_access_size = 8,
.max_access_size = 8,
@@ -1088,7 +1088,7 @@ static void mptsas_mmio_write(void *opaque, hwaddr addr,
static const MemoryRegionOps mptsas_mmio_ops = {
.read = mptsas_mmio_read,
.write = mptsas_mmio_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.impl = {
.min_access_size = 4,
.max_access_size = 4,
@@ -1098,7 +1098,7 @@ static const MemoryRegionOps mptsas_mmio_ops = {
static const MemoryRegionOps mptsas_port_ops = {
.read = mptsas_mmio_read,
.write = mptsas_mmio_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.impl = {
.min_access_size = 4,
.max_access_size = 4,
@@ -1123,7 +1123,7 @@ static void mptsas_diag_write(void *opaque, hwaddr addr,
static const MemoryRegionOps mptsas_diag_ops = {
.read = mptsas_diag_read,
.write = mptsas_diag_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.impl = {
.min_access_size = 4,
.max_access_size = 4,
@@ -1089,7 +1089,7 @@ pvscsi_cleanup_msi(PVSCSIState *s)
static const MemoryRegionOps pvscsi_ops = {
.read = pvscsi_io_read,
.write = pvscsi_io_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.impl = {
.min_access_size = 4,
.max_access_size = 4,
@@ -451,7 +451,7 @@ static void pl181_write(void *opaque, hwaddr offset,
static const MemoryRegionOps pl181_ops = {
.read = pl181_read,
.write = pl181_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void pl181_reset(DeviceState *d)
@@ -1288,7 +1288,7 @@ static const MemoryRegionOps sdhci_mmio_ops = {
.max_access_size = 4,
.unaligned = false
},
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void sdhci_init_readonly_registers(SDHCIState *s, Error **errp)
@@ -1743,7 +1743,7 @@ static const MemoryRegionOps usdhc_mmio_ops = {
.max_access_size = 4,
.unaligned = false
},
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void imx_usdhc_init(Object *obj)
@@ -401,7 +401,7 @@ static void aspeed_smc_flash_default_write(void *opaque, hwaddr addr,
static const MemoryRegionOps aspeed_smc_flash_default_ops = {
.read = aspeed_smc_flash_default_read,
.write = aspeed_smc_flash_default_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.valid = {
.min_access_size = 1,
.max_access_size = 4,
@@ -709,7 +709,7 @@ static void aspeed_smc_flash_write(void *opaque, hwaddr addr, uint64_t data,
static const MemoryRegionOps aspeed_smc_flash_ops = {
.read = aspeed_smc_flash_read,
.write = aspeed_smc_flash_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.valid = {
.min_access_size = 1,
.max_access_size = 4,
@@ -820,7 +820,7 @@ static void aspeed_smc_write(void *opaque, hwaddr addr, uint64_t data,
static const MemoryRegionOps aspeed_smc_ops = {
.read = aspeed_smc_read,
.write = aspeed_smc_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.valid.unaligned = true,
};
@@ -361,7 +361,7 @@ static void spi_write(void *opaque, hwaddr addr,
static const MemoryRegionOps spi_ops = {
.read = spi_read,
.write = spi_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.valid = {
.min_access_size = 1,
.max_access_size = 4
@@ -228,7 +228,7 @@ static void pl022_reset(DeviceState *dev)
static const MemoryRegionOps pl022_ops = {
.read = pl022_read,
.write = pl022_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static int pl022_post_load(void *opaque, int version_id)
@@ -167,7 +167,7 @@ static void stm32f2xx_spi_write(void *opaque, hwaddr addr,
static const MemoryRegionOps stm32f2xx_spi_ops = {
.read = stm32f2xx_spi_read,
.write = stm32f2xx_spi_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static const VMStateDescription vmstate_stm32f2xx_spi = {
@@ -1031,7 +1031,7 @@ no_reg_update:
static const MemoryRegionOps spips_ops = {
.read = xilinx_spips_read,
.write = xilinx_spips_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void xilinx_qspips_invalidate_mmio_ptr(XilinxQSPIPS *q)
@@ -1122,13 +1122,13 @@ static void xlnx_zynqmp_qspips_write(void *opaque, hwaddr addr,
static const MemoryRegionOps qspips_ops = {
.read = xilinx_spips_read,
.write = xilinx_qspips_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static const MemoryRegionOps xlnx_zynqmp_qspips_ops = {
.read = xlnx_zynqmp_qspips_read,
.write = xlnx_zynqmp_qspips_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
#define LQSPI_CACHE_SIZE 1024
@@ -1240,7 +1240,7 @@ static MemTxResult lqspi_write(void *opaque, hwaddr offset, uint64_t value,
static const MemoryRegionOps lqspi_ops = {
.read_with_attrs = lqspi_read,
.write_with_attrs = lqspi_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.impl = {
.min_access_size = 4,
.max_access_size = 4,
@@ -258,7 +258,7 @@ static const MemoryRegionOps a9_gtimer_this_ops = {
.min_access_size = 4,
.max_access_size = 4,
},
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static const MemoryRegionOps a9_gtimer_ops = {
@@ -268,7 +268,7 @@ static const MemoryRegionOps a9_gtimer_ops = {
.min_access_size = 4,
.max_access_size = 4,
},
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void a9_gtimer_reset(DeviceState *dev)
@@ -194,7 +194,7 @@ static const MemoryRegionOps arm_thistimer_ops = {
.min_access_size = 4,
.max_access_size = 4,
},
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static const MemoryRegionOps timerblock_ops = {
@@ -204,7 +204,7 @@ static const MemoryRegionOps timerblock_ops = {
.min_access_size = 4,
.max_access_size = 4,
},
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void timerblock_reset(TimerBlock *tb)
@@ -267,7 +267,7 @@ static void sp804_write(void *opaque, hwaddr offset,
static const MemoryRegionOps sp804_ops = {
.read = sp804_read,
.write = sp804_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static const VMStateDescription vmstate_sp804 = {
@@ -348,7 +348,7 @@ static void icp_pit_write(void *opaque, hwaddr offset,
static const MemoryRegionOps icp_pit_ops = {
.read = icp_pit_read,
.write = icp_pit_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void icp_pit_init(Object *obj)
@@ -193,7 +193,7 @@ static MemTxResult systick_write(void *opaque, hwaddr addr,
static const MemoryRegionOps systick_ops = {
.read_with_attrs = systick_read,
.write_with_attrs = systick_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.valid.min_access_size = 4,
.valid.max_access_size = 4,
};
@@ -131,7 +131,7 @@ static void aspeed_rtc_reset(DeviceState *d)
static const MemoryRegionOps aspeed_rtc_ops = {
.read = aspeed_rtc_read,
.write = aspeed_rtc_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static const VMStateDescription vmstate_aspeed_rtc = {
@@ -450,7 +450,7 @@ static void aspeed_timer_write(void *opaque, hwaddr offset, uint64_t value,
static const MemoryRegionOps aspeed_timer_ops = {
.read = aspeed_timer_read,
.write = aspeed_timer_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.valid.min_access_size = 4,
.valid.max_access_size = 4,
.valid.unaligned = false,
@@ -391,7 +391,7 @@ static void cadence_ttc_write(void *opaque, hwaddr offset,
static const MemoryRegionOps cadence_ttc_ops = {
.read = cadence_ttc_read,
.write = cadence_ttc_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void cadence_timer_reset(CadenceTimerState *s)
@@ -376,7 +376,7 @@ static void cmsdk_apb_dualtimer_write(void *opaque, hwaddr offset,
static const MemoryRegionOps cmsdk_apb_dualtimer_ops = {
.read = cmsdk_apb_dualtimer_read,
.write = cmsdk_apb_dualtimer_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
/* byte/halfword accesses are just zero-padded on reads and writes */
.impl.min_access_size = 4,
.impl.max_access_size = 4,
@@ -171,7 +171,7 @@ static void cmsdk_apb_timer_write(void *opaque, hwaddr offset, uint64_t value,
static const MemoryRegionOps cmsdk_apb_timer_ops = {
.read = cmsdk_apb_timer_read,
.write = cmsdk_apb_timer_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void cmsdk_apb_timer_tick(void *opaque)
@@ -300,7 +300,7 @@ timer_write(void *opaque, hwaddr addr,
static const MemoryRegionOps timer_ops = {
.read = timer_read,
.write = timer_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.valid = {
.min_access_size = 4,
.max_access_size = 4
@@ -676,7 +676,7 @@ static const MemoryRegionOps hpet_ram_ops = {
.min_access_size = 4,
.max_access_size = 4,
},
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void hpet_reset(DeviceState *d)
@@ -315,7 +315,7 @@ static const MemoryRegionOps pit_ioport_ops = {
.min_access_size = 1,
.max_access_size = 1,
},
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void pit_post_load(PITCommonState *s)
@@ -284,7 +284,7 @@ static void imx_epit_cmp(void *opaque)
static const MemoryRegionOps imx_epit_ops = {
.read = imx_epit_read,
.write = imx_epit_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static const VMStateDescription vmstate_imx_timer_epit = {
@@ -476,7 +476,7 @@ static void imx_gpt_timeout(void *opaque)
static const MemoryRegionOps imx_gpt_ops = {
.read = imx_gpt_read,
.write = imx_gpt_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
@@ -562,7 +562,7 @@ const MemoryRegionOps m48t59_io_ops = {
.min_access_size = 1,
.max_access_size = 1,
},
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
/* Initialisation routine */
@@ -919,7 +919,7 @@ static const MemoryRegionOps cmos_ops = {
.min_access_size = 1,
.max_access_size = 1,
},
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void rtc_get_date(Object *obj, struct tm *current_tm, Error **errp)
@@ -200,7 +200,7 @@ timer_write(void *opaque, hwaddr offset,
static const MemoryRegionOps timer_ops = {
.read = timer_read,
.write = timer_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.valid = {
.min_access_size = 1,
.max_access_size = 4
@@ -302,7 +302,7 @@ static void nrf51_timer_write(void *opaque, hwaddr offset,
static const MemoryRegionOps rng_ops = {
.read = nrf51_timer_read,
.write = nrf51_timer_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.impl.min_access_size = 4,
.impl.max_access_size = 4,
};
@@ -178,7 +178,7 @@ static void pl031_write(void * opaque, hwaddr offset,
static const MemoryRegionOps pl031_ops = {
.read = pl031_read,
.write = pl031_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void pl031_init(Object *obj)
@@ -268,7 +268,7 @@ static void stm32f2xx_timer_write(void *opaque, hwaddr offset,
static const MemoryRegionOps stm32f2xx_timer_ops = {
.read = stm32f2xx_timer_read,
.write = stm32f2xx_timer_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static const VMStateDescription vmstate_stm32f2xx_timer = {
@@ -175,7 +175,7 @@ static void rtc_reset(DeviceState *dev)
static const MemoryRegionOps rtc_ops = {
.read = register_read_memory,
.write = register_write_memory,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.valid = {
.min_access_size = 4,
.max_access_size = 4,
@@ -178,7 +178,7 @@ static void tpm_crb_mmio_write(void *opaque, hwaddr addr,
static const MemoryRegionOps tpm_crb_memory_ops = {
.read = tpm_crb_mmio_read,
.write = tpm_crb_mmio_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.valid = {
.min_access_size = 1,
.max_access_size = 4,
@@ -849,7 +849,7 @@ static void tpm_tis_mmio_write(void *opaque, hwaddr addr,
static const MemoryRegionOps tpm_tis_memory_ops = {
.read = tpm_tis_mmio_read,
.write = tpm_tis_mmio_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.valid = {
.min_access_size = 1,
.max_access_size = 4,
@@ -225,7 +225,7 @@ static const MemoryRegionOps fusbh200_ehci_mmio_ops = {
.write = fusbh200_ehci_write,
.valid.min_access_size = 4,
.valid.max_access_size = 4,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void fusbh200_ehci_init(Object *obj)
@@ -2361,7 +2361,7 @@ static const MemoryRegionOps ehci_mmio_caps_ops = {
.valid.max_access_size = 4,
.impl.min_access_size = 1,
.impl.max_access_size = 1,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static const MemoryRegionOps ehci_mmio_opreg_ops = {
@@ -2369,7 +2369,7 @@ static const MemoryRegionOps ehci_mmio_opreg_ops = {
.write = ehci_opreg_write,
.valid.min_access_size = 4,
.valid.max_access_size = 4,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static const MemoryRegionOps ehci_mmio_port_ops = {
@@ -2377,7 +2377,7 @@ static const MemoryRegionOps ehci_mmio_port_ops = {
.write = ehci_port_write,
.valid.min_access_size = 4,
.valid.max_access_size = 4,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static USBPortOps ehci_port_ops = {
@@ -1776,7 +1776,7 @@ static void ohci_async_cancel_device(OHCIState *ohci, USBDevice *dev)
static const MemoryRegionOps ohci_mem_ops = {
.read = ohci_mem_read,
.write = ohci_mem_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static USBPortOps ohci_port_ops = {
@@ -1197,7 +1197,7 @@ static const MemoryRegionOps uhci_ioport_ops = {
.valid.max_access_size = 4,
.impl.min_access_size = 2,
.impl.max_access_size = 2,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static USBPortOps uhci_port_ops = {
@@ -3162,7 +3162,7 @@ static const MemoryRegionOps xhci_cap_ops = {
.valid.max_access_size = 4,
.impl.min_access_size = 4,
.impl.max_access_size = 4,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static const MemoryRegionOps xhci_oper_ops = {
@@ -3170,7 +3170,7 @@ static const MemoryRegionOps xhci_oper_ops = {
.write = xhci_oper_write,
.valid.min_access_size = 4,
.valid.max_access_size = 4,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static const MemoryRegionOps xhci_port_ops = {
@@ -3178,7 +3178,7 @@ static const MemoryRegionOps xhci_port_ops = {
.write = xhci_port_write,
.valid.min_access_size = 4,
.valid.max_access_size = 4,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static const MemoryRegionOps xhci_runtime_ops = {
@@ -3186,7 +3186,7 @@ static const MemoryRegionOps xhci_runtime_ops = {
.write = xhci_runtime_write,
.valid.min_access_size = 4,
.valid.max_access_size = 4,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static const MemoryRegionOps xhci_doorbell_ops = {
@@ -3194,7 +3194,7 @@ static const MemoryRegionOps xhci_doorbell_ops = {
.write = xhci_doorbell_write,
.valid.min_access_size = 4,
.valid.max_access_size = 4,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void xhci_attach(USBPort *usbport)
@@ -276,7 +276,7 @@ uint64_t vfio_region_read(void *opaque,
const MemoryRegionOps vfio_region_ops = {
.read = vfio_region_read,
.write = vfio_region_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.valid = {
.min_access_size = 1,
.max_access_size = 8,
@@ -152,7 +152,7 @@ static void vfio_generic_window_quirk_address_write(void *opaque, hwaddr addr,
static const MemoryRegionOps vfio_generic_window_address_quirk = {
.read = vfio_generic_window_quirk_address_read,
.write = vfio_generic_window_quirk_address_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static uint64_t vfio_generic_window_quirk_data_read(void *opaque,
@@ -195,7 +195,7 @@ static void vfio_generic_window_quirk_data_write(void *opaque, hwaddr addr,
static const MemoryRegionOps vfio_generic_window_data_quirk = {
.read = vfio_generic_window_quirk_data_read,
.write = vfio_generic_window_quirk_data_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
/*
@@ -245,7 +245,7 @@ static void vfio_generic_quirk_mirror_write(void *opaque, hwaddr addr,
static const MemoryRegionOps vfio_generic_mirror_quirk = {
.read = vfio_generic_quirk_mirror_read,
.write = vfio_generic_quirk_mirror_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
/* Is range1 fully contained within range2? */
@@ -280,7 +280,7 @@ static uint64_t vfio_ati_3c3_quirk_read(void *opaque,
static const MemoryRegionOps vfio_ati_3c3_quirk = {
.read = vfio_ati_3c3_quirk_read,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static VFIOQuirk *vfio_quirk_alloc(int nr_mem)
@@ -607,7 +607,7 @@ static void vfio_nvidia_3d4_quirk_write(void *opaque, hwaddr addr,
static const MemoryRegionOps vfio_nvidia_3d4_quirk = {
.read = vfio_nvidia_3d4_quirk_read,
.write = vfio_nvidia_3d4_quirk_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static uint64_t vfio_nvidia_3d0_quirk_read(void *opaque,
@@ -665,7 +665,7 @@ static void vfio_nvidia_3d0_quirk_write(void *opaque, hwaddr addr,
static const MemoryRegionOps vfio_nvidia_3d0_quirk = {
.read = vfio_nvidia_3d0_quirk_read,
.write = vfio_nvidia_3d0_quirk_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void vfio_vga_probe_nvidia_3d0_quirk(VFIOPCIDevice *vdev)
@@ -754,7 +754,7 @@ static void vfio_nvidia_bar5_quirk_master_write(void *opaque, hwaddr addr,
static const MemoryRegionOps vfio_nvidia_bar5_quirk_master = {
.read = vfio_nvidia_bar5_quirk_master_read,
.write = vfio_nvidia_bar5_quirk_master_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static uint64_t vfio_nvidia_bar5_quirk_enable_read(void *opaque,
@@ -781,7 +781,7 @@ static void vfio_nvidia_bar5_quirk_enable_write(void *opaque, hwaddr addr,
static const MemoryRegionOps vfio_nvidia_bar5_quirk_enable = {
.read = vfio_nvidia_bar5_quirk_enable_read,
.write = vfio_nvidia_bar5_quirk_enable_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void vfio_probe_nvidia_bar5_quirk(VFIOPCIDevice *vdev, int nr)
@@ -931,7 +931,7 @@ static void vfio_nvidia_quirk_mirror_write(void *opaque, hwaddr addr,
static const MemoryRegionOps vfio_nvidia_mirror_quirk = {
.read = vfio_generic_quirk_mirror_read,
.write = vfio_nvidia_quirk_mirror_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void vfio_nvidia_bar0_quirk_reset(VFIOPCIDevice *vdev, VFIOQuirk *quirk)
@@ -1093,7 +1093,7 @@ static const MemoryRegionOps vfio_rtl_address_quirk = {
.max_access_size = 4,
.unaligned = false,
},
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static uint64_t vfio_rtl8168_quirk_data_read(void *opaque,
@@ -1133,7 +1133,7 @@ static const MemoryRegionOps vfio_rtl_data_quirk = {
.max_access_size = 4,
.unaligned = false,
},
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void vfio_probe_rtl8168_bar2_quirk(VFIOPCIDevice *vdev, int nr)
@@ -1529,7 +1529,7 @@ static void vfio_igd_quirk_data_write(void *opaque, hwaddr addr,
static const MemoryRegionOps vfio_igd_data_quirk = {
.read = vfio_igd_quirk_data_read,
.write = vfio_igd_quirk_data_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static uint64_t vfio_igd_quirk_index_read(void *opaque,
@@ -1557,7 +1557,7 @@ static void vfio_igd_quirk_index_write(void *opaque, hwaddr addr,
static const MemoryRegionOps vfio_igd_index_quirk = {
.read = vfio_igd_quirk_index_read,
.write = vfio_igd_quirk_index_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void vfio_probe_igd_bar4_quirk(VFIOPCIDevice *vdev, int nr)
@@ -884,7 +884,7 @@ static void vfio_rom_write(void *opaque, hwaddr addr,
static const MemoryRegionOps vfio_rom_ops = {
.read = vfio_rom_read,
.write = vfio_rom_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static void vfio_pci_size_rom(VFIOPCIDevice *vdev)
@@ -1032,7 +1032,7 @@ uint64_t vfio_vga_read(void *opaque, hwaddr addr, unsigned size)
static const MemoryRegionOps vfio_vga_ops = {
.read = vfio_vga_read,
.write = vfio_vga_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
/*
@@ -486,7 +486,7 @@ static const MemoryRegionOps virtio_pci_config_ops = {
.min_access_size = 1,
.max_access_size = 4,
},
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static MemoryRegion *virtio_address_space_lookup(VirtIOPCIProxy *proxy,
@@ -1389,7 +1389,7 @@ static void virtio_pci_modern_regions_init(VirtIOPCIProxy *proxy)
.min_access_size = 1,
.max_access_size = 4,
},
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static const MemoryRegionOps isr_ops = {
.read = virtio_pci_isr_read,
@@ -1398,7 +1398,7 @@ static void virtio_pci_modern_regions_init(VirtIOPCIProxy *proxy)
.min_access_size = 1,
.max_access_size = 4,
},
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static const MemoryRegionOps device_ops = {
.read = virtio_pci_device_read,
@@ -1407,7 +1407,7 @@ static void virtio_pci_modern_regions_init(VirtIOPCIProxy *proxy)
.min_access_size = 1,
.max_access_size = 4,
},
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static const MemoryRegionOps notify_ops = {
.read = virtio_pci_notify_read,
@@ -1416,7 +1416,7 @@ static void virtio_pci_modern_regions_init(VirtIOPCIProxy *proxy)
.min_access_size = 1,
.max_access_size = 4,
},
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static const MemoryRegionOps notify_pio_ops = {
.read = virtio_pci_notify_read,
@@ -1425,7 +1425,7 @@ static void virtio_pci_modern_regions_init(VirtIOPCIProxy *proxy)
.min_access_size = 1,
.max_access_size = 4,
},
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
@@ -264,7 +264,7 @@ bad_offset:
static const MemoryRegionOps cmsdk_apb_watchdog_ops = {
.read = cmsdk_apb_watchdog_read,
.write = cmsdk_apb_watchdog_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
/* byte/halfword accesses are just zero-padded on reads and writes */
.impl.min_access_size = 4,
.impl.max_access_size = 4,
@@ -204,7 +204,7 @@ static const VMStateDescription vmstate_aspeed_wdt = {
static const MemoryRegionOps aspeed_wdt_ops = {
.read = aspeed_wdt_read,
.write = aspeed_wdt_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.valid.min_access_size = 4,
.valid.max_access_size = 4,
.valid.unaligned = false,
@@ -398,7 +398,7 @@ static const MemoryRegionOps i6300esb_ops = {
.write = i6300esb_mem_writefn,
.valid.min_access_size = 1,
.valid.max_access_size = 4,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
static const VMStateDescription vmstate_i6300esb = {
@@ -29,7 +29,7 @@ enum device_endian {
#if defined(HOST_WORDS_BIGENDIAN)
#define DEVICE_HOST_ENDIAN DEVICE_BIG_ENDIAN
#else
-#define DEVICE_HOST_ENDIAN DEVICE_LITTLE_ENDIAN
+#define DEVICE_HOST_ENDIAN MO_LE
#endif
/* address in the RAM (different from a physical address) */
@@ -213,7 +213,7 @@ static void portio_write(void *opaque, hwaddr addr, uint64_t data,
static const MemoryRegionOps portio_ops = {
.read = portio_read,
.write = portio_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
.valid.unaligned = true,
.impl.unaligned = true,
};
@@ -346,7 +346,7 @@ static void flatview_simplify(FlatView *view)
static bool memory_region_big_endian(MemoryRegion *mr)
{
#ifdef TARGET_WORDS_BIGENDIAN
- return mr->ops->endianness != DEVICE_LITTLE_ENDIAN;
+ return mr->ops->endianness != MO_LE;
#else
return mr->ops->endianness == DEVICE_BIG_ENDIAN;
#endif
@@ -3275,13 +3275,13 @@ type_init(memory_register_types)
MemOp devend_memop(enum device_endian end)
{
static MemOp conv[] = {
- [DEVICE_LITTLE_ENDIAN] = MO_LE,
+ [MO_LE] = MO_LE,
[DEVICE_BIG_ENDIAN] = MO_BE,
[MO_TE] = MO_TE,
[DEVICE_HOST_ENDIAN] = 0,
};
switch (end) {
- case DEVICE_LITTLE_ENDIAN:
+ case MO_LE:
case DEVICE_BIG_ENDIAN:
return conv[end];
default:
@@ -44,7 +44,7 @@ static inline uint32_t glue(address_space_ldl_internal, SUFFIX)(ARG1_DECL,
/* RAM case */
ptr = qemu_map_ram_ptr(mr->ram_block, addr1);
switch (endian) {
- case DEVICE_LITTLE_ENDIAN:
+ case MO_LE:
val = ldl_le_p(ptr);
break;
case DEVICE_BIG_ENDIAN:
@@ -77,7 +77,7 @@ uint32_t glue(address_space_ldl_le, SUFFIX)(ARG1_DECL,
hwaddr addr, MemTxAttrs attrs, MemTxResult *result)
{
return glue(address_space_ldl_internal, SUFFIX)(ARG1, addr, attrs, result,
- DEVICE_LITTLE_ENDIAN);
+ MO_LE);
}
uint32_t glue(address_space_ldl_be, SUFFIX)(ARG1_DECL,
@@ -112,7 +112,7 @@ static inline uint64_t glue(address_space_ldq_internal, SUFFIX)(ARG1_DECL,
/* RAM case */
ptr = qemu_map_ram_ptr(mr->ram_block, addr1);
switch (endian) {
- case DEVICE_LITTLE_ENDIAN:
+ case MO_LE:
val = ldq_le_p(ptr);
break;
case DEVICE_BIG_ENDIAN:
@@ -145,7 +145,7 @@ uint64_t glue(address_space_ldq_le, SUFFIX)(ARG1_DECL,
hwaddr addr, MemTxAttrs attrs, MemTxResult *result)
{
return glue(address_space_ldq_internal, SUFFIX)(ARG1, addr, attrs, result,
- DEVICE_LITTLE_ENDIAN);
+ MO_LE);
}
uint64_t glue(address_space_ldq_be, SUFFIX)(ARG1_DECL,
@@ -214,7 +214,7 @@ static inline uint32_t glue(address_space_lduw_internal, SUFFIX)(ARG1_DECL,
/* RAM case */
ptr = qemu_map_ram_ptr(mr->ram_block, addr1);
switch (endian) {
- case DEVICE_LITTLE_ENDIAN:
+ case MO_LE:
val = lduw_le_p(ptr);
break;
case DEVICE_BIG_ENDIAN:
@@ -247,7 +247,7 @@ uint32_t glue(address_space_lduw_le, SUFFIX)(ARG1_DECL,
hwaddr addr, MemTxAttrs attrs, MemTxResult *result)
{
return glue(address_space_lduw_internal, SUFFIX)(ARG1, addr, attrs, result,
- DEVICE_LITTLE_ENDIAN);
+ MO_LE);
}
uint32_t glue(address_space_lduw_be, SUFFIX)(ARG1_DECL,
@@ -318,7 +318,7 @@ static inline void glue(address_space_stl_internal, SUFFIX)(ARG1_DECL,
/* RAM case */
ptr = qemu_map_ram_ptr(mr->ram_block, addr1);
switch (endian) {
- case DEVICE_LITTLE_ENDIAN:
+ case MO_LE:
stl_le_p(ptr, val);
break;
case DEVICE_BIG_ENDIAN:
@@ -351,7 +351,7 @@ void glue(address_space_stl_le, SUFFIX)(ARG1_DECL,
hwaddr addr, uint32_t val, MemTxAttrs attrs, MemTxResult *result)
{
glue(address_space_stl_internal, SUFFIX)(ARG1, addr, val, attrs,
- result, DEVICE_LITTLE_ENDIAN);
+ result, MO_LE);
}
void glue(address_space_stl_be, SUFFIX)(ARG1_DECL,
@@ -414,7 +414,7 @@ static inline void glue(address_space_stw_internal, SUFFIX)(ARG1_DECL,
/* RAM case */
ptr = qemu_map_ram_ptr(mr->ram_block, addr1);
switch (endian) {
- case DEVICE_LITTLE_ENDIAN:
+ case MO_LE:
stw_le_p(ptr, val);
break;
case DEVICE_BIG_ENDIAN:
@@ -447,7 +447,7 @@ void glue(address_space_stw_le, SUFFIX)(ARG1_DECL,
hwaddr addr, uint32_t val, MemTxAttrs attrs, MemTxResult *result)
{
glue(address_space_stw_internal, SUFFIX)(ARG1, addr, val, attrs, result,
- DEVICE_LITTLE_ENDIAN);
+ MO_LE);
}
void glue(address_space_stw_be, SUFFIX)(ARG1_DECL,
@@ -478,7 +478,7 @@ static void glue(address_space_stq_internal, SUFFIX)(ARG1_DECL,
/* RAM case */
ptr = qemu_map_ram_ptr(mr->ram_block, addr1);
switch (endian) {
- case DEVICE_LITTLE_ENDIAN:
+ case MO_LE:
stq_le_p(ptr, val);
break;
case DEVICE_BIG_ENDIAN:
@@ -511,7 +511,7 @@ void glue(address_space_stq_le, SUFFIX)(ARG1_DECL,
hwaddr addr, uint64_t val, MemTxAttrs attrs, MemTxResult *result)
{
glue(address_space_stq_internal, SUFFIX)(ARG1, addr, val, attrs, result,
- DEVICE_LITTLE_ENDIAN);
+ MO_LE);
}
void glue(address_space_stq_be, SUFFIX)(ARG1_DECL,