@@ -2796,7 +2796,7 @@ static bool notdirty_mem_accepts(void *opaque, hwaddr addr,
static const MemoryRegionOps notdirty_mem_ops = {
.write = notdirty_mem_write,
.valid.accepts = notdirty_mem_accepts,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid = {
.min_access_size = 1,
.max_access_size = 8,
@@ -2925,7 +2925,7 @@ static MemTxResult watch_mem_write(void *opaque, hwaddr addr,
static const MemoryRegionOps watch_mem_ops = {
.read_with_attrs = watch_mem_read,
.write_with_attrs = watch_mem_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid = {
.min_access_size = 1,
.max_access_size = 8,
@@ -3001,7 +3001,7 @@ static const MemoryRegionOps subpage_ops = {
.valid.min_access_size = 1,
.valid.max_access_size = 8,
.valid.accepts = subpage_accepts,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static int subpage_register (subpage_t *mmio, uint32_t start, uint32_t end,
@@ -3076,7 +3076,7 @@ static bool readonly_mem_accepts(void *opaque, hwaddr addr,
static const MemoryRegionOps readonly_mem_ops = {
.write = readonly_mem_write,
.valid.accepts = readonly_mem_accepts,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid = {
.min_access_size = 1,
.max_access_size = 8,
@@ -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,
@@ -179,7 +179,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,
@@ -49,7 +49,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,
@@ -74,7 +74,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)
@@ -115,7 +115,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)
@@ -201,7 +201,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,
@@ -353,7 +353,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,
@@ -597,7 +597,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,
};
@@ -215,7 +215,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)
@@ -245,7 +245,7 @@ static void stm32f2xx_adc_write(void *opaque, hwaddr addr,
static const MemoryRegionOps stm32f2xx_adc_ops = {
.read = stm32f2xx_adc_read,
.write = stm32f2xx_adc_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static const VMStateDescription vmstate_stm32f2xx_adc = {
@@ -27,7 +27,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,
@@ -57,7 +57,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,
@@ -80,7 +80,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,
@@ -114,7 +114,7 @@ static void aw_a10_realize(DeviceState *dev, Error **errp)
/* FIXME use a qdev chardev prop instead of serial_hd() */
serial_mm_init(get_system_memory(), AW_A10_UART0_REG_BASE, 2, s->irq[1],
- 115200, serial_hd(0), DEVICE_NATIVE_ENDIAN);
+ 115200, serial_hd(0), MO_TE);
}
static void aw_a10_class_init(ObjectClass *oc, void *data)
@@ -86,7 +86,7 @@ static MemTxResult bitband_write(void *opaque, hwaddr offset, uint64_t value,
static const MemoryRegionOps bitband_ops = {
.read_with_attrs = bitband_read,
.write_with_attrs = bitband_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.impl.min_access_size = 1,
.impl.max_access_size = 4,
.valid.min_access_size = 1,
@@ -105,7 +105,7 @@ static void max_ram_write(void *opaque, hwaddr offset, uint64_t value,
static const MemoryRegionOps max_ram_ops = {
.read = max_ram_read,
.write = max_ram_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
#define FIRMWARE_ADDR 0x0
@@ -331,7 +331,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 */
@@ -119,7 +119,7 @@ static void exynos4210_chipid_and_omr_write(void *opaque, hwaddr offset,
static const MemoryRegionOps exynos4210_chipid_and_omr_ops = {
.read = exynos4210_chipid_and_omr_read,
.write = exynos4210_chipid_and_omr_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.impl = {
.max_access_size = 1,
}
@@ -148,7 +148,7 @@ static uint64_t hb_regs_read(void *opaque, hwaddr offset,
static const MemoryRegionOps hb_mem_ops = {
.read = hb_regs_read,
.write = hb_regs_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
#define TYPE_HIGHBANK_REGISTERS "highbank-regs"
@@ -259,7 +259,7 @@ static void integratorcm_write(void *opaque, hwaddr offset,
static const MemoryRegionOps integratorcm_ops = {
.read = integratorcm_read,
.write = integratorcm_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void integratorcm_init(Object *obj)
@@ -435,7 +435,7 @@ static void icp_pic_write(void *opaque, hwaddr offset,
static const MemoryRegionOps icp_pic_ops = {
.read = icp_pic_read,
.write = icp_pic_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void icp_pic_init(Object *obj)
@@ -527,7 +527,7 @@ static void icp_control_write(void *opaque, hwaddr offset,
static const MemoryRegionOps icp_control_ops = {
.read = icp_control_read,
.write = icp_control_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void icp_control_mmc_wprot(void *opaque, int line, int level)
@@ -122,7 +122,7 @@ static void kzm_init(MachineState *machine)
if (serial_hd(2)) { /* touchscreen */
serial_mm_init(get_system_memory(), KZM_FPGA_ADDR+0x10, 0,
qdev_get_gpio_in(DEVICE(&s->soc.avic), 52),
- 14745600, serial_hd(2), DEVICE_NATIVE_ENDIAN);
+ 14745600, serial_hd(2), MO_TE);
}
kzm_binfo.ram_size = machine->ram_size;
@@ -139,7 +139,7 @@ static void m2sxxx_soc_realize(DeviceState *dev_soc, Error **errp)
if (serial_hd(i)) {
serial_mm_init(get_system_memory(), uart_addr[i], 2,
qdev_get_gpio_in(armv7m, uart_irq[i]),
- 115200, serial_hd(i), DEVICE_NATIVE_ENDIAN);
+ 115200, serial_hd(i), MO_TE);
}
}
@@ -366,7 +366,7 @@ static void mv88w8618_eth_write(void *opaque, hwaddr offset,
static const MemoryRegionOps mv88w8618_eth_ops = {
.read = mv88w8618_eth_read,
.write = mv88w8618_eth_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void eth_cleanup(NetClientState *nc)
@@ -612,7 +612,7 @@ static void musicpal_lcd_write(void *opaque, hwaddr offset,
static const MemoryRegionOps musicpal_lcd_ops = {
.read = musicpal_lcd_read,
.write = musicpal_lcd_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static const GraphicHwOps musicpal_gfx_ops = {
@@ -753,7 +753,7 @@ static void mv88w8618_pic_reset(DeviceState *d)
static const MemoryRegionOps mv88w8618_pic_ops = {
.read = mv88w8618_pic_read,
.write = mv88w8618_pic_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void mv88w8618_pic_init(Object *obj)
@@ -917,7 +917,7 @@ static void mv88w8618_pit_reset(DeviceState *d)
static const MemoryRegionOps mv88w8618_pit_ops = {
.read = mv88w8618_pit_read,
.write = mv88w8618_pit_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void mv88w8618_pit_init(Object *obj)
@@ -1021,7 +1021,7 @@ static void mv88w8618_flashcfg_write(void *opaque, hwaddr offset,
static const MemoryRegionOps mv88w8618_flashcfg_ops = {
.read = mv88w8618_flashcfg_read,
.write = mv88w8618_flashcfg_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void mv88w8618_flashcfg_init(Object *obj)
@@ -1094,7 +1094,7 @@ static void musicpal_misc_write(void *opaque, hwaddr offset,
static const MemoryRegionOps musicpal_misc_ops = {
.read = musicpal_misc_read,
.write = musicpal_misc_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void musicpal_misc_init(Object *obj)
@@ -1142,7 +1142,7 @@ static void mv88w8618_wlan_write(void *opaque, hwaddr offset,
static const MemoryRegionOps mv88w8618_wlan_ops = {
.read = mv88w8618_wlan_read,
.write =mv88w8618_wlan_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void mv88w8618_wlan_realize(DeviceState *dev, Error **errp)
@@ -1339,7 +1339,7 @@ static void musicpal_gpio_write(void *opaque, hwaddr offset,
static const MemoryRegionOps musicpal_gpio_ops = {
.read = musicpal_gpio_read,
.write = musicpal_gpio_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void musicpal_gpio_reset(DeviceState *d)
@@ -1609,11 +1609,11 @@ static void musicpal_init(MachineState *machine)
if (serial_hd(0)) {
serial_mm_init(address_space_mem, MP_UART1_BASE, 2, pic[MP_UART1_IRQ],
- 1825000, serial_hd(0), DEVICE_NATIVE_ENDIAN);
+ 1825000, serial_hd(0), MO_TE);
}
if (serial_hd(1)) {
serial_mm_init(address_space_mem, MP_UART2_BASE, 2, pic[MP_UART2_IRQ],
- 1825000, serial_hd(1), DEVICE_NATIVE_ENDIAN);
+ 1825000, serial_hd(1), MO_TE);
}
/* Register flash */
@@ -252,7 +252,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)
@@ -375,7 +375,7 @@ static void omap_wd_timer_write(void *opaque, hwaddr addr,
static const MemoryRegionOps omap_wd_timer_ops = {
.read = omap_wd_timer_read,
.write = omap_wd_timer_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void omap_wd_timer_reset(struct omap_watchdog_timer_s *s)
@@ -487,7 +487,7 @@ static void omap_os_timer_write(void *opaque, hwaddr addr,
static const MemoryRegionOps omap_os_timer_ops = {
.read = omap_os_timer_read,
.write = omap_os_timer_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void omap_os_timer_reset(struct omap_32khz_timer_s *s)
@@ -714,7 +714,7 @@ static void omap_ulpd_pm_write(void *opaque, hwaddr addr,
static const MemoryRegionOps omap_ulpd_pm_ops = {
.read = omap_ulpd_pm_read,
.write = omap_ulpd_pm_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void omap_ulpd_pm_reset(struct omap_mpu_state_s *mpu)
@@ -948,7 +948,7 @@ static void omap_pin_cfg_write(void *opaque, hwaddr addr,
static const MemoryRegionOps omap_pin_cfg_ops = {
.read = omap_pin_cfg_read,
.write = omap_pin_cfg_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void omap_pin_cfg_reset(struct omap_mpu_state_s *mpu)
@@ -1039,7 +1039,7 @@ static void omap_id_write(void *opaque, hwaddr addr,
static const MemoryRegionOps omap_id_ops = {
.read = omap_id_read,
.write = omap_id_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void omap_id_init(MemoryRegion *memory, struct omap_mpu_state_s *mpu)
@@ -1128,7 +1128,7 @@ static void omap_mpui_write(void *opaque, hwaddr addr,
static const MemoryRegionOps omap_mpui_ops = {
.read = omap_mpui_read,
.write = omap_mpui_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void omap_mpui_reset(struct omap_mpu_state_s *s)
@@ -1231,7 +1231,7 @@ static void omap_tipb_bridge_write(void *opaque, hwaddr addr,
static const MemoryRegionOps omap_tipb_bridge_ops = {
.read = omap_tipb_bridge_read,
.write = omap_tipb_bridge_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void omap_tipb_bridge_reset(struct omap_tipb_bridge_s *s)
@@ -1336,7 +1336,7 @@ static void omap_tcmi_write(void *opaque, hwaddr addr,
static const MemoryRegionOps omap_tcmi_ops = {
.read = omap_tcmi_read,
.write = omap_tcmi_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void omap_tcmi_reset(struct omap_mpu_state_s *mpu)
@@ -1431,7 +1431,7 @@ static void omap_dpll_write(void *opaque, hwaddr addr,
static const MemoryRegionOps omap_dpll_ops = {
.read = omap_dpll_read,
.write = omap_dpll_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void omap_dpll_reset(struct dpll_ctl_s *s)
@@ -1743,7 +1743,7 @@ static void omap_clkm_write(void *opaque, hwaddr addr,
static const MemoryRegionOps omap_clkm_ops = {
.read = omap_clkm_read,
.write = omap_clkm_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static uint64_t omap_clkdsp_read(void *opaque, hwaddr addr,
@@ -1832,7 +1832,7 @@ static void omap_clkdsp_write(void *opaque, hwaddr addr,
static const MemoryRegionOps omap_clkdsp_ops = {
.read = omap_clkdsp_read,
.write = omap_clkdsp_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void omap_clkm_reset(struct omap_mpu_state_s *s)
@@ -2077,7 +2077,7 @@ static void omap_mpuio_write(void *opaque, hwaddr addr,
static const MemoryRegionOps omap_mpuio_ops = {
.read = omap_mpuio_read,
.write = omap_mpuio_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void omap_mpuio_reset(struct omap_mpuio_s *s)
@@ -2283,7 +2283,7 @@ static void omap_uwire_write(void *opaque, hwaddr addr,
static const MemoryRegionOps omap_uwire_ops = {
.read = omap_uwire_read,
.write = omap_uwire_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void omap_uwire_reset(struct omap_uwire_s *s)
@@ -2394,7 +2394,7 @@ static void omap_pwl_write(void *opaque, hwaddr addr,
static const MemoryRegionOps omap_pwl_ops = {
.read = omap_pwl_read,
.write = omap_pwl_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void omap_pwl_reset(struct omap_pwl_s *s)
@@ -2512,7 +2512,7 @@ static void omap_pwt_write(void *opaque, hwaddr addr,
static const MemoryRegionOps omap_pwt_ops = {
.read =omap_pwt_read,
.write = omap_pwt_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void omap_pwt_reset(struct omap_pwt_s *s)
@@ -2849,7 +2849,7 @@ static void omap_rtc_write(void *opaque, hwaddr addr,
static const MemoryRegionOps omap_rtc_ops = {
.read = omap_rtc_read,
.write = omap_rtc_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void omap_rtc_tick(void *opaque)
@@ -3447,7 +3447,7 @@ static void omap_mcbsp_write(void *opaque, hwaddr addr,
static const MemoryRegionOps omap_mcbsp_ops = {
.read = omap_mcbsp_read,
.write = omap_mcbsp_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void omap_mcbsp_reset(struct omap_mcbsp_s *s)
@@ -3639,7 +3639,7 @@ static void omap_lpg_write(void *opaque, hwaddr addr,
static const MemoryRegionOps omap_lpg_ops = {
.read = omap_lpg_read,
.write = omap_lpg_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void omap_lpg_clk_update(void *opaque, int line, int on)
@@ -3692,7 +3692,7 @@ static void omap_mpui_io_write(void *opaque, hwaddr addr,
static const MemoryRegionOps omap_mpui_io_ops = {
.read = omap_mpui_io_read,
.write = omap_mpui_io_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void omap_setup_mpui_io(MemoryRegion *system_memory,
@@ -593,7 +593,7 @@ static void omap_eac_write(void *opaque, hwaddr addr,
static const MemoryRegionOps omap_eac_ops = {
.read = omap_eac_read,
.write = omap_eac_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static struct omap_eac_s *omap_eac_init(struct omap_target_agent_s *ta,
@@ -744,7 +744,7 @@ static void omap_sti_write(void *opaque, hwaddr addr,
static const MemoryRegionOps omap_sti_ops = {
.read = omap_sti_read,
.write = omap_sti_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static uint64_t omap_sti_fifo_read(void *opaque, hwaddr addr,
@@ -785,7 +785,7 @@ static void omap_sti_fifo_write(void *opaque, hwaddr addr,
static const MemoryRegionOps omap_sti_fifo_ops = {
.read = omap_sti_fifo_read,
.write = omap_sti_fifo_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static struct omap_sti_s *omap_sti_init(struct omap_target_agent_s *ta,
@@ -1724,7 +1724,7 @@ static void omap_prcm_write(void *opaque, hwaddr addr,
static const MemoryRegionOps omap_prcm_ops = {
.read = omap_prcm_read,
.write = omap_prcm_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void omap_prcm_reset(struct omap_prcm_s *s)
@@ -2124,7 +2124,7 @@ static const MemoryRegionOps omap_sysctl_ops = {
.write = omap_sysctl_writefn,
.valid.min_access_size = 1,
.valid.max_access_size = 4,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void omap_sysctl_reset(struct omap_sysctl_s *s)
@@ -83,7 +83,7 @@ static void static_write(void *opaque, hwaddr offset,
static const MemoryRegionOps static_ops = {
.read = static_read,
.write = static_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
#define sdram_size 0x02000000
@@ -53,7 +53,7 @@ static const MemoryRegionOps static_ops = {
.write = static_write,
.valid.min_access_size = 1,
.valid.max_access_size = 4,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
/* Palm Tunsgten|E support */
@@ -149,7 +149,7 @@ static void pxa2xx_pm_write(void *opaque, hwaddr addr,
static const MemoryRegionOps pxa2xx_pm_ops = {
.read = pxa2xx_pm_read,
.write = pxa2xx_pm_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static const VMStateDescription vmstate_pxa2xx_pm = {
@@ -215,7 +215,7 @@ static void pxa2xx_cm_write(void *opaque, hwaddr addr,
static const MemoryRegionOps pxa2xx_cm_ops = {
.read = pxa2xx_cm_read,
.write = pxa2xx_cm_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static const VMStateDescription vmstate_pxa2xx_cm = {
@@ -439,7 +439,7 @@ static void pxa2xx_mm_write(void *opaque, hwaddr addr,
static const MemoryRegionOps pxa2xx_mm_ops = {
.read = pxa2xx_mm_read,
.write = pxa2xx_mm_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static const VMStateDescription vmstate_pxa2xx_mm = {
@@ -738,7 +738,7 @@ static void pxa2xx_ssp_write(void *opaque, hwaddr addr,
static const MemoryRegionOps pxa2xx_ssp_ops = {
.read = pxa2xx_ssp_read,
.write = pxa2xx_ssp_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void pxa2xx_ssp_reset(DeviceState *d)
@@ -1105,7 +1105,7 @@ static void pxa2xx_rtc_write(void *opaque, hwaddr addr,
static const MemoryRegionOps pxa2xx_rtc_ops = {
.read = pxa2xx_rtc_read,
.write = pxa2xx_rtc_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void pxa2xx_rtc_init(Object *obj)
@@ -1426,7 +1426,7 @@ static void pxa2xx_i2c_write(void *opaque, hwaddr addr,
static const MemoryRegionOps pxa2xx_i2c_ops = {
.read = pxa2xx_i2c_read,
.write = pxa2xx_i2c_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static const VMStateDescription vmstate_pxa2xx_i2c_slave = {
@@ -1684,7 +1684,7 @@ static void pxa2xx_i2s_write(void *opaque, hwaddr addr,
static const MemoryRegionOps pxa2xx_i2s_ops = {
.read = pxa2xx_i2s_read,
.write = pxa2xx_i2s_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static const VMStateDescription vmstate_pxa2xx_i2s = {
@@ -1921,7 +1921,7 @@ static void pxa2xx_fir_write(void *opaque, hwaddr addr,
static const MemoryRegionOps pxa2xx_fir_ops = {
.read = pxa2xx_fir_read,
.write = pxa2xx_fir_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static int pxa2xx_fir_is_empty(void *opaque)
@@ -2110,7 +2110,7 @@ PXA2xxState *pxa270_init(MemoryRegion *address_space,
serial_mm_init(address_space, pxa270_serial[i].io_base, 2,
qdev_get_gpio_in(s->pic, pxa270_serial[i].irqn),
14857000 / 16, serial_hd(i),
- DEVICE_NATIVE_ENDIAN);
+ MO_TE);
} else {
break;
}
@@ -2234,7 +2234,7 @@ PXA2xxState *pxa255_init(MemoryRegion *address_space, unsigned int sdram_size)
serial_mm_init(address_space, pxa255_serial[i].io_base, 2,
qdev_get_gpio_in(s->pic, pxa255_serial[i].irqn),
14745600 / 16, serial_hd(i),
- DEVICE_NATIVE_ENDIAN);
+ MO_TE);
} else {
break;
}
@@ -256,7 +256,7 @@ static void pxa2xx_gpio_write(void *opaque, hwaddr offset,
static const MemoryRegionOps pxa_gpio_ops = {
.read = pxa2xx_gpio_read,
.write = pxa2xx_gpio_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
DeviceState *pxa2xx_gpio_init(hwaddr base,
@@ -256,7 +256,7 @@ static const ARMCPRegInfo pxa_pic_cp_reginfo[] = {
static const MemoryRegionOps pxa2xx_pic_ops = {
.read = pxa2xx_pic_mem_read,
.write = pxa2xx_pic_mem_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static int pxa2xx_pic_post_load(void *opaque, int version_id)
@@ -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,
@@ -145,7 +145,7 @@ enum {
static const MemoryRegionOps sl_ops = {
.read = sl_read,
.write = sl_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void sl_flash_register(PXA2xxState *cpu, int size)
@@ -305,7 +305,7 @@ static void gptm_write(void *opaque, hwaddr offset,
static const MemoryRegionOps gptm_ops = {
.read = gptm_read,
.write = gptm_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static const VMStateDescription vmstate_stellaris_gptm = {
@@ -637,7 +637,7 @@ static void ssys_write(void *opaque, hwaddr offset,
static const MemoryRegionOps ssys_ops = {
.read = ssys_read,
.write = ssys_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void ssys_reset(void *opaque)
@@ -874,7 +874,7 @@ static void stellaris_i2c_reset(stellaris_i2c_state *s)
static const MemoryRegionOps stellaris_i2c_ops = {
.read = stellaris_i2c_read,
.write = stellaris_i2c_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static const VMStateDescription vmstate_stellaris_i2c = {
@@ -1144,7 +1144,7 @@ static void stellaris_adc_write(void *opaque, hwaddr offset,
static const MemoryRegionOps stellaris_adc_ops = {
.read = stellaris_adc_read,
.write = stellaris_adc_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static const VMStateDescription vmstate_stellaris_adc = {
@@ -179,7 +179,7 @@ static void strongarm_pic_mem_write(void *opaque, hwaddr offset,
static const MemoryRegionOps strongarm_pic_ops = {
.read = strongarm_pic_mem_read,
.write = strongarm_pic_mem_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void strongarm_pic_initfn(Object *obj)
@@ -379,7 +379,7 @@ static void strongarm_rtc_write(void *opaque, hwaddr addr,
static const MemoryRegionOps strongarm_rtc_ops = {
.read = strongarm_rtc_read,
.write = strongarm_rtc_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void strongarm_rtc_init(Object *obj)
@@ -627,7 +627,7 @@ static void strongarm_gpio_write(void *opaque, hwaddr offset,
static const MemoryRegionOps strongarm_gpio_ops = {
.read = strongarm_gpio_read,
.write = strongarm_gpio_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static DeviceState *strongarm_gpio_init(hwaddr base,
@@ -820,7 +820,7 @@ static void strongarm_ppc_write(void *opaque, hwaddr offset,
static const MemoryRegionOps strongarm_ppc_ops = {
.read = strongarm_ppc_read,
.write = strongarm_ppc_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void strongarm_ppc_init(Object *obj)
@@ -1225,7 +1225,7 @@ static void strongarm_uart_write(void *opaque, hwaddr addr,
static const MemoryRegionOps strongarm_uart_ops = {
.read = strongarm_uart_read,
.write = strongarm_uart_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void strongarm_uart_init(Object *obj)
@@ -1514,7 +1514,7 @@ static void strongarm_ssp_write(void *opaque, hwaddr addr,
static const MemoryRegionOps strongarm_ssp_ops = {
.read = strongarm_ssp_read,
.write = strongarm_ssp_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static int strongarm_ssp_post_load(void *opaque, int version_id)
@@ -149,7 +149,7 @@ static void vpb_sic_write(void *opaque, hwaddr offset,
static const MemoryRegionOps vpb_sic_ops = {
.read = vpb_sic_read,
.write = vpb_sic_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void vpb_sic_init(Object *obj)
@@ -1275,7 +1275,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)
@@ -1324,7 +1324,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)
@@ -132,7 +132,7 @@ static void cs_mem_write(void *opaque, hwaddr addr,
static const MemoryRegionOps cs_mem_ops = {
.read = cs_mem_read,
.write = cs_mem_write,
- .endianness = DEVICE_BIG_ENDIAN,
+ .endianness = MO_BE,
};
static const VMStateDescription vmstate_cs4231 = {
@@ -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 = {
@@ -1068,7 +1068,7 @@ static const MemoryRegionOps intel_hda_mmio_ops = {
.min_access_size = 1,
.max_access_size = 4,
},
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
/* --------------------------------------------------------------------- */
@@ -240,7 +240,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)
@@ -176,7 +176,7 @@ static const MemoryRegionOps ac97_mmio_ops = {
.min_access_size = 4,
.max_access_size = 4,
},
- .endianness = DEVICE_BIG_ENDIAN,
+ .endianness = MO_BE,
};
static void ac97_in_cb(void *opaque, int avail_b)
@@ -519,7 +519,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)
@@ -981,13 +981,13 @@ static void fdctrl_write_mem (void *opaque, hwaddr reg,
static const MemoryRegionOps fdctrl_mem_ops = {
.read = fdctrl_read_mem,
.write = fdctrl_write_mem,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static const MemoryRegionOps fdctrl_mem_strict_ops = {
.read = fdctrl_read_mem,
.write = fdctrl_write_mem,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid = {
.min_access_size = 1,
.max_access_size = 1,
@@ -1272,7 +1272,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,
@@ -1295,7 +1295,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,
@@ -769,7 +769,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)
@@ -694,7 +694,7 @@ static MemTxResult pflash_mem_write_with_attrs(void *opaque, hwaddr addr, uint64
static const MemoryRegionOps pflash_cfi01_ops = {
.read_with_attrs = pflash_mem_read_with_attrs,
.write_with_attrs = pflash_mem_write_with_attrs,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void pflash_cfi01_realize(DeviceState *dev, Error **errp)
@@ -713,7 +713,7 @@ static const MemoryRegionOps pflash_cfi02_ops = {
.write = pflash_write,
.valid.min_access_size = 1,
.valid.max_access_size = 4,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void pflash_cfi02_realize(DeviceState *dev, Error **errp)
@@ -244,7 +244,7 @@ static void bcm2835_aux_receive(void *opaque, const uint8_t *buf, int size)
static const MemoryRegionOps bcm2835_aux_ops = {
.read = bcm2835_aux_read,
.write = bcm2835_aux_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid.min_access_size = 4,
.valid.max_access_size = 4,
};
@@ -457,7 +457,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)
@@ -298,7 +298,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)
@@ -110,7 +110,7 @@ static const MemoryRegionOps uart_mmio_ops = {
.min_access_size = 4,
.max_access_size = 4,
},
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static int uart_can_rx(void *opaque)
@@ -574,7 +574,7 @@ static uint64_t escc_mem_read(void *opaque, hwaddr addr,
static const MemoryRegionOps escc_mem_ops = {
.read = escc_mem_read,
.write = escc_mem_write,
- .endianness = DEVICE_BIG_ENDIAN,
+ .endianness = MO_BE,
.valid = {
.min_access_size = 1,
.max_access_size = 1,
@@ -155,7 +155,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
@@ -481,7 +481,7 @@ static uint64_t exynos4210_uart_read(void *opaque, hwaddr offset,
static const MemoryRegionOps exynos4210_uart_ops = {
.read = exynos4210_uart_read,
.write = exynos4210_uart_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid = {
.max_access_size = 4,
.unaligned = false
@@ -237,7 +237,7 @@ static void grlib_apbuart_write(void *opaque, hwaddr addr,
static const MemoryRegionOps grlib_apbuart_ops = {
.write = grlib_apbuart_write,
.read = grlib_apbuart_read,
- .endianness = DEVICE_BIG_ENDIAN,
+ .endianness = MO_BE,
};
static void grlib_apbuart_realize(DeviceState *dev, Error **errp)
@@ -332,7 +332,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)
@@ -205,7 +205,7 @@ static void uart_write(void *opaque, hwaddr addr,
static const MemoryRegionOps uart_ops = {
.read = uart_read,
.write = uart_write,
- .endianness = DEVICE_BIG_ENDIAN,
+ .endianness = MO_BE,
.valid = {
.min_access_size = 4,
.max_access_size = 4,
@@ -286,7 +286,7 @@ static void mcf_uart_receive(void *opaque, const uint8_t *buf, int size)
static const MemoryRegionOps mcf_uart_ops = {
.read = mcf_uart_read,
.write = mcf_uart_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void mcf_uart_instance_init(Object *obj)
@@ -156,7 +156,7 @@ static const MemoryRegionOps uart_mmio_ops = {
.min_access_size = 4,
.max_access_size = 4,
},
- .endianness = DEVICE_BIG_ENDIAN,
+ .endianness = MO_BE,
};
static void uart_rx(void *opaque, const uint8_t *buf, int size)
@@ -189,7 +189,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)
@@ -64,7 +64,7 @@ struct omap_uart_s *omap_uart_init(hwaddr base,
s->serial = serial_mm_init(get_system_memory(), base, 2, irq,
omap_clk_getrate(fclk)/16,
chr ?: qemu_chr_new(label, "null", NULL),
- DEVICE_NATIVE_ENDIAN);
+ MO_TE);
return s;
}
@@ -156,7 +156,7 @@ static void omap_uart_write(void *opaque, hwaddr addr,
static const MemoryRegionOps omap_uart_ops = {
.read = omap_uart_read,
.write = omap_uart_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
struct omap_uart_s *omap2_uart_init(MemoryRegion *sysmem,
@@ -184,5 +184,5 @@ void omap_uart_attach(struct omap_uart_s *s, Chardev *chr)
s->serial = serial_mm_init(get_system_memory(), s->base, 2, s->irq,
omap_clk_getrate(s->fclk) / 16,
chr ?: qemu_chr_new("null", "null", NULL),
- DEVICE_NATIVE_ENDIAN);
+ MO_TE);
}
@@ -588,7 +588,7 @@ static const MemoryRegionOps parallel_mm_ops = {
.write = parallel_mm_writefn,
.valid.min_access_size = 1,
.valid.max_access_size = 4,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
/* If fd is zero, it means that the parallel device uses the console */
@@ -287,7 +287,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 = {
@@ -973,7 +973,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,
@@ -1016,14 +1016,14 @@ 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,
},
[1] = {
.read = serial_mm_read,
.write = serial_mm_write,
- .endianness = DEVICE_BIG_ENDIAN,
+ .endianness = MO_BE,
.valid.max_access_size = 8,
.impl.max_access_size = 8,
},
@@ -1032,7 +1032,7 @@ static const MemoryRegionOps serial_mm_ops[2] = {
SerialState *serial_mm_init(MemoryRegion *address_space,
hwaddr base, int it_shift,
qemu_irq irq, int baudbase,
- Chardev *chr, enum device_endian end)
+ Chardev *chr, MemOp end)
{
SerialState *s;
@@ -1047,7 +1047,7 @@ SerialState *serial_mm_init(MemoryRegion *address_space,
vmstate_register(NULL, base, &vmstate_serial, s);
memory_region_init_io(&s->io, NULL,
- &serial_mm_ops[end == DEVICE_BIG_ENDIAN],
+ &serial_mm_ops[end == MO_BE],
s, "serial", 8 << it_shift);
memory_region_add_subregion(address_space, base, &s->io);
return s;
@@ -367,7 +367,7 @@ static void sh_serial_event(void *opaque, int event)
static const MemoryRegionOps sh_serial_ops = {
.read = sh_serial_read,
.write = sh_serial_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
void sh_serial_init(MemoryRegion *sysmem,
@@ -187,7 +187,7 @@ static void stm32f2xx_usart_write(void *opaque, hwaddr addr,
static const MemoryRegionOps stm32f2xx_usart_ops = {
.read = stm32f2xx_usart_read,
.write = stm32f2xx_usart_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static Property stm32f2xx_usart_properties[] = {
@@ -166,7 +166,7 @@ uart_write(void *opaque, hwaddr addr,
static const MemoryRegionOps uart_ops = {
.read = uart_read,
.write = uart_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid = {
.min_access_size = 1,
.max_access_size = 4
@@ -50,7 +50,7 @@ static void empty_slot_write(void *opaque, hwaddr addr,
static const MemoryRegionOps empty_slot_ops = {
.read = empty_slot_read,
.write = empty_slot_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
void empty_slot_init(hwaddr addr, uint64_t slot_size)
@@ -83,7 +83,7 @@ nand_write(void *opaque, hwaddr addr, uint64_t value,
static const MemoryRegionOps nand_ops = {
.read = nand_read,
.write = nand_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
struct tempsensor_t
@@ -235,7 +235,7 @@ static void gpio_write(void *opaque, hwaddr addr, uint64_t value,
static const MemoryRegionOps gpio_ops = {
.read = gpio_read,
.write = gpio_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid = {
.min_access_size = 4,
.max_access_size = 4,
@@ -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)
@@ -340,7 +340,7 @@ static void bcm2835_fb_write(void *opaque, hwaddr offset, uint64_t value,
static const MemoryRegionOps bcm2835_fb_ops = {
.read = bcm2835_fb_read,
.write = bcm2835_fb_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid.min_access_size = 4,
.valid.max_access_size = 4,
};
@@ -106,7 +106,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,
@@ -147,7 +147,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,
@@ -267,7 +267,7 @@ static void cg3_reg_write(void *opaque, hwaddr addr, uint64_t val,
static const MemoryRegionOps cg3_reg_ops = {
.read = cg3_reg_read,
.write = cg3_reg_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid = {
.min_access_size = 1,
.max_access_size = 4,
@@ -2123,7 +2123,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,
@@ -2436,7 +2436,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,
@@ -2736,7 +2736,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,
@@ -2847,7 +2847,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,
@@ -2857,7 +2857,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,
@@ -21,7 +21,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,
@@ -1818,7 +1818,7 @@ static const MemoryRegionOps exynos4210_fimd_mmio_ops = {
.max_access_size = 4,
.unaligned = false
},
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static int exynos4210_fimd_load(void *opaque, int version_id)
@@ -428,7 +428,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,
};
@@ -72,7 +72,7 @@ static void jazz_led_write(void *opaque, hwaddr addr,
static const MemoryRegionOps led_ops = {
.read = jazz_led_read,
.write = jazz_led_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.impl.min_access_size = 1,
.impl.max_access_size = 1,
};
@@ -434,7 +434,7 @@ static const MemoryRegionOps tmu2_mmio_ops = {
.min_access_size = 4,
.max_access_size = 4,
},
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void milkymist_tmu2_reset(DeviceState *d)
@@ -269,7 +269,7 @@ static const MemoryRegionOps vgafb_mmio_ops = {
.min_access_size = 4,
.max_access_size = 4,
},
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void milkymist_vgafb_reset(DeviceState *d)
@@ -245,7 +245,7 @@ static void omap_diss_write(void *opaque, hwaddr addr,
static const MemoryRegionOps omap_diss_ops = {
.read = omap_diss_read,
.write = omap_diss_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static uint64_t omap_disc_read(void *opaque, hwaddr addr,
@@ -589,7 +589,7 @@ static void omap_disc_write(void *opaque, hwaddr addr,
static const MemoryRegionOps omap_disc_ops = {
.read = omap_disc_read,
.write = omap_disc_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void omap_rfbi_transfer_stop(struct omap_dss_s *s)
@@ -865,7 +865,7 @@ static void omap_rfbi_write(void *opaque, hwaddr addr,
static const MemoryRegionOps omap_rfbi_ops = {
.read = omap_rfbi_read,
.write = omap_rfbi_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static uint64_t omap_venc_read(void *opaque, hwaddr addr,
@@ -988,7 +988,7 @@ static void omap_venc_write(void *opaque, hwaddr addr,
static const MemoryRegionOps omap_venc_ops = {
.read = omap_venc_read,
.write = omap_venc_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static uint64_t omap_im3_read(void *opaque, hwaddr addr,
@@ -1042,7 +1042,7 @@ static void omap_im3_write(void *opaque, hwaddr addr,
static const MemoryRegionOps omap_im3_ops = {
.read = omap_im3_read,
.write = omap_im3_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
struct omap_dss_s *omap_dss_init(struct omap_target_agent_s *ta,
@@ -330,7 +330,7 @@ static void omap_lcdc_write(void *opaque, hwaddr addr,
static const MemoryRegionOps omap_lcdc_ops = {
.read = omap_lcdc_read,
.write = omap_lcdc_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
void omap_lcdc_reset(struct omap_lcd_panel_s *s)
@@ -471,7 +471,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)
@@ -567,7 +567,7 @@ static void pxa2xx_lcdc_write(void *opaque, hwaddr offset,
static const MemoryRegionOps pxa2xx_lcdc_ops = {
.read = pxa2xx_lcdc_read,
.write = pxa2xx_lcdc_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
/* Load new palette for a given DMA channel, convert to internal format */
@@ -967,7 +967,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)
@@ -1070,7 +1070,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)
@@ -1358,7 +1358,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,
@@ -1533,7 +1533,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 */
@@ -1961,7 +1961,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);
}
}
@@ -547,7 +547,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,
@@ -462,7 +462,7 @@ static void tcx_dac_writel(void *opaque, hwaddr addr, uint64_t val,
static const MemoryRegionOps tcx_dac_ops = {
.read = tcx_dac_readl,
.write = tcx_dac_writel,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid = {
.min_access_size = 4,
.max_access_size = 4,
@@ -543,7 +543,7 @@ static void tcx_rstip_writel(void *opaque, hwaddr addr,
static const MemoryRegionOps tcx_stip_ops = {
.read = tcx_stip_readl,
.write = tcx_stip_writel,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid = {
.min_access_size = 4,
.max_access_size = 4,
@@ -553,7 +553,7 @@ static const MemoryRegionOps tcx_stip_ops = {
static const MemoryRegionOps tcx_rstip_ops = {
.read = tcx_stip_readl,
.write = tcx_rstip_writel,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid = {
.min_access_size = 4,
.max_access_size = 4,
@@ -635,7 +635,7 @@ static void tcx_rblit_writel(void *opaque, hwaddr addr,
static const MemoryRegionOps tcx_blit_ops = {
.read = tcx_blit_readl,
.write = tcx_blit_writel,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid = {
.min_access_size = 4,
.max_access_size = 4,
@@ -645,7 +645,7 @@ static const MemoryRegionOps tcx_blit_ops = {
static const MemoryRegionOps tcx_rblit_ops = {
.read = tcx_blit_readl,
.write = tcx_rblit_writel,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid = {
.min_access_size = 4,
.max_access_size = 4,
@@ -707,7 +707,7 @@ static void tcx_thc_writel(void *opaque, hwaddr addr,
static const MemoryRegionOps tcx_thc_ops = {
.read = tcx_thc_readl,
.write = tcx_thc_writel,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid = {
.min_access_size = 4,
.max_access_size = 4,
@@ -729,7 +729,7 @@ static void tcx_dummy_writel(void *opaque, hwaddr addr,
static const MemoryRegionOps tcx_dummy_ops = {
.read = tcx_dummy_readl,
.write = tcx_dummy_writel,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid = {
.min_access_size = 4,
.max_access_size = 4,
@@ -60,7 +60,7 @@ static const MemoryRegionOps vga_mm_ctrl_ops = {
.valid.max_access_size = 4,
.impl.min_access_size = 1,
.impl.max_access_size = 4,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void vga_mm_init(ISAVGAMMState *s, hwaddr vram_base,
@@ -110,7 +110,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,
@@ -140,7 +140,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)
@@ -194,7 +194,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,
@@ -2062,7 +2062,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,
@@ -1280,7 +1280,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,
@@ -301,7 +301,7 @@ static void xlnx_dp_audio_write(void *opaque, hwaddr offset, uint64_t value,
static const MemoryRegionOps audio_ops = {
.read = xlnx_dp_audio_read,
.write = xlnx_dp_audio_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static inline uint32_t xlnx_dp_audio_get_volume(XlnxDPState *s,
@@ -876,7 +876,7 @@ static void xlnx_dp_write(void *opaque, hwaddr offset, uint64_t value,
static const MemoryRegionOps dp_ops = {
.read = xlnx_dp_read,
.write = xlnx_dp_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid = {
.min_access_size = 4,
.max_access_size = 4,
@@ -991,7 +991,7 @@ static uint64_t xlnx_dp_vblend_read(void *opaque, hwaddr offset,
static const MemoryRegionOps vblend_ops = {
.read = xlnx_dp_vblend_read,
.write = xlnx_dp_vblend_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid = {
.min_access_size = 4,
.max_access_size = 4,
@@ -1104,7 +1104,7 @@ static uint64_t xlnx_dp_avbufm_read(void *opaque, hwaddr offset,
static const MemoryRegionOps avbufm_ops = {
.read = xlnx_dp_avbufm_read,
.write = xlnx_dp_avbufm_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid = {
.min_access_size = 4,
.max_access_size = 4,
@@ -288,7 +288,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,
};
@@ -296,7 +296,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,
};
@@ -695,10 +695,10 @@ dma_write(void *opaque, hwaddr addr,
}
static const MemoryRegionOps dma_ops = {
- .read = dma_read,
- .write = dma_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
- .valid = {
+ .read = dma_read,
+ .write = dma_write,
+ .endianness = MO_LE,
+ .valid = {
.min_access_size = 1,
.max_access_size = 4
}
@@ -475,7 +475,7 @@ static int i8257_phony_handler(void *opaque, int nchan, int dma_pos,
static const MemoryRegionOps channel_io_ops = {
.read = i8257_read_chan,
.write = i8257_write_chan,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.impl = {
.min_access_size = 1,
.max_access_size = 1,
@@ -499,7 +499,7 @@ static const MemoryRegionPortio pageh_portio_list[] = {
static const MemoryRegionOps cont_io_ops = {
.read = i8257_read_cont,
.write = i8257_write_cont,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.impl = {
.min_access_size = 1,
.max_access_size = 1,
@@ -1552,7 +1552,7 @@ static void omap_dma_write(void *opaque, hwaddr addr,
static const MemoryRegionOps omap_dma_ops = {
.read = omap_dma_read,
.write = omap_dma_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void omap_dma_request(void *opaque, int drq, int req)
@@ -2073,7 +2073,7 @@ static void omap_dma4_write(void *opaque, hwaddr addr,
static const MemoryRegionOps omap_dma4_ops = {
.read = omap_dma4_read,
.write = omap_dma4_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
struct soc_dma_s *omap_dma4_init(hwaddr base, qemu_irq *irqs,
@@ -346,7 +346,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)
@@ -1493,7 +1493,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,
@@ -75,7 +75,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)
@@ -424,7 +424,7 @@ static void pxa2xx_dma_write(void *opaque, hwaddr offset,
static const MemoryRegionOps pxa2xx_dma_ops = {
.read = pxa2xx_dma_read,
.write = pxa2xx_dma_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void pxa2xx_dma_request(void *opaque, int req_num, int on)
@@ -387,7 +387,7 @@ static const MemoryRegionOps rc4030_ops = {
.write = rc4030_write,
.impl.min_access_size = 4,
.impl.max_access_size = 4,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void update_jazz_irq(rc4030State *s)
@@ -490,7 +490,7 @@ static const MemoryRegionOps jazzio_ops = {
.write = jazzio_write,
.impl.min_access_size = 2,
.impl.max_access_size = 2,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static IOMMUTLBEntry rc4030_dma_translate(IOMMUMemoryRegion *iommu, hwaddr addr,
@@ -224,7 +224,7 @@ static void dma_mem_write(void *opaque, hwaddr addr,
static const MemoryRegionOps dma_mem_ops = {
.read = dma_mem_read,
.write = dma_mem_write,
- .endianness = DEVICE_BIG_ENDIAN,
+ .endianness = MO_BE,
.valid = {
.min_access_size = 4,
.max_access_size = 4,
@@ -512,7 +512,7 @@ static void axidma_write(void *opaque, hwaddr addr,
static const MemoryRegionOps axidma_ops = {
.read = axidma_read,
.write = axidma_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void xilinx_axidma_realize(DeviceState *dev, Error **errp)
@@ -742,7 +742,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,
@@ -319,7 +319,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,
@@ -552,7 +552,7 @@ static void xlnx_dpdma_write(void *opaque, hwaddr offset,
static const MemoryRegionOps dma_ops = {
.read = xlnx_dpdma_read,
.write = xlnx_dpdma_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid = {
.min_access_size = 4,
.max_access_size = 4,
@@ -275,7 +275,7 @@ static void bcm2835_gpio_reset(DeviceState *dev)
static const MemoryRegionOps bcm2835_gpio_ops = {
.read = bcm2835_gpio_read,
.write = bcm2835_gpio_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static const VMStateDescription vmstate_bcm2835_gpio = {
@@ -267,7 +267,7 @@ static const MemoryRegionOps imx_gpio_ops = {
.write = imx_gpio_write,
.valid.min_access_size = 4,
.valid.max_access_size = 4,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static const VMStateDescription vmstate_imx_gpio = {
@@ -180,7 +180,7 @@ static void mpc8xxx_gpio_set_irq(void * opaque, int irq, int level)
static const MemoryRegionOps mpc8xxx_gpio_ops = {
.read = mpc8xxx_gpio_read,
.write = mpc8xxx_gpio_write,
- .endianness = DEVICE_BIG_ENDIAN,
+ .endianness = MO_BE,
};
static void mpc8xxx_gpio_initfn(Object *obj)
@@ -225,7 +225,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,
};
@@ -177,7 +177,7 @@ static void omap_gpio_write(void *opaque, hwaddr addr,
static const MemoryRegionOps omap_gpio_ops = {
.read = omap_gpio_read,
.write = omap_gpio_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void omap_gpio_reset(struct omap_gpio_s *s)
@@ -592,7 +592,7 @@ static const MemoryRegionOps omap2_gpio_module_ops = {
.write = omap2_gpio_module_writep,
.valid.min_access_size = 1,
.valid.max_access_size = 4,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void omap_gpif_reset(DeviceState *dev)
@@ -675,7 +675,7 @@ static void omap2_gpif_top_write(void *opaque, hwaddr addr,
static const MemoryRegionOps omap2_gpif_top_ops = {
.read = omap2_gpif_top_read,
.write = omap2_gpif_top_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void omap_gpio_init(Object *obj)
@@ -339,7 +339,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)
@@ -98,7 +98,7 @@ static const MemoryRegionOps puv3_gpio_ops = {
.min_access_size = 4,
.max_access_size = 4,
},
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void puv3_gpio_realize(DeviceState *dev, Error **errp)
@@ -156,7 +156,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)
@@ -309,7 +309,7 @@ static MemTxResult dino_chip_write_with_attrs(void *opaque, hwaddr addr,
static const MemoryRegionOps dino_chip_ops = {
.read_with_attrs = dino_chip_read_with_attrs,
.write_with_attrs = dino_chip_write_with_attrs,
- .endianness = DEVICE_BIG_ENDIAN,
+ .endianness = MO_BE,
.valid = {
.min_access_size = 1,
.max_access_size = 4,
@@ -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)
@@ -378,7 +378,7 @@ static const MemoryRegionOps dino_config_addr_ops = {
.write = dino_config_addr_write,
.valid.min_access_size = 4,
.valid.max_access_size = 4,
- .endianness = DEVICE_BIG_ENDIAN,
+ .endianness = MO_BE,
};
static AddressSpace *dino_pcihost_set_iommu(PCIBus *bus, void *opaque,
@@ -113,7 +113,7 @@ static void machine_hppa_init(MachineState *machine)
if (serial_hd(0)) {
uint32_t addr = DINO_UART_HPA + 0x800;
serial_mm_init(addr_space, addr, 0, serial_irq,
- 115200, serial_hd(0), DEVICE_BIG_ENDIAN);
+ 115200, serial_hd(0), MO_BE);
}
/* SCSI disk setup. */
@@ -24,7 +24,7 @@ static void ignore_write(void *opaque, hwaddr addr, uint64_t v, unsigned size)
const MemoryRegionOps hppa_pci_ignore_ops = {
.read = ignore_read,
.write = ignore_write,
- .endianness = DEVICE_BIG_ENDIAN,
+ .endianness = MO_BE,
.valid = {
.min_access_size = 1,
.max_access_size = 8,
@@ -54,7 +54,7 @@ static void bw_conf1_write(void *opaque, hwaddr addr,
const MemoryRegionOps hppa_pci_conf1_ops = {
.read = bw_conf1_read,
.write = bw_conf1_write,
- .endianness = DEVICE_BIG_ENDIAN,
+ .endianness = MO_BE,
.impl = {
.min_access_size = 1,
.max_access_size = 4,
@@ -77,7 +77,7 @@ static void special_write(void *opaque, hwaddr addr,
const MemoryRegionOps hppa_pci_iack_ops = {
.read = iack_read,
.write = special_write,
- .endianness = DEVICE_BIG_ENDIAN,
+ .endianness = MO_BE,
.valid = {
.min_access_size = 4,
.max_access_size = 4,
@@ -288,7 +288,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)
@@ -364,13 +364,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 = {
@@ -264,7 +264,7 @@ static void exynos4210_i2c_write(void *opaque, hwaddr offset,
static const MemoryRegionOps exynos4210_i2c_ops = {
.read = exynos4210_i2c_read,
.write = exynos4210_i2c_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static const VMStateDescription exynos4210_i2c_vmstate = {
@@ -276,7 +276,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 = {
@@ -70,7 +70,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,
};
@@ -304,7 +304,7 @@ static const MemoryRegionOps i2c_ops = {
.read = mpc_i2c_read,
.write = mpc_i2c_write,
.valid.max_access_size = 1,
- .endianness = DEVICE_BIG_ENDIAN,
+ .endianness = MO_BE,
};
static const VMStateDescription mpc_i2c_vmstate = {
@@ -469,7 +469,7 @@ static const MemoryRegionOps omap_i2c_ops = {
.write = omap_i2c_writefn,
.valid.min_access_size = 1,
.valid.max_access_size = 4,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void omap_i2c_init(Object *obj)
@@ -451,7 +451,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)
@@ -335,7 +335,7 @@ static const MemoryRegionOps ppc4xx_i2c_ops = {
.valid.max_access_size = 4,
.impl.min_access_size = 1,
.impl.max_access_size = 1,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void ppc4xx_i2c_init(Object *o)
@@ -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)
@@ -1378,7 +1378,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,
@@ -1452,7 +1452,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,
@@ -2993,7 +2993,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,
@@ -3270,7 +3270,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,
@@ -207,7 +207,7 @@ static void kvm_apic_mem_write(void *opaque, hwaddr addr,
static const MemoryRegionOps kvm_apic_io_ops = {
.read = kvm_apic_mem_read,
.write = kvm_apic_mem_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void kvm_apic_reset(APICCommonState *s)
@@ -717,7 +717,7 @@ static uint64_t vapic_read(void *opaque, hwaddr addr, unsigned size)
static const MemoryRegionOps vapic_ops = {
.write = vapic_write,
.read = vapic_read,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void vapic_realize(DeviceState *dev, Error **errp)
@@ -813,7 +813,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)
@@ -1985,7 +1985,7 @@ DeviceState *pc_vga_init(ISABus *isa_bus, PCIBus *pci_bus)
static const MemoryRegionOps ioport80_io_ops = {
.write = ioport80_write,
.read = ioport80_read,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.impl = {
.min_access_size = 1,
.max_access_size = 1,
@@ -1995,7 +1995,7 @@ static const MemoryRegionOps ioport80_io_ops = {
static const MemoryRegionOps ioportF0_io_ops = {
.write = ioportF0_write,
.read = ioportF0_read,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.impl = {
.min_access_size = 1,
.max_access_size = 1,
@@ -139,7 +139,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)
@@ -36,7 +36,7 @@ static void xen_apic_mem_write(void *opaque, hwaddr addr,
static const MemoryRegionOps xen_apic_io_ops = {
.read = xen_apic_mem_read,
.write = xen_apic_mem_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void xen_apic_realize(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)
@@ -427,7 +427,7 @@ static void platform_mmio_write(void *opaque, hwaddr addr,
static const MemoryRegionOps platform_mmio_handler = {
.read = &platform_mmio_read,
.write = &platform_mmio_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void platform_mmio_setup(PCIXenPlatformState *d)
@@ -69,7 +69,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)
@@ -521,7 +521,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,
@@ -557,7 +557,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,
};
@@ -351,7 +351,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 = {
@@ -84,7 +84,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,
@@ -104,7 +104,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)
@@ -208,7 +208,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 */
@@ -127,7 +127,7 @@ softusb_write(void *opaque, hwaddr addr, uint64_t value,
static const MemoryRegionOps softusb_mmio_ops = {
.read = softusb_read,
.write = softusb_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid = {
.min_access_size = 4,
.max_access_size = 4,
@@ -456,7 +456,7 @@ static const MemoryRegionOps i8042_mmio_ops = {
.write = kbd_mm_writefn,
.valid.min_access_size = 1,
.valid.max_access_size = 4,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
void i8042_mm_init(qemu_irq kbd_irq, qemu_irq mouse_irq,
@@ -518,7 +518,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 = {
@@ -528,7 +528,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)
@@ -137,7 +137,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)
@@ -285,7 +285,7 @@ static void pxa2xx_keypad_write(void *opaque, hwaddr offset,
static const MemoryRegionOps pxa2xx_keypad_ops = {
.read = pxa2xx_keypad_read,
.write = pxa2xx_keypad_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static const VMStateDescription vmstate_pxa2xx_keypad = {
@@ -137,7 +137,7 @@ static void aw_a10_pic_write(void *opaque, hwaddr offset, uint64_t value,
static const MemoryRegionOps aw_a10_pic_ops = {
.read = aw_a10_pic_read,
.write = aw_a10_pic_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static const VMStateDescription vmstate_aw_a10_pic = {
@@ -878,7 +878,7 @@ static const MemoryRegionOps apic_io_ops = {
.impl.max_access_size = 4,
.valid.min_access_size = 1,
.valid.max_access_size = 4,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void apic_realize(DeviceState *dev, Error **errp)
@@ -1999,38 +1999,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)
@@ -126,7 +126,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,
}
};
@@ -95,7 +95,7 @@ static MemTxResult gicv3_its_trans_write(void *opaque, hwaddr offset,
static const MemoryRegionOps gicv3_its_trans_ops = {
.read_with_attrs = gicv3_its_trans_read,
.write_with_attrs = gicv3_its_trans_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
void gicv3_its_init_mmio(GICv3ITSState *s, const MemoryRegionOps *ops)
@@ -2334,7 +2334,7 @@ static MemTxResult nvic_sysreg_write(void *opaque, hwaddr addr,
static const MemoryRegionOps nvic_sysreg_ops = {
.read_with_attrs = nvic_sysreg_read,
.write_with_attrs = nvic_sysreg_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static MemTxResult nvic_sysreg_ns_write(void *opaque, hwaddr addr,
@@ -2381,7 +2381,7 @@ static MemTxResult nvic_sysreg_ns_read(void *opaque, hwaddr addr,
static const MemoryRegionOps nvic_sysreg_ns_ops = {
.read_with_attrs = nvic_sysreg_ns_read,
.write_with_attrs = nvic_sysreg_ns_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static MemTxResult nvic_systick_write(void *opaque, hwaddr addr,
@@ -2412,7 +2412,7 @@ static MemTxResult nvic_systick_read(void *opaque, hwaddr addr,
static const MemoryRegionOps nvic_systick_ops = {
.read_with_attrs = nvic_systick_read,
.write_with_attrs = nvic_systick_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static int nvic_post_load(void *opaque, int version_id)
@@ -283,7 +283,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,
@@ -168,7 +168,7 @@ static void bcm2835_ic_write(void *opaque, hwaddr offset, uint64_t val,
static const MemoryRegionOps bcm2835_ic_ops = {
.read = bcm2835_ic_read,
.write = bcm2835_ic_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid.min_access_size = 4,
.valid.max_access_size = 4,
};
@@ -302,7 +302,7 @@ static void bcm2836_control_write(void *opaque, hwaddr offset,
static const MemoryRegionOps bcm2836_control_ops = {
.read = bcm2836_control_read,
.write = bcm2836_control_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid.min_access_size = 4,
.valid.max_access_size = 4,
};
@@ -111,7 +111,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
@@ -401,7 +401,7 @@ static void exynos4210_combiner_reset(DeviceState *d)
static const MemoryRegionOps exynos4210_combiner_ops = {
.read = exynos4210_combiner_read,
.write = exynos4210_combiner_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
/*
@@ -313,7 +313,7 @@ static void grlib_irqmp_write(void *opaque, hwaddr addr,
static const MemoryRegionOps grlib_irqmp_ops = {
.read = grlib_irqmp_read,
.write = grlib_irqmp_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid = {
.min_access_size = 4,
.max_access_size = 4,
@@ -109,7 +109,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)
@@ -308,7 +308,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)
@@ -64,7 +64,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
@@ -403,7 +403,7 @@ ioapic_mem_write(void *opaque, hwaddr addr, uint64_t val,
static const MemoryRegionOps ioapic_io_ops = {
.read = ioapic_mem_read,
.write = ioapic_mem_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void ioapic_machine_done_notify(Notifier *notifier, void *data)
@@ -385,7 +385,7 @@ static void gic_reset(void *opaque)
static const MemoryRegionOps gic_ops = {
.read = gic_read,
.write = gic_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.impl = {
.max_access_size = 8,
},
@@ -330,7 +330,7 @@ static void omap_inth_write(void *opaque, hwaddr addr,
static const MemoryRegionOps omap_inth_mem_ops = {
.read = omap_inth_read,
.write = omap_inth_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid = {
.min_access_size = 4,
.max_access_size = 4,
@@ -606,7 +606,7 @@ static void omap2_inth_write(void *opaque, hwaddr addr,
static const MemoryRegionOps omap2_inth_mem_ops = {
.read = omap2_inth_read,
.write = omap2_inth_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid = {
.min_access_size = 4,
.max_access_size = 4,
@@ -95,7 +95,7 @@ static void ompic_write(void *opaque, hwaddr addr, uint64_t data, unsigned size)
static const MemoryRegionOps ompic_ops = {
.read = ompic_read,
.write = ompic_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.impl = {
.max_access_size = 8,
},
@@ -1148,7 +1148,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,
@@ -1158,7 +1158,7 @@ static const MemoryRegionOps openpic_glb_ops_le = {
static const MemoryRegionOps openpic_glb_ops_be = {
.write = openpic_gbl_write,
.read = openpic_gbl_read,
- .endianness = DEVICE_BIG_ENDIAN,
+ .endianness = MO_BE,
.impl = {
.min_access_size = 4,
.max_access_size = 4,
@@ -1168,7 +1168,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,
@@ -1178,7 +1178,7 @@ static const MemoryRegionOps openpic_tmr_ops_le = {
static const MemoryRegionOps openpic_tmr_ops_be = {
.write = openpic_tmr_write,
.read = openpic_tmr_read,
- .endianness = DEVICE_BIG_ENDIAN,
+ .endianness = MO_BE,
.impl = {
.min_access_size = 4,
.max_access_size = 4,
@@ -1188,7 +1188,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,
@@ -1198,7 +1198,7 @@ static const MemoryRegionOps openpic_cpu_ops_le = {
static const MemoryRegionOps openpic_cpu_ops_be = {
.write = openpic_cpu_write,
.read = openpic_cpu_read,
- .endianness = DEVICE_BIG_ENDIAN,
+ .endianness = MO_BE,
.impl = {
.min_access_size = 4,
.max_access_size = 4,
@@ -1208,7 +1208,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,
@@ -1218,7 +1218,7 @@ static const MemoryRegionOps openpic_src_ops_le = {
static const MemoryRegionOps openpic_src_ops_be = {
.write = openpic_src_write,
.read = openpic_src_read,
- .endianness = DEVICE_BIG_ENDIAN,
+ .endianness = MO_BE,
.impl = {
.min_access_size = 4,
.max_access_size = 4,
@@ -1228,7 +1228,7 @@ static const MemoryRegionOps openpic_src_ops_be = {
static const MemoryRegionOps openpic_msi_ops_be = {
.read = openpic_msi_read,
.write = openpic_msi_write,
- .endianness = DEVICE_BIG_ENDIAN,
+ .endianness = MO_BE,
.impl = {
.min_access_size = 4,
.max_access_size = 4,
@@ -1238,7 +1238,7 @@ static const MemoryRegionOps openpic_msi_ops_be = {
static const MemoryRegionOps openpic_summary_ops_be = {
.read = openpic_summary_read,
.write = openpic_summary_write,
- .endianness = DEVICE_BIG_ENDIAN,
+ .endianness = MO_BE,
.impl = {
.min_access_size = 4,
.max_access_size = 4,
@@ -109,7 +109,7 @@ static uint64_t kvm_openpic_read(void *opaque, hwaddr addr, unsigned size)
static const MemoryRegionOps kvm_openpic_mem_ops = {
.write = kvm_openpic_write,
.read = kvm_openpic_read,
- .endianness = DEVICE_BIG_ENDIAN,
+ .endianness = MO_BE,
.impl = {
.min_access_size = 4,
.max_access_size = 4,
@@ -220,7 +220,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)
@@ -1186,7 +1186,7 @@ static uint64_t pnv_xive_ic_reg_read(void *opaque, hwaddr offset, unsigned size)
static const MemoryRegionOps pnv_xive_ic_reg_ops = {
.read = pnv_xive_ic_reg_read,
.write = pnv_xive_ic_reg_write,
- .endianness = DEVICE_BIG_ENDIAN,
+ .endianness = MO_BE,
.valid = {
.min_access_size = 8,
.max_access_size = 8,
@@ -1285,7 +1285,7 @@ static uint64_t pnv_xive_ic_notify_read(void *opaque, hwaddr addr,
static const MemoryRegionOps pnv_xive_ic_notify_ops = {
.read = pnv_xive_ic_notify_read,
.write = pnv_xive_ic_notify_write,
- .endianness = DEVICE_BIG_ENDIAN,
+ .endianness = MO_BE,
.valid = {
.min_access_size = 8,
.max_access_size = 8,
@@ -1319,7 +1319,7 @@ static uint64_t pnv_xive_ic_lsi_read(void *opaque, hwaddr addr, unsigned size)
static const MemoryRegionOps pnv_xive_ic_lsi_ops = {
.read = pnv_xive_ic_lsi_read,
.write = pnv_xive_ic_lsi_write,
- .endianness = DEVICE_BIG_ENDIAN,
+ .endianness = MO_BE,
.valid = {
.min_access_size = 8,
.max_access_size = 8,
@@ -1384,7 +1384,7 @@ static uint64_t xive_tm_indirect_read(void *opaque, hwaddr offset,
static const MemoryRegionOps xive_tm_indirect_ops = {
.read = xive_tm_indirect_read,
.write = xive_tm_indirect_write,
- .endianness = DEVICE_BIG_ENDIAN,
+ .endianness = MO_BE,
.valid = {
.min_access_size = 1,
.max_access_size = 8,
@@ -1418,7 +1418,7 @@ static void pnv_xive_xscom_write(void *opaque, hwaddr addr,
static const MemoryRegionOps pnv_xive_xscom_ops = {
.read = pnv_xive_xscom_read,
.write = pnv_xive_xscom_write,
- .endianness = DEVICE_BIG_ENDIAN,
+ .endianness = MO_BE,
.valid = {
.min_access_size = 8,
.max_access_size = 8,
@@ -1514,7 +1514,7 @@ static void pnv_xive_vc_write(void *opaque, hwaddr offset,
static const MemoryRegionOps pnv_xive_vc_ops = {
.read = pnv_xive_vc_read,
.write = pnv_xive_vc_write,
- .endianness = DEVICE_BIG_ENDIAN,
+ .endianness = MO_BE,
.valid = {
.min_access_size = 8,
.max_access_size = 8,
@@ -1549,7 +1549,7 @@ static void pnv_xive_pc_write(void *opaque, hwaddr addr,
static const MemoryRegionOps pnv_xive_pc_ops = {
.read = pnv_xive_pc_read,
.write = pnv_xive_pc_write,
- .endianness = DEVICE_BIG_ENDIAN,
+ .endianness = MO_BE,
.valid = {
.min_access_size = 8,
.max_access_size = 8,
@@ -100,7 +100,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)
@@ -289,7 +289,7 @@ static void sh_intc_write(void *opaque, hwaddr offset,
static const MemoryRegionOps sh_intc_ops = {
.read = sh_intc_read,
.write = sh_intc_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
struct intc_source *sh_intc_source(struct intc_desc *desc, intc_enum id)
@@ -134,7 +134,7 @@ static void slavio_intctl_mem_writel(void *opaque, hwaddr addr,
static const MemoryRegionOps slavio_intctl_mem_ops = {
.read = slavio_intctl_mem_readl,
.write = slavio_intctl_mem_writel,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid = {
.min_access_size = 4,
.max_access_size = 4,
@@ -204,7 +204,7 @@ static void slavio_intctlm_mem_writel(void *opaque, hwaddr addr,
static const MemoryRegionOps slavio_intctlm_mem_ops = {
.read = slavio_intctlm_mem_readl,
.write = slavio_intctlm_mem_writel,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid = {
.min_access_size = 4,
.max_access_size = 4,
@@ -149,7 +149,7 @@ bad_access:
static const MemoryRegionOps pnv_icp_ops = {
.read = pnv_icp_read,
.write = pnv_icp_write,
- .endianness = DEVICE_BIG_ENDIAN,
+ .endianness = MO_BE,
.valid = {
.min_access_size = 1,
.max_access_size = 4,
@@ -142,7 +142,7 @@ pic_write(void *opaque, hwaddr addr,
static const MemoryRegionOps pic_ops = {
.read = pic_read,
.write = pic_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid = {
.min_access_size = 4,
.max_access_size = 4
@@ -479,7 +479,7 @@ static uint64_t xive_tm_read(void *opaque, hwaddr offset, unsigned size)
const MemoryRegionOps xive_tm_ops = {
.read = xive_tm_read,
.write = xive_tm_write,
- .endianness = DEVICE_BIG_ENDIAN,
+ .endianness = MO_BE,
.valid = {
.min_access_size = 1,
.max_access_size = 8,
@@ -969,7 +969,7 @@ out:
static const MemoryRegionOps xive_source_esb_ops = {
.read = xive_source_esb_read,
.write = xive_source_esb_write,
- .endianness = DEVICE_BIG_ENDIAN,
+ .endianness = MO_BE,
.valid = {
.min_access_size = 8,
.max_access_size = 8,
@@ -1664,7 +1664,7 @@ static void xive_end_source_write(void *opaque, hwaddr addr,
static const MemoryRegionOps xive_end_source_ops = {
.read = xive_end_source_read,
.write = xive_end_source_write,
- .endianness = DEVICE_BIG_ENDIAN,
+ .endianness = MO_BE,
.valid = {
.min_access_size = 8,
.max_access_size = 8,
@@ -464,7 +464,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,
@@ -295,7 +295,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,
@@ -524,7 +524,7 @@ static void tpci200_write_las3(void *opaque, hwaddr addr, uint64_t val,
static const MemoryRegionOps tpci200_cfg_ops = {
.read = tpci200_read_cfg,
.write = tpci200_write_cfg,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid = {
.min_access_size = 1,
.max_access_size = 4
@@ -538,7 +538,7 @@ static const MemoryRegionOps tpci200_cfg_ops = {
static const MemoryRegionOps tpci200_las0_ops = {
.read = tpci200_read_las0,
.write = tpci200_write_las0,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid = {
.min_access_size = 2,
.max_access_size = 2
@@ -548,7 +548,7 @@ static const MemoryRegionOps tpci200_las0_ops = {
static const MemoryRegionOps tpci200_las1_ops = {
.read = tpci200_read_las1,
.write = tpci200_write_las1,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid = {
.min_access_size = 1,
.max_access_size = 2
@@ -558,7 +558,7 @@ static const MemoryRegionOps tpci200_las1_ops = {
static const MemoryRegionOps tpci200_las2_ops = {
.read = tpci200_read_las2,
.write = tpci200_write_las2,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid = {
.min_access_size = 1,
.max_access_size = 2
@@ -568,7 +568,7 @@ static const MemoryRegionOps tpci200_las2_ops = {
static const MemoryRegionOps tpci200_las3_ops = {
.read = tpci200_read_las3,
.write = tpci200_write_las3,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid = {
.min_access_size = 1,
.max_access_size = 1
@@ -320,7 +320,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)
@@ -313,7 +313,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)
@@ -569,7 +569,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)
@@ -620,7 +620,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,
@@ -265,7 +265,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,
@@ -108,7 +108,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,
@@ -548,7 +548,7 @@ static const MemoryRegionOps m5206_mbar_ops = {
.write = m5206_mbar_writefn,
.valid.min_access_size = 1,
.valid.max_access_size = 4,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
qemu_irq *mcf5206_init(MemoryRegion *sysmem, uint32_t base, M68kCPU *cpu)
@@ -138,7 +138,7 @@ static uint64_t m5208_timer_read(void *opaque, hwaddr addr,
static const MemoryRegionOps m5208_timer_ops = {
.read = m5208_timer_read,
.write = m5208_timer_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static uint64_t m5208_sys_read(void *opaque, hwaddr addr,
@@ -172,7 +172,7 @@ static void m5208_sys_write(void *opaque, hwaddr addr,
static const MemoryRegionOps m5208_sys_ops = {
.read = m5208_sys_read,
.write = m5208_sys_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void mcf5208_sys_init(MemoryRegion *address_space, qemu_irq *pic)
@@ -159,7 +159,7 @@ static void mcf_intc_reset(DeviceState *dev)
static const MemoryRegionOps mcf_intc_ops = {
.read = mcf_intc_read,
.write = mcf_intc_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void mcf_intc_instance_init(Object *obj)
@@ -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");
@@ -165,7 +165,7 @@ static void boston_lcd_write(void *opaque, hwaddr addr,
static const MemoryRegionOps boston_lcd_ops = {
.read = boston_lcd_read,
.write = boston_lcd_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static uint64_t boston_platreg_read(void *opaque, hwaddr addr,
@@ -244,7 +244,7 @@ static void boston_platreg_write(void *opaque, hwaddr addr,
static const MemoryRegionOps boston_platreg_ops = {
.read = boston_platreg_read,
.write = boston_platreg_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static const TypeInfo boston_device = {
@@ -504,7 +504,7 @@ static void boston_mach_init(MachineState *machine)
s->uart = serial_mm_init(sys_mem, 0x17ffe000, 2,
get_cps_irq(&s->cps, 3), 10000000,
- serial_hd(0), DEVICE_NATIVE_ENDIAN);
+ serial_hd(0), MO_TE);
lcd = g_new(MemoryRegion, 1);
memory_region_init_io(lcd, NULL, &boston_lcd_ops, s, "boston-lcd", 0x8);
@@ -972,7 +972,7 @@ static uint64_t gt64120_readl(void *opaque,
static const MemoryRegionOps isd_mem_ops = {
.read = gt64120_readl,
.write = gt64120_writel,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static int gt64120_pci_map_irq(PCIDevice *pci_dev, int irq_num)
@@ -84,7 +84,7 @@ static void rtc_write(void *opaque, hwaddr addr,
static const MemoryRegionOps rtc_ops = {
.read = rtc_read,
.write = rtc_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static uint64_t dma_dummy_read(void *opaque, hwaddr addr,
@@ -105,7 +105,7 @@ static void dma_dummy_write(void *opaque, hwaddr addr,
static const MemoryRegionOps dma_dummy_ops = {
.read = dma_dummy_read,
.write = dma_dummy_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
#define MAGNUM_BIOS_SIZE_MAX 0x7e000
@@ -320,12 +320,12 @@ static void mips_jazz_init(MachineState *machine,
if (serial_hd(0)) {
serial_mm_init(address_space, 0x80006000, 0,
qdev_get_gpio_in(rc4030, 8), 8000000/16,
- serial_hd(0), DEVICE_NATIVE_ENDIAN);
+ serial_hd(0), MO_TE);
}
if (serial_hd(1)) {
serial_mm_init(address_space, 0x80007000, 0,
qdev_get_gpio_in(rc4030, 9), 8000000/16,
- serial_hd(1), DEVICE_NATIVE_ENDIAN);
+ serial_hd(1), MO_TE);
}
/* Parallel port */
@@ -511,7 +511,7 @@ static void malta_fpga_write(void *opaque, hwaddr addr,
static const MemoryRegionOps malta_fpga_ops = {
.read = malta_fpga_read,
.write = malta_fpga_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void malta_fpga_reset(void *opaque)
@@ -572,7 +572,7 @@ static MaltaFPGAState *malta_fpga_init(MemoryRegion *address_space,
malta_fgpa_display_event, NULL, s, NULL, true);
s->uart = serial_mm_init(address_space, base + 0x900, 3, uart_irq,
- 230400, uart_chr, DEVICE_NATIVE_ENDIAN);
+ 230400, uart_chr, MO_TE);
malta_fpga_reset(s);
qemu_register_reset(malta_fpga_reset, s);
@@ -70,7 +70,7 @@ static uint64_t mips_qemu_read (void *opaque, hwaddr addr,
static const MemoryRegionOps mips_qemu_ops = {
.read = mips_qemu_read,
.write = mips_qemu_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
typedef struct ResetData {
@@ -94,7 +94,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,
@@ -57,7 +57,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)
@@ -73,7 +73,7 @@ static void intdbg_control_write(void *opaque, hwaddr offset,
static const MemoryRegionOps intdbg_control_ops = {
.read = intdbg_control_read,
.write = intdbg_control_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void intdbg_control_init(Object *obj)
@@ -157,7 +157,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)
@@ -561,7 +561,7 @@ static void arm_sysctl_write(void *opaque, hwaddr offset,
static const MemoryRegionOps arm_sysctl_ops = {
.read = arm_sysctl_read,
.write = arm_sysctl_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void arm_sysctl_gpio_set(void *opaque, int line, int level)
@@ -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,
@@ -139,7 +139,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,
};
@@ -276,7 +276,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,
@@ -169,7 +169,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,
};
@@ -106,7 +106,7 @@ static void aspeed_xdma_write(void *opaque, hwaddr addr, uint64_t val,
static const MemoryRegionOps aspeed_xdma_ops = {
.read = aspeed_xdma_read,
.write = aspeed_xdma_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid.min_access_size = 4,
.valid.max_access_size = 4,
};
@@ -237,7 +237,7 @@ static void bcm2835_mbox_write(void *opaque, hwaddr offset,
static const MemoryRegionOps bcm2835_mbox_ops = {
.read = bcm2835_mbox_read,
.write = bcm2835_mbox_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid.min_access_size = 4,
.valid.max_access_size = 4,
};
@@ -343,7 +343,7 @@ static void bcm2835_property_write(void *opaque, hwaddr offset,
static const MemoryRegionOps bcm2835_property_ops = {
.read = bcm2835_property_read,
.write = bcm2835_property_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid.min_access_size = 4,
.valid.max_access_size = 4,
};
@@ -91,7 +91,7 @@ static void bcm2835_rng_write(void *opaque, hwaddr offset,
static const MemoryRegionOps bcm2835_rng_ops = {
.read = bcm2835_rng_read,
.write = bcm2835_rng_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static const VMStateDescription vmstate_bcm2835_rng = {
@@ -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)
@@ -228,7 +228,7 @@ static uint64_t ecc_mem_read(void *opaque, hwaddr addr,
static const MemoryRegionOps ecc_mem_ops = {
.read = ecc_mem_read,
.write = ecc_mem_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid = {
.min_access_size = 4,
.max_access_size = 4,
@@ -257,7 +257,7 @@ static uint64_t ecc_diag_mem_read(void *opaque, hwaddr addr,
static const MemoryRegionOps ecc_diag_mem_ops = {
.read = ecc_diag_mem_read,
.write = ecc_diag_mem_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid = {
.min_access_size = 1,
.max_access_size = 1,
@@ -294,7 +294,7 @@ static void edu_mmio_write(void *opaque, hwaddr addr, uint64_t val,
static const MemoryRegionOps edu_mmio_ops = {
.read = edu_mmio_read,
.write = edu_mmio_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid = {
.min_access_size = 4,
.max_access_size = 8,
@@ -100,7 +100,7 @@ static void exynos4210_clk_write(void *opaque, hwaddr offset,
static const MemoryRegionOps exynos4210_clk_ops = {
.read = exynos4210_clk_read,
.write = exynos4210_clk_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid = {
.min_access_size = 4,
.max_access_size = 4,
@@ -457,7 +457,7 @@ static void exynos4210_pmu_write(void *opaque, hwaddr offset,
static const MemoryRegionOps exynos4210_pmu_ops = {
.read = exynos4210_pmu_read,
.write = exynos4210_pmu_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid = {
.min_access_size = 4,
.max_access_size = 4,
@@ -215,7 +215,7 @@ static void exynos4210_rng_write(void *opaque, hwaddr offset,
static const MemoryRegionOps exynos4210_rng_ops = {
.read = exynos4210_rng_read,
.write = exynos4210_rng_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void exynos4210_rng_reset(DeviceState *dev)
@@ -137,7 +137,7 @@ static uint64_t grlib_ahb_pnp_read(void *opaque, hwaddr offset, unsigned size)
static const MemoryRegionOps grlib_ahb_pnp_ops = {
.read = grlib_ahb_pnp_read,
- .endianness = DEVICE_BIG_ENDIAN,
+ .endianness = MO_BE,
};
static void grlib_ahb_pnp_realize(DeviceState *dev, Error **errp)
@@ -233,7 +233,7 @@ static uint64_t grlib_apb_pnp_read(void *opaque, hwaddr offset, unsigned size)
static const MemoryRegionOps grlib_apb_pnp_ops = {
.read = grlib_apb_pnp_read,
- .endianness = DEVICE_BIG_ENDIAN,
+ .endianness = MO_BE,
};
static void grlib_apb_pnp_realize(DeviceState *dev, Error **errp)
@@ -266,7 +266,7 @@ static void imx25_ccm_write(void *opaque, hwaddr offset, uint64_t value,
static const struct MemoryRegionOps imx25_ccm_ops = {
.read = imx25_ccm_read,
.write = imx25_ccm_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid = {
/*
* Our device would not work correctly if the guest was doing
@@ -37,7 +37,7 @@ static void imx2_wdt_write(void *opaque, hwaddr addr,
static const MemoryRegionOps imx2_wdt_ops = {
.read = imx2_wdt_read,
.write = imx2_wdt_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.impl = {
/*
* Our device would not work correctly if the guest was doing
@@ -292,7 +292,7 @@ static void imx31_ccm_write(void *opaque, hwaddr offset, uint64_t value,
static const struct MemoryRegionOps imx31_ccm_ops = {
.read = imx31_ccm_read,
.write = imx31_ccm_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid = {
/*
* Our device would not work correctly if the guest was doing
@@ -696,7 +696,7 @@ static void imx6_analog_write(void *opaque, hwaddr offset, uint64_t value,
static const struct MemoryRegionOps imx6_ccm_ops = {
.read = imx6_ccm_read,
.write = imx6_ccm_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid = {
/*
* Our device would not work correctly if the guest was doing
@@ -713,7 +713,7 @@ static const struct MemoryRegionOps imx6_ccm_ops = {
static const struct MemoryRegionOps imx6_analog_ops = {
.read = imx6_analog_read,
.write = imx6_analog_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid = {
/*
* Our device would not work correctly if the guest was doing
@@ -262,7 +262,7 @@ static void imx6_src_write(void *opaque, hwaddr offset, uint64_t value,
static const struct MemoryRegionOps imx6_src_ops = {
.read = imx6_src_read,
.write = imx6_src_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid = {
/*
* Our device would not work correctly if the guest was doing
@@ -801,7 +801,7 @@ static void imx6ul_analog_write(void *opaque, hwaddr offset, uint64_t value,
static const struct MemoryRegionOps imx6ul_ccm_ops = {
.read = imx6ul_ccm_read,
.write = imx6ul_ccm_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid = {
/*
* Our device would not work correctly if the guest was doing
@@ -818,7 +818,7 @@ static const struct MemoryRegionOps imx6ul_ccm_ops = {
static const struct MemoryRegionOps imx6ul_analog_ops = {
.read = imx6ul_analog_read,
.write = imx6ul_analog_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid = {
/*
* Our device would not work correctly if the guest was doing
@@ -116,7 +116,7 @@ static void imx7_set_clr_tog_write(void *opaque, hwaddr offset,
static const struct MemoryRegionOps imx7_set_clr_tog_ops = {
.read = imx7_set_clr_tog_read,
.write = imx7_set_clr_tog_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.impl = {
/*
* Our device would not work correctly if the guest was doing
@@ -132,7 +132,7 @@ static const struct MemoryRegionOps imx7_set_clr_tog_ops = {
static const struct MemoryRegionOps imx7_digprog_ops = {
.read = imx7_set_clr_tog_read,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.impl = {
.min_access_size = 4,
.max_access_size = 4,
@@ -79,7 +79,7 @@ static void imx7_gpr_write(void *opaque, hwaddr offset,
static const struct MemoryRegionOps imx7_gpr_ops = {
.read = imx7_gpr_read,
.write = imx7_gpr_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.impl = {
/*
* Our device would not work correctly if the guest was doing
@@ -37,7 +37,7 @@ static void imx7_snvs_write(void *opaque, hwaddr offset,
static const struct MemoryRegionOps imx7_snvs_ops = {
.read = imx7_snvs_read,
.write = imx7_snvs_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.impl = {
/*
* Our device would not work correctly if the guest was doing
@@ -560,7 +560,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,
@@ -570,7 +570,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,
@@ -388,7 +388,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,
@@ -275,7 +275,7 @@ static uint64_t ivshmem_io_read(void *opaque, hwaddr addr,
static const MemoryRegionOps ivshmem_mmio_ops = {
.read = ivshmem_io_read,
.write = ivshmem_io_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.impl = {
.min_access_size = 4,
.max_access_size = 4,
@@ -477,7 +477,7 @@ static void mos6522_cuda_write(void *opaque, hwaddr addr, uint64_t val,
static const MemoryRegionOps mos6522_cuda_ops = {
.read = mos6522_cuda_read,
.write = mos6522_cuda_write,
- .endianness = DEVICE_BIG_ENDIAN,
+ .endianness = MO_BE,
.valid = {
.min_access_size = 1,
.max_access_size = 1,
@@ -144,7 +144,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,
@@ -793,7 +793,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,
@@ -284,7 +284,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)
@@ -664,7 +664,7 @@ static void mos6522_pmu_write(void *opaque, hwaddr addr, uint64_t val,
static const MemoryRegionOps mos6522_pmu_ops = {
.read = mos6522_pmu_read,
.write = mos6522_pmu_write,
- .endianness = DEVICE_BIG_ENDIAN,
+ .endianness = MO_BE,
.impl = {
.min_access_size = 1,
.max_access_size = 1,
@@ -113,7 +113,7 @@ static const MemoryRegionOps hpdmc_mmio_ops = {
.min_access_size = 4,
.max_access_size = 4,
},
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void milkymist_hpdmc_reset(DeviceState *d)
@@ -475,7 +475,7 @@ static const MemoryRegionOps pfpu_mmio_ops = {
.min_access_size = 4,
.max_access_size = 4,
},
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void milkymist_pfpu_reset(DeviceState *d)
@@ -170,7 +170,7 @@ static void gcr_write(void *opaque, hwaddr addr, uint64_t data, unsigned size)
static const MemoryRegionOps gcr_ops = {
.read = gcr_read,
.write = gcr_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.impl = {
.max_access_size = 8,
},
@@ -111,7 +111,7 @@ static uint64_t cpc_read(void *opaque, hwaddr offset, unsigned size)
static const MemoryRegionOps cpc_ops = {
.read = cpc_read,
.write = cpc_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.impl = {
.max_access_size = 8,
},
@@ -141,7 +141,7 @@ static const MemoryRegionOps itc_tag_ops = {
.impl = {
.max_access_size = 8,
},
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static inline uint32_t get_num_cells(MIPSITUState *s)
@@ -482,7 +482,7 @@ static void itc_storage_write(void *opaque, hwaddr addr, uint64_t data,
static const MemoryRegionOps itc_storage_ops = {
.read = itc_storage_read,
.write = itc_storage_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void itc_reset_cells(MIPSITUState *s)
@@ -364,7 +364,7 @@ void mos6522_write(void *opaque, hwaddr addr, uint64_t val, unsigned size)
static const MemoryRegionOps mos6522_ops = {
.read = mos6522_read,
.write = mos6522_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid = {
.min_access_size = 1,
.max_access_size = 1,
@@ -220,7 +220,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)
@@ -215,7 +215,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)
@@ -94,7 +94,7 @@ static void msf2_sysreg_write(void *opaque, hwaddr offset,
static const MemoryRegionOps sysreg_ops = {
.read = msf2_sysreg_read,
.write = msf2_sysreg_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void msf2_sysreg_init(Object *obj)
@@ -189,9 +189,9 @@ mst_fpga_writeb(void *opaque, hwaddr addr, uint64_t value,
}
static const MemoryRegionOps mst_fpga_ops = {
- .read = mst_fpga_readb,
- .write = mst_fpga_writeb,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .read = mst_fpga_readb,
+ .write = mst_fpga_writeb,
+ .endianness = MO_TE,
};
static int mst_fpga_post_load(void *opaque, int version_id)
@@ -137,7 +137,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
};
@@ -212,7 +212,7 @@ static void omap_nand_write(void *opaque, hwaddr addr,
static const MemoryRegionOps omap_nand_ops = {
.read = omap_nand_read,
.write = omap_nand_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void fill_prefetch_fifo(struct omap_gpmc_s *s)
@@ -369,7 +369,7 @@ static void omap_gpmc_prefetch_write(void *opaque, hwaddr addr,
static const MemoryRegionOps omap_prefetch_ops = {
.read = omap_gpmc_prefetch_read,
.write = omap_gpmc_prefetch_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.impl.min_access_size = 1,
.impl.max_access_size = 1,
};
@@ -819,7 +819,7 @@ static void omap_gpmc_write(void *opaque, hwaddr addr,
static const MemoryRegionOps omap_gpmc_ops = {
.read = omap_gpmc_read,
.write = omap_gpmc_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
struct omap_gpmc_s *omap_gpmc_init(struct omap_mpu_state_s *mpu,
@@ -107,7 +107,7 @@ static void omap_l4ta_write(void *opaque, hwaddr addr,
static const MemoryRegionOps omap_l4ta_ops = {
.read = omap_l4ta_read,
.write = omap_l4ta_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
struct omap_target_agent_s *omap_l4ta_get(struct omap_l4_s *bus,
@@ -152,7 +152,7 @@ static void omap_sdrc_write(void *opaque, hwaddr addr,
static const MemoryRegionOps omap_sdrc_ops = {
.read = omap_sdrc_read,
.write = omap_sdrc_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
struct omap_sdrc_s *omap_sdrc_init(MemoryRegion *sysmem,
@@ -106,7 +106,7 @@ static void omap_tap_write(void *opaque, hwaddr addr,
static const MemoryRegionOps omap_tap_ops = {
.read = omap_tap_read,
.write = omap_tap_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
void omap_tap_init(struct omap_target_agent_s *ta,
@@ -78,7 +78,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,
@@ -104,7 +104,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 = {
@@ -114,7 +114,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)
@@ -142,7 +142,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)
@@ -165,7 +165,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,
@@ -118,7 +118,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)
@@ -142,7 +142,7 @@ static uint64_t slavio_cfg_mem_readb(void *opaque, hwaddr addr,
static const MemoryRegionOps slavio_cfg_mem_ops = {
.read = slavio_cfg_mem_readb,
.write = slavio_cfg_mem_writeb,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid = {
.min_access_size = 1,
.max_access_size = 1,
@@ -172,7 +172,7 @@ static uint64_t slavio_diag_mem_readb(void *opaque, hwaddr addr,
static const MemoryRegionOps slavio_diag_mem_ops = {
.read = slavio_diag_mem_readb,
.write = slavio_diag_mem_writeb,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid = {
.min_access_size = 1,
.max_access_size = 1,
@@ -202,7 +202,7 @@ static uint64_t slavio_mdm_mem_readb(void *opaque, hwaddr addr,
static const MemoryRegionOps slavio_mdm_mem_ops = {
.read = slavio_mdm_mem_readb,
.write = slavio_mdm_mem_writeb,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid = {
.min_access_size = 1,
.max_access_size = 1,
@@ -240,7 +240,7 @@ static uint64_t slavio_aux1_mem_readb(void *opaque, hwaddr addr,
static const MemoryRegionOps slavio_aux1_mem_ops = {
.read = slavio_aux1_mem_readb,
.write = slavio_aux1_mem_writeb,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid = {
.min_access_size = 1,
.max_access_size = 1,
@@ -277,7 +277,7 @@ static uint64_t slavio_aux2_mem_readb(void *opaque, hwaddr addr,
static const MemoryRegionOps slavio_aux2_mem_ops = {
.read = slavio_aux2_mem_readb,
.write = slavio_aux2_mem_writeb,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid = {
.min_access_size = 1,
.max_access_size = 1,
@@ -305,7 +305,7 @@ static uint64_t apc_mem_readb(void *opaque, hwaddr addr,
static const MemoryRegionOps apc_mem_ops = {
.read = apc_mem_readb,
.write = apc_mem_writeb,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid = {
.min_access_size = 1,
.max_access_size = 1,
@@ -350,7 +350,7 @@ static void slavio_sysctrl_mem_writel(void *opaque, hwaddr addr,
static const MemoryRegionOps slavio_sysctrl_mem_ops = {
.read = slavio_sysctrl_mem_readl,
.write = slavio_sysctrl_mem_writel,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid = {
.min_access_size = 4,
.max_access_size = 4,
@@ -392,7 +392,7 @@ static void slavio_led_mem_writew(void *opaque, hwaddr addr,
static const MemoryRegionOps slavio_led_mem_ops = {
.read = slavio_led_mem_readw,
.write = slavio_led_mem_writew,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid = {
.min_access_size = 2,
.max_access_size = 2,
@@ -126,7 +126,7 @@ static void stm32f2xx_syscfg_write(void *opaque, hwaddr addr,
static const MemoryRegionOps stm32f2xx_syscfg_ops = {
.read = stm32f2xx_syscfg_read,
.write = stm32f2xx_syscfg_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void stm32f2xx_syscfg_init(Object *obj)
@@ -332,7 +332,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,
@@ -408,7 +408,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,
@@ -206,7 +206,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)
@@ -179,7 +179,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,
@@ -47,7 +47,7 @@ static const MemoryRegionOps unimp_ops = {
.impl.max_access_size = 8,
.valid.min_access_size = 1,
.valid.max_access_size = 8,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void unimp_realize(DeviceState *dev, Error **errp)
@@ -251,7 +251,7 @@ static void zynq_xadc_write(void *opaque, hwaddr offset, uint64_t val,
static const MemoryRegionOps xadc_ops = {
.read = zynq_xadc_read,
.write = zynq_xadc_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void zynq_xadc_init(Object *obj)
@@ -415,7 +415,7 @@ static void zynq_slcr_write(void *opaque, hwaddr offset,
static const MemoryRegionOps slcr_ops = {
.read = zynq_slcr_read,
.write = zynq_slcr_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void zynq_slcr_init(Object *obj)
@@ -141,7 +141,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);
}
}
@@ -418,7 +418,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,
@@ -1515,7 +1515,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)
@@ -190,7 +190,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,
@@ -200,7 +200,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,
},
@@ -209,7 +209,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,
},
@@ -135,7 +135,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,
},
@@ -144,7 +144,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,
},
@@ -135,7 +135,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,
},
@@ -144,7 +144,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,
},
@@ -651,7 +651,7 @@ static const MemoryRegionOps dp8393x_ops = {
.write = dp8393x_write,
.impl.min_access_size = 2,
.impl.max_access_size = 2,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void dp8393x_watchdog(void *opaque)
@@ -1341,7 +1341,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,
@@ -1368,7 +1368,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)
@@ -179,7 +179,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,
@@ -189,7 +189,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,
@@ -1601,7 +1601,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
@@ -281,7 +281,7 @@ static void etsec_write(void *opaque,
static const MemoryRegionOps etsec_ops = {
.read = etsec_read,
.write = etsec_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.impl = {
.min_access_size = 4,
.max_access_size = 4,
@@ -979,7 +979,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)
@@ -1278,7 +1278,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)
@@ -1304,13 +1304,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 = {
@@ -74,7 +74,7 @@ static uint64_t lance_mem_read(void *opaque, hwaddr addr,
static const MemoryRegionOps lance_mem_ops = {
.read = lance_mem_read,
.write = lance_mem_write,
- .endianness = DEVICE_BIG_ENDIAN,
+ .endianness = MO_BE,
.valid = {
.min_access_size = 2,
.max_access_size = 2,
@@ -624,7 +624,7 @@ static ssize_t mcf_fec_receive(NetClientState *nc, const uint8_t *buf, size_t si
static const MemoryRegionOps mcf_fec_ops = {
.read = mcf_fec_read,
.write = mcf_fec_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static NetClientInfo net_mcf_fec_info = {
@@ -431,7 +431,7 @@ static const MemoryRegionOps minimac2_ops = {
.min_access_size = 4,
.max_access_size = 4,
},
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void milkymist_minimac2_reset(DeviceState *d)
@@ -686,7 +686,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,
};
/***********************************************************/
@@ -137,7 +137,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 = {
@@ -160,7 +160,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,
@@ -1196,7 +1196,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,
@@ -3311,7 +3311,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)
@@ -757,7 +757,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 = {
@@ -456,7 +456,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)
@@ -924,7 +924,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,
@@ -993,7 +993,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,
@@ -1066,7 +1066,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,
@@ -1163,7 +1163,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,
@@ -1229,7 +1229,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,
@@ -1284,7 +1284,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,
@@ -287,7 +287,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,
@@ -330,7 +330,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,
@@ -363,7 +363,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,
@@ -406,7 +406,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,
@@ -528,7 +528,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,
@@ -2159,7 +2159,7 @@ vmxnet3_msix_load(QEMUFile *f, void *opaque, int version_id)
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,
@@ -2169,7 +2169,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,
@@ -309,7 +309,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)
@@ -661,7 +661,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)
@@ -167,7 +167,7 @@ eth_write(void *opaque, hwaddr addr,
static const MemoryRegionOps eth_ops = {
.read = eth_read,
.write = eth_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid = {
.min_access_size = 4,
.max_access_size = 4
@@ -91,7 +91,7 @@ static void nios2_10m50_ghrd_init(MachineState *machine)
/* Register: Altera 16550 UART */
serial_mm_init(address_space_mem, 0xf8001600, 2, irq[1], 115200,
- serial_hd(0), DEVICE_NATIVE_ENDIAN);
+ serial_hd(0), MO_TE);
/* Register: Timer sys_clk_timer */
dev = qdev_create(NULL, "ALTR.timer");
@@ -69,7 +69,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)
@@ -523,14 +523,14 @@ static bool fw_cfg_comb_valid(void *opaque, hwaddr addr,
static const MemoryRegionOps fw_cfg_ctl_mem_ops = {
.read = fw_cfg_ctl_mem_read,
.write = fw_cfg_ctl_mem_write,
- .endianness = DEVICE_BIG_ENDIAN,
+ .endianness = MO_BE,
.valid.accepts = fw_cfg_ctl_mem_valid,
};
static const MemoryRegionOps fw_cfg_data_mem_ops = {
.read = fw_cfg_data_read,
.write = fw_cfg_data_mem_write,
- .endianness = DEVICE_BIG_ENDIAN,
+ .endianness = MO_BE,
.valid = {
.min_access_size = 1,
.max_access_size = 1,
@@ -541,14 +541,14 @@ 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,
};
static const MemoryRegionOps fw_cfg_dma_mem_ops = {
.read = fw_cfg_dma_mem_read,
.write = fw_cfg_dma_mem_write,
- .endianness = DEVICE_BIG_ENDIAN,
+ .endianness = MO_BE,
.valid.accepts = fw_cfg_dma_mem_valid,
.valid.max_access_size = 8,
.impl.max_access_size = 8,
@@ -76,7 +76,7 @@ static const MemoryRegionOps macio_nvram_ops = {
.valid.max_access_size = 4,
.impl.min_access_size = 1,
.impl.max_access_size = 1,
- .endianness = DEVICE_BIG_ENDIAN,
+ .endianness = MO_BE,
};
static const VMStateDescription vmstate_macio_nvram = {
@@ -96,7 +96,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
};
/*
@@ -189,7 +189,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
};
@@ -268,7 +268,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,
};
@@ -301,7 +301,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)
@@ -164,7 +164,7 @@ static void openrisc_sim_init(MachineState *machine)
}
serial_mm_init(get_system_memory(), 0x90000000, 0, serial_irq,
- 115200, serial_hd(0), DEVICE_NATIVE_ENDIAN);
+ 115200, serial_hd(0), MO_TE);
openrisc_load_kernel(ram_size, kernel_filename);
}
@@ -311,7 +311,7 @@ static uint64_t bonito_readl(void *opaque, hwaddr addr,
static const MemoryRegionOps bonito_ops = {
.read = bonito_readl,
.write = bonito_writel,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid = {
.min_access_size = 4,
.max_access_size = 4,
@@ -344,7 +344,7 @@ static uint64_t bonito_pciconf_readl(void *opaque, hwaddr addr,
static const MemoryRegionOps bonito_pciconf_ops = {
.read = bonito_pciconf_readl,
.write = bonito_pciconf_writel,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid = {
.min_access_size = 4,
.max_access_size = 4,
@@ -381,7 +381,7 @@ static void bonito_ldma_writel(void *opaque, hwaddr addr,
static const MemoryRegionOps bonito_ldma_ops = {
.read = bonito_ldma_readl,
.write = bonito_ldma_writel,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid = {
.min_access_size = 4,
.max_access_size = 4,
@@ -418,7 +418,7 @@ static void bonito_cop_writel(void *opaque, hwaddr addr,
static const MemoryRegionOps bonito_cop_ops = {
.read = bonito_cop_readl,
.write = bonito_cop_writel,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid = {
.min_access_size = 4,
.max_access_size = 4,
@@ -524,7 +524,7 @@ static const MemoryRegionOps bonito_spciconf_ops = {
.valid.max_access_size = 4,
.impl.min_access_size = 1,
.impl.max_access_size = 4,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
#define BONITO_IRQ_BASE 32
@@ -75,7 +75,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,
@@ -235,7 +235,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,
@@ -620,7 +620,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
@@ -691,7 +691,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)
@@ -338,7 +338,7 @@ static void pci_reg_write4(void *opaque, hwaddr addr,
static const MemoryRegionOps e500_pci_reg_ops = {
.read = pci_reg_read4,
.write = pci_reg_write4,
- .endianness = DEVICE_BIG_ENDIAN,
+ .endianness = MO_BE,
};
static int mpc85xx_pci_map_irq(PCIDevice *pci_dev, int pin)
@@ -108,7 +108,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,
@@ -186,7 +186,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,
};
@@ -288,12 +288,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 */
@@ -247,7 +247,7 @@ static uint64_t sabre_config_read(void *opaque,
static const MemoryRegionOps sabre_config_ops = {
.read = sabre_config_read,
.write = sabre_config_write,
- .endianness = DEVICE_BIG_ENDIAN,
+ .endianness = MO_BE,
};
static void sabre_pci_config_write(void *opaque, hwaddr addr,
@@ -368,7 +368,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)
@@ -108,7 +108,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)
@@ -564,7 +564,7 @@ static uint64_t unin_read(void *opaque, hwaddr addr, unsigned size)
static const MemoryRegionOps unin_ops = {
.read = unin_read,
.write = unin_write,
- .endianness = DEVICE_BIG_ENDIAN,
+ .endianness = MO_BE,
};
static void unin_init(Object *obj)
@@ -240,7 +240,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,
@@ -306,7 +306,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)
@@ -195,7 +195,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,
@@ -223,7 +223,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,25 +190,25 @@ 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 = {
.read = pci_host_config_read,
.write = pci_host_config_write,
- .endianness = DEVICE_BIG_ENDIAN,
+ .endianness = MO_BE,
};
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 = {
.read = pci_host_data_read,
.write = pci_host_data_write,
- .endianness = DEVICE_BIG_ENDIAN,
+ .endianness = MO_BE,
};
static const TypeInfo pci_host_type_info = {
@@ -72,7 +72,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)
@@ -477,7 +477,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. */
@@ -117,19 +117,19 @@ static void pxa2xx_pcmcia_io_write(void *opaque, hwaddr offset,
static const MemoryRegionOps pxa2xx_pcmcia_common_ops = {
.read = pxa2xx_pcmcia_common_read,
.write = pxa2xx_pcmcia_common_write,
- .endianness = DEVICE_NATIVE_ENDIAN
+ .endianness = MO_TE
};
static const MemoryRegionOps pxa2xx_pcmcia_attr_ops = {
.read = pxa2xx_pcmcia_attr_read,
.write = pxa2xx_pcmcia_attr_write,
- .endianness = DEVICE_NATIVE_ENDIAN
+ .endianness = MO_TE
};
static const MemoryRegionOps pxa2xx_pcmcia_io_ops = {
.read = pxa2xx_pcmcia_io_read,
.write = pxa2xx_pcmcia_io_write,
- .endianness = DEVICE_NATIVE_ENDIAN
+ .endianness = MO_TE
};
static void pxa2xx_pcmcia_set_irq(void *opaque, int line, int level)
@@ -927,13 +927,13 @@ void ppce500_init(MachineState *machine)
if (serial_hd(0)) {
serial_mm_init(ccsr_addr_space, MPC8544_SERIAL0_REGS_OFFSET,
0, qdev_get_gpio_in(mpicdev, 42), 399193,
- serial_hd(0), DEVICE_BIG_ENDIAN);
+ serial_hd(0), MO_BE);
}
if (serial_hd(1)) {
serial_mm_init(ccsr_addr_space, MPC8544_SERIAL1_REGS_OFFSET,
0, qdev_get_gpio_in(mpicdev, 42), 399193,
- serial_hd(1), DEVICE_BIG_ENDIAN);
+ serial_hd(1), MO_BE);
}
/* I2C */
dev = qdev_create(NULL, "mpc-i2c");
@@ -111,7 +111,7 @@ static void mpc8544_guts_write(void *opaque, hwaddr addr,
static const MemoryRegionOps mpc8544_guts_ops = {
.read = mpc8544_guts_read,
.write = mpc8544_guts_write,
- .endianness = DEVICE_BIG_ENDIAN,
+ .endianness = MO_BE,
.valid = {
.min_access_size = 4,
.max_access_size = 4,
@@ -98,7 +98,7 @@ static const MemoryRegionOps pnv_core_power8_xscom_ops = {
.valid.max_access_size = 8,
.impl.min_access_size = 8,
.impl.max_access_size = 8,
- .endianness = DEVICE_BIG_ENDIAN,
+ .endianness = MO_BE,
};
@@ -156,7 +156,7 @@ static const MemoryRegionOps pnv_core_power9_xscom_ops = {
.valid.max_access_size = 8,
.impl.min_access_size = 8,
.impl.max_access_size = 8,
- .endianness = DEVICE_BIG_ENDIAN,
+ .endianness = MO_BE,
};
static void pnv_realize_vcpu(PowerPCCPU *cpu, PnvChip *chip, Error **errp)
@@ -377,7 +377,7 @@ static const MemoryRegionOps pnv_quad_xscom_ops = {
.valid.max_access_size = 8,
.impl.min_access_size = 8,
.impl.max_access_size = 8,
- .endianness = DEVICE_BIG_ENDIAN,
+ .endianness = MO_BE,
};
static void pnv_quad_realize(DeviceState *dev, Error **errp)
@@ -336,7 +336,7 @@ static const MemoryRegionOps pnv_lpc_xscom_ops = {
.valid.max_access_size = 8,
.impl.min_access_size = 8,
.impl.max_access_size = 8,
- .endianness = DEVICE_BIG_ENDIAN,
+ .endianness = MO_BE,
};
static uint64_t pnv_lpc_mmio_read(void *opaque, hwaddr addr, unsigned size)
@@ -404,7 +404,7 @@ static const MemoryRegionOps pnv_lpc_mmio_ops = {
.min_access_size = 1,
.max_access_size = 4,
},
- .endianness = DEVICE_BIG_ENDIAN,
+ .endianness = MO_BE,
};
static void pnv_lpc_eval_irqs(PnvLpcController *lpc)
@@ -507,7 +507,7 @@ static void lpc_hc_write(void *opaque, hwaddr addr, uint64_t val,
static const MemoryRegionOps lpc_hc_ops = {
.read = lpc_hc_read,
.write = lpc_hc_write,
- .endianness = DEVICE_BIG_ENDIAN,
+ .endianness = MO_BE,
.valid = {
.min_access_size = 4,
.max_access_size = 4,
@@ -586,7 +586,7 @@ static void opb_master_write(void *opaque, hwaddr addr,
static const MemoryRegionOps opb_master_ops = {
.read = opb_master_read,
.write = opb_master_write,
- .endianness = DEVICE_BIG_ENDIAN,
+ .endianness = MO_BE,
.valid = {
.min_access_size = 4,
.max_access_size = 4,
@@ -91,7 +91,7 @@ static const MemoryRegionOps pnv_occ_power8_xscom_ops = {
.valid.max_access_size = 8,
.impl.min_access_size = 8,
.impl.max_access_size = 8,
- .endianness = DEVICE_BIG_ENDIAN,
+ .endianness = MO_BE,
};
static void pnv_occ_power8_class_init(ObjectClass *klass, void *data)
@@ -162,7 +162,7 @@ static const MemoryRegionOps pnv_occ_power9_xscom_ops = {
.valid.max_access_size = 8,
.impl.min_access_size = 8,
.impl.max_access_size = 8,
- .endianness = DEVICE_BIG_ENDIAN,
+ .endianness = MO_BE,
};
static void pnv_occ_power9_class_init(ObjectClass *klass, void *data)
@@ -417,7 +417,7 @@ static void pnv_psi_mmio_write(void *opaque, hwaddr addr,
static const MemoryRegionOps psi_mmio_ops = {
.read = pnv_psi_mmio_read,
.write = pnv_psi_mmio_write,
- .endianness = DEVICE_BIG_ENDIAN,
+ .endianness = MO_BE,
.valid = {
.min_access_size = 8,
.max_access_size = 8,
@@ -442,7 +442,7 @@ static void pnv_psi_xscom_write(void *opaque, hwaddr addr,
static const MemoryRegionOps pnv_psi_xscom_ops = {
.read = pnv_psi_xscom_read,
.write = pnv_psi_xscom_write,
- .endianness = DEVICE_BIG_ENDIAN,
+ .endianness = MO_BE,
.valid = {
.min_access_size = 8,
.max_access_size = 8,
@@ -737,7 +737,7 @@ static void pnv_psi_p9_mmio_write(void *opaque, hwaddr addr,
static const MemoryRegionOps pnv_psi_p9_mmio_ops = {
.read = pnv_psi_p9_mmio_read,
.write = pnv_psi_p9_mmio_write,
- .endianness = DEVICE_BIG_ENDIAN,
+ .endianness = MO_BE,
.valid = {
.min_access_size = 8,
.max_access_size = 8,
@@ -774,7 +774,7 @@ static void pnv_psi_p9_xscom_write(void *opaque, hwaddr addr,
static const MemoryRegionOps pnv_psi_p9_xscom_ops = {
.read = pnv_psi_p9_xscom_read,
.write = pnv_psi_p9_xscom_write,
- .endianness = DEVICE_BIG_ENDIAN,
+ .endianness = MO_BE,
.valid = {
.min_access_size = 8,
.max_access_size = 8,
@@ -210,7 +210,7 @@ const MemoryRegionOps pnv_xscom_ops = {
.valid.max_access_size = 8,
.impl.min_access_size = 8,
.impl.max_access_size = 8,
- .endianness = DEVICE_BIG_ENDIAN,
+ .endianness = MO_BE,
};
void pnv_xscom_realize(PnvChip *chip, uint64_t size, Error **errp)
@@ -110,7 +110,7 @@ static const MemoryRegionOps ref405ep_fpga_ops = {
.impl.max_access_size = 1,
.valid.min_access_size = 1,
.valid.max_access_size = 4,
- .endianness = DEVICE_BIG_ENDIAN,
+ .endianness = MO_BE,
};
static void ref405ep_fpga_reset (void *opaque)
@@ -382,7 +382,7 @@ static const MemoryRegionOps taihu_cpld_ops = {
.min_access_size = 1,
.max_access_size = 1,
},
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void taihu_cpld_reset (void *opaque)
@@ -334,7 +334,7 @@ static const MemoryRegionOps opba_ops = {
.impl.max_access_size = 1,
.valid.min_access_size = 1,
.valid.max_access_size = 4,
- .endianness = DEVICE_BIG_ENDIAN,
+ .endianness = MO_BE,
};
static void ppc4xx_opba_reset (void *opaque)
@@ -723,7 +723,7 @@ static void ppc405_gpio_write(void *opaque, hwaddr addr, uint64_t value,
static const MemoryRegionOps ppc405_gpio_ops = {
.read = ppc405_gpio_read,
.write = ppc405_gpio_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void ppc405_gpio_reset (void *opaque)
@@ -1105,7 +1105,7 @@ static const MemoryRegionOps gpt_ops = {
.write = ppc4xx_gpt_write,
.valid.min_access_size = 4,
.valid.max_access_size = 4,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void ppc4xx_gpt_cb (void *opaque)
@@ -1482,12 +1482,12 @@ CPUPPCState *ppc405cr_init(MemoryRegion *address_space_mem,
if (serial_hd(0) != NULL) {
serial_mm_init(address_space_mem, 0xef600300, 0, pic[0],
PPC_SERIAL_MM_BAUDBASE, serial_hd(0),
- DEVICE_BIG_ENDIAN);
+ MO_BE);
}
if (serial_hd(1) != NULL) {
serial_mm_init(address_space_mem, 0xef600400, 0, pic[1],
PPC_SERIAL_MM_BAUDBASE, serial_hd(1),
- DEVICE_BIG_ENDIAN);
+ MO_BE);
}
/* IIC controller */
sysbus_create_simple(TYPE_PPC4xx_I2C, 0xef600500, pic[2]);
@@ -1845,12 +1845,12 @@ CPUPPCState *ppc405ep_init(MemoryRegion *address_space_mem,
if (serial_hd(0) != NULL) {
serial_mm_init(address_space_mem, 0xef600300, 0, pic[0],
PPC_SERIAL_MM_BAUDBASE, serial_hd(0),
- DEVICE_BIG_ENDIAN);
+ MO_BE);
}
if (serial_hd(1) != NULL) {
serial_mm_init(address_space_mem, 0xef600400, 0, pic[1],
PPC_SERIAL_MM_BAUDBASE, serial_hd(1),
- DEVICE_BIG_ENDIAN);
+ MO_BE);
}
/* OCM */
ppc405_ocm_init(env);
@@ -234,12 +234,12 @@ static void bamboo_init(MachineState *machine)
if (serial_hd(0) != NULL) {
serial_mm_init(address_space_mem, 0xef600300, 0, pic[0],
PPC_SERIAL_MM_BAUDBASE, serial_hd(0),
- DEVICE_BIG_ENDIAN);
+ MO_BE);
}
if (serial_hd(1) != NULL) {
serial_mm_init(address_space_mem, 0xef600400, 0, pic[1],
PPC_SERIAL_MM_BAUDBASE, serial_hd(1),
- DEVICE_BIG_ENDIAN);
+ MO_BE);
}
if (pcibus) {
@@ -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)
@@ -227,7 +227,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)
@@ -173,7 +173,7 @@ static uint64_t spin_read(void *opaque, hwaddr addr, unsigned len)
static const MemoryRegionOps spin_rw_ops = {
.read = spin_read,
.write = spin_write,
- .endianness = DEVICE_BIG_ENDIAN,
+ .endianness = MO_BE,
};
static void ppce500_spin_initfn(Object *obj)
@@ -412,12 +412,12 @@ static void sam460ex_init(MachineState *machine)
if (serial_hd(0) != NULL) {
serial_mm_init(address_space_mem, 0x4ef600300, 0, uic[1][1],
PPC_SERIAL_MM_BAUDBASE, serial_hd(0),
- DEVICE_BIG_ENDIAN);
+ MO_BE);
}
if (serial_hd(1) != NULL) {
serial_mm_init(address_space_mem, 0x4ef600400, 0, uic[0][1],
PPC_SERIAL_MM_BAUDBASE, serial_hd(1),
- DEVICE_BIG_ENDIAN);
+ MO_BE);
}
/* Load U-Boot image. */
@@ -763,7 +763,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
};
/*
@@ -242,7 +242,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");
@@ -439,7 +439,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),
@@ -507,7 +507,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),
@@ -176,7 +176,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
@@ -272,7 +272,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,
};
@@ -354,7 +354,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
@@ -73,7 +73,7 @@ static void sifive_prci_write(void *opaque, hwaddr addr,
static const MemoryRegionOps sifive_prci_ops = {
.read = sifive_prci_read,
.write = sifive_prci_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid = {
.min_access_size = 4,
.max_access_size = 4
@@ -51,7 +51,7 @@ static void sifive_test_write(void *opaque, hwaddr addr,
static const MemoryRegionOps sifive_test_ops = {
.read = sifive_test_read,
.write = sifive_test_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid = {
.min_access_size = 4,
.max_access_size = 4
@@ -132,7 +132,7 @@ uart_write(void *opaque, hwaddr addr,
static const MemoryRegionOps uart_ops = {
.read = uart_read,
.write = uart_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.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);
}
@@ -689,7 +689,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)
@@ -291,7 +291,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,
@@ -635,7 +635,7 @@ static uint64_t sysbus_esp_mem_read(void *opaque, hwaddr addr,
static const MemoryRegionOps sysbus_esp_mem_ops = {
.read = sysbus_esp_mem_read,
.write = sysbus_esp_mem_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid.accepts = esp_mem_accepts,
};
@@ -2091,7 +2091,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,
@@ -2115,7 +2115,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,
@@ -2135,7 +2135,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,
@@ -2153,7 +2153,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,
@@ -2175,7 +2175,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,
@@ -2197,7 +2197,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,
@@ -1085,7 +1085,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,
@@ -1095,7 +1095,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,
@@ -1120,7 +1120,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,
@@ -1086,7 +1086,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,
@@ -370,7 +370,7 @@ static void bcm2835_sdhost_write(void *opaque, hwaddr offset,
static const MemoryRegionOps bcm2835_sdhost_ops = {
.read = bcm2835_sdhost_read,
.write = bcm2835_sdhost_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static const VMStateDescription vmstate_bcm2835_sdhost = {
@@ -236,7 +236,7 @@ static const MemoryRegionOps memcard_mmio_ops = {
.min_access_size = 4,
.max_access_size = 4,
},
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void milkymist_memcard_reset(DeviceState *d)
@@ -570,7 +570,7 @@ static void omap_mmc_write(void *opaque, hwaddr offset,
static const MemoryRegionOps omap_mmc_ops = {
.read = omap_mmc_read,
.write = omap_mmc_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void omap_mmc_cover_cb(void *opaque, int line, int level)
@@ -449,7 +449,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)
@@ -472,7 +472,7 @@ static void pxa2xx_mmci_write(void *opaque,
static const MemoryRegionOps pxa2xx_mmci_ops = {
.read = pxa2xx_mmci_read,
.write = pxa2xx_mmci_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
PXA2xxMMCIState *pxa2xx_mmci_init(MemoryRegion *sysmem,
@@ -1286,7 +1286,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)
@@ -1741,7 +1741,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)
@@ -176,7 +176,7 @@ static const MemoryRegionOps r2d_fpga_ops = {
.write = r2d_fpga_write,
.impl.min_access_size = 2,
.impl.max_access_size = 2,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static qemu_irq *r2d_fpga_init(MemoryRegion *sysmem,
@@ -487,7 +487,7 @@ static const MemoryRegionOps sh7750_mem_ops = {
.write = sh7750_mem_writefn,
.valid.min_access_size = 1,
.valid.max_access_size = 4,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
/* sh775x interrupt controller tables for sh_intc.c
@@ -748,7 +748,7 @@ static void sh7750_mmct_write(void *opaque, hwaddr addr,
static const MemoryRegionOps sh7750_mmct_ops = {
.read = sh7750_mmct_read,
.write = sh7750_mmct_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
SH7750State *sh7750_init(SuperHCPU *cpu, MemoryRegion *sysmem)
@@ -103,7 +103,7 @@ static uint64_t sh_pci_reg_read (void *p, hwaddr addr,
static const MemoryRegionOps sh_pci_reg_ops = {
.read = sh_pci_reg_read,
.write = sh_pci_reg_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid = {
.min_access_size = 4,
.max_access_size = 4,
@@ -235,7 +235,7 @@ static void iommu_mem_write(void *opaque, hwaddr addr,
static const MemoryRegionOps iommu_mem_ops = {
.read = iommu_mem_read,
.write = iommu_mem_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid = {
.min_access_size = 4,
.max_access_size = 4,
@@ -158,7 +158,7 @@ static void niagara_init(MachineState *machine)
}
if (serial_hd(0)) {
serial_mm_init(sysmem, NIAGARA_UART_BASE, 0, NULL, 115200,
- serial_hd(0), DEVICE_BIG_ENDIAN);
+ serial_hd(0), MO_BE);
}
create_unimplemented_device("sun4v-iob", NIAGARA_IOBBASE, NIAGARA_IOBSIZE);
sun4v_rtc_init(NIAGARA_RTC_BASE);
@@ -249,7 +249,7 @@ static void power_mem_write(void *opaque, hwaddr addr,
static const MemoryRegionOps power_mem_ops = {
.read = power_mem_read,
.write = power_mem_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid = {
.min_access_size = 4,
.max_access_size = 4,
@@ -320,7 +320,7 @@ static void ebus_realize(PCIDevice *pci_dev, Error **errp)
i = 0;
if (s->console_serial_base) {
serial_mm_init(pci_address_space(pci_dev), s->console_serial_base,
- 0, NULL, 115200, serial_hd(i), DEVICE_BIG_ENDIAN);
+ 0, NULL, 115200, serial_hd(i), MO_BE);
i++;
}
serial_hds_isa_init(s->isa_bus, i, MAX_ISA_SERIAL_PORTS);
@@ -280,7 +280,7 @@ static uint64_t iommu_mem_read(void *opaque, hwaddr addr, unsigned size)
static const MemoryRegionOps iommu_mem_ops = {
.read = iommu_mem_read,
.write = iommu_mem_write,
- .endianness = DEVICE_BIG_ENDIAN,
+ .endianness = MO_BE,
};
static void iommu_reset(DeviceState *d)
@@ -399,7 +399,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,
@@ -707,7 +707,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,
@@ -818,7 +818,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,
};
@@ -397,7 +397,7 @@ static void imx_spi_write(void *opaque, hwaddr offset, uint64_t value,
static const struct MemoryRegionOps imx_spi_ops = {
.read = imx_spi_read,
.write = imx_spi_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid = {
/*
* Our device would not work correctly if the guest was doing
@@ -359,7 +359,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
@@ -342,7 +342,7 @@ static void omap_mcspi_write(void *opaque, hwaddr addr,
static const MemoryRegionOps omap_mcspi_ops = {
.read = omap_mcspi_read,
.write = omap_mcspi_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
struct omap_mcspi_s *omap_mcspi_init(struct omap_target_agent_s *ta, int chnum,
@@ -226,7 +226,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)
@@ -166,7 +166,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 = {
@@ -313,7 +313,7 @@ done:
static const MemoryRegionOps spi_ops = {
.read = spi_read,
.write = spi_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid = {
.min_access_size = 4,
.max_access_size = 4
@@ -1029,7 +1029,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)
@@ -1120,13 +1120,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
@@ -1238,7 +1238,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,
@@ -254,7 +254,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 = {
@@ -264,7 +264,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)
@@ -178,7 +178,7 @@ static void a10_pit_write(void *opaque, hwaddr offset, uint64_t value,
static const MemoryRegionOps a10_pit_ops = {
.read = a10_pit_read,
.write = a10_pit_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static Property a10_pit_properties[] = {
@@ -145,7 +145,7 @@ static void timer_write(void *opaque, hwaddr addr,
static const MemoryRegionOps timer_ops = {
.read = timer_read,
.write = timer_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid = {
.min_access_size = 1,
.max_access_size = 4
@@ -190,7 +190,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 = {
@@ -200,7 +200,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)
@@ -265,7 +265,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 = {
@@ -346,7 +346,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)
@@ -191,7 +191,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,
};
@@ -130,7 +130,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 = {
@@ -448,7 +448,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,
@@ -389,7 +389,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)
@@ -373,7 +373,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,
@@ -169,7 +169,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)
@@ -121,7 +121,7 @@ static const MemoryRegionOps digic_timer_ops = {
.min_access_size = 4,
.max_access_size = 4,
},
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void digic_timer_init(Object *obj)
@@ -297,7 +297,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
@@ -1412,7 +1412,7 @@ static void exynos4210_mct_write(void *opaque, hwaddr offset,
static const MemoryRegionOps exynos4210_mct_ops = {
.read = exynos4210_mct_read,
.write = exynos4210_mct_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
/* MCT init */
@@ -375,7 +375,7 @@ static void exynos4210_pwm_reset(DeviceState *d)
static const MemoryRegionOps exynos4210_pwm_ops = {
.read = exynos4210_pwm_read,
.write = exynos4210_pwm_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
/*
@@ -544,7 +544,7 @@ static void exynos4210_rtc_reset(DeviceState *d)
static const MemoryRegionOps exynos4210_rtc_ops = {
.read = exynos4210_rtc_read,
.write = exynos4210_rtc_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
/*
@@ -313,7 +313,7 @@ static void grlib_gptimer_write(void *opaque, hwaddr addr,
static const MemoryRegionOps grlib_gptimer_ops = {
.read = grlib_gptimer_read,
.write = grlib_gptimer_write,
- .endianness = DEVICE_BIG_ENDIAN,
+ .endianness = MO_BE,
.valid = {
.min_access_size = 4,
.max_access_size = 4,
@@ -675,7 +675,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)
@@ -282,7 +282,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 = {
@@ -474,7 +474,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,
};
@@ -144,7 +144,7 @@ static void timer_write(void *opaque, hwaddr addr,
static const MemoryRegionOps timer_ops = {
.read = timer_read,
.write = timer_write,
- .endianness = DEVICE_BIG_ENDIAN,
+ .endianness = MO_BE,
.valid = {
.min_access_size = 4,
.max_access_size = 4,
@@ -518,7 +518,7 @@ static const MemoryRegionOps nvram_ops = {
.impl.max_access_size = 1,
.valid.min_access_size = 1,
.valid.max_access_size = 4,
- .endianness = DEVICE_BIG_ENDIAN,
+ .endianness = MO_BE,
};
static const VMStateDescription vmstate_m48t59 = {
@@ -559,7 +559,7 @@ const MemoryRegionOps m48t59_io_ops = {
.min_access_size = 1,
.max_access_size = 1,
},
- .endianness = DEVICE_LITTLE_ENDIAN,
+ .endianness = MO_LE,
};
/* Initialisation routine */
@@ -930,7 +930,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)
@@ -220,7 +220,7 @@ static const MemoryRegionOps sysctl_mmio_ops = {
.min_access_size = 4,
.max_access_size = 4,
},
- .endianness = DEVICE_BIG_ENDIAN,
+ .endianness = MO_BE,
};
static void timer0_hit(void *opaque)
@@ -197,7 +197,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
@@ -300,7 +300,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,
};
@@ -488,7 +488,7 @@ static const MemoryRegionOps omap_gp_timer_ops = {
.write = omap_gp_timer_writefn,
.valid.min_access_size = 1,
.valid.max_access_size = 4,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
struct omap_gp_timer_s *omap_gp_timer_init(struct omap_target_agent_s *ta,
@@ -94,7 +94,7 @@ static const MemoryRegionOps omap_synctimer_ops = {
.write = omap_synctimer_writefn,
.valid.min_access_size = 1,
.valid.max_access_size = 4,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
struct omap_synctimer_s *omap_synctimer_init(struct omap_target_agent_s *ta,
@@ -175,7 +175,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)
@@ -98,7 +98,7 @@ static const MemoryRegionOps puv3_ost_ops = {
.min_access_size = 4,
.max_access_size = 4,
},
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void puv3_ost_tick(void *opaque)
@@ -399,7 +399,7 @@ static void pxa2xx_timer_write(void *opaque, hwaddr offset,
static const MemoryRegionOps pxa2xx_timer_ops = {
.read = pxa2xx_timer_read,
.write = pxa2xx_timer_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void pxa2xx_timer_tick(void *opaque)
@@ -302,7 +302,7 @@ static void tmu012_write(void *opaque, hwaddr offset,
static const MemoryRegionOps tmu012_ops = {
.read = tmu012_read,
.write = tmu012_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
void tmu012_init(MemoryRegion *sysmem, hwaddr base,
@@ -319,7 +319,7 @@ static void slavio_timer_mem_writel(void *opaque, hwaddr addr,
static const MemoryRegionOps slavio_timer_mem_ops = {
.read = slavio_timer_mem_readl,
.write = slavio_timer_mem_writel,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid = {
.min_access_size = 4,
.max_access_size = 4,
@@ -265,7 +265,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 = {
@@ -48,7 +48,7 @@ static void sun4v_rtc_write(void *opaque, hwaddr addr,
static const MemoryRegionOps sun4v_rtc_ops = {
.read = sun4v_rtc_read,
.write = sun4v_rtc_write,
- .endianness = DEVICE_BIG_ENDIAN,
+ .endianness = MO_BE,
};
void sun4v_rtc_init(hwaddr addr)
@@ -187,7 +187,7 @@ timer_write(void *opaque, hwaddr addr,
static const MemoryRegionOps timer_ops = {
.read = timer_read,
.write = timer_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid = {
.min_access_size = 4,
.max_access_size = 4
@@ -173,7 +173,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,
@@ -180,7 +180,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,
@@ -846,7 +846,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,
@@ -35,7 +35,7 @@ static void chipidea_write(void *opaque, hwaddr offset,
static const struct MemoryRegionOps chipidea_ops = {
.read = chipidea_read,
.write = chipidea_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.impl = {
/*
* Our device would not work correctly if the guest was doing
@@ -76,7 +76,7 @@ static void chipidea_dc_write(void *opaque, hwaddr offset,
static const struct MemoryRegionOps chipidea_dc_ops = {
.read = chipidea_dc_read,
.write = chipidea_dc_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.impl = {
/*
* Our device would not work correctly if the guest was doing
@@ -223,7 +223,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)
@@ -2357,7 +2357,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 = {
@@ -2365,7 +2365,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 = {
@@ -2373,7 +2373,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 = {
@@ -1774,7 +1774,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 = {
@@ -1196,7 +1196,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 = {
@@ -3161,7 +3161,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 = {
@@ -3169,7 +3169,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 = {
@@ -3177,7 +3177,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 = {
@@ -3185,7 +3185,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 = {
@@ -3193,7 +3193,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)
@@ -678,7 +678,7 @@ static const MemoryRegionOps tusb_async_ops = {
.write = tusb_async_writefn,
.valid.min_access_size = 1,
.valid.max_access_size = 4,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void tusb_otg_tick(void *opaque)
@@ -274,7 +274,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,
@@ -150,7 +150,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,
@@ -193,7 +193,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,
};
/*
@@ -243,7 +243,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? */
@@ -278,7 +278,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)
@@ -605,7 +605,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,
@@ -663,7 +663,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)
@@ -752,7 +752,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,
@@ -779,7 +779,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)
@@ -929,7 +929,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)
@@ -1090,7 +1090,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,
@@ -1130,7 +1130,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)
@@ -1526,7 +1526,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,
@@ -1554,7 +1554,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)
@@ -879,7 +879,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)
@@ -1027,7 +1027,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,
};
/*
@@ -313,7 +313,7 @@ static void virtio_mmio_write(void *opaque, hwaddr offset, uint64_t value,
static const MemoryRegionOps virtio_mem_ops = {
.read = virtio_mmio_read,
.write = virtio_mmio_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void virtio_mmio_update_irq(DeviceState *opaque, uint16_t vector)
@@ -484,7 +484,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,
@@ -1387,7 +1387,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,
@@ -1396,7 +1396,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,
@@ -1405,7 +1405,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,
@@ -1414,7 +1414,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,
@@ -1423,7 +1423,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,
};
@@ -261,7 +261,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,
@@ -202,7 +202,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 = {
@@ -436,7 +436,7 @@ static void xen_pt_bar_write(void *o, hwaddr addr, uint64_t val,
}
static const MemoryRegionOps ops = {
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.read = xen_pt_bar_read,
.write = xen_pt_bar_write,
};
@@ -507,7 +507,7 @@ static bool pci_msix_accepts(void *opaque, hwaddr addr,
static const MemoryRegionOps pci_msix_ops = {
.read = pci_msix_read,
.write = pci_msix_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid = {
.min_access_size = 4,
.max_access_size = 4,
@@ -266,7 +266,7 @@ static void xtensa_mx_pic_ext_reg_write(void *opaque, hwaddr offset,
static const MemoryRegionOps xtensa_mx_pic_ops = {
.read = xtensa_mx_pic_ext_reg_read,
.write = xtensa_mx_pic_ext_reg_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
.valid = {
.unaligned = true,
},
@@ -117,7 +117,7 @@ static void xtfpga_fpga_write(void *opaque, hwaddr addr,
static const MemoryRegionOps xtfpga_fpga_ops = {
.read = xtfpga_fpga_read,
.write = xtfpga_fpga_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static XtfpgaFpgaState *xtfpga_fpga_init(MemoryRegion *address_space,
@@ -212,7 +212,7 @@ static void xtfpga_io_write(void *opaque, hwaddr addr,
static const MemoryRegionOps xtfpga_io_ops = {
.read = xtfpga_io_read,
.write = xtfpga_io_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static void xtfpga_init(const XtfpgaBoardDesc *board, MachineState *machine)
@@ -311,7 +311,7 @@ static void xtfpga_init(const XtfpgaBoardDesc *board, MachineState *machine)
}
serial_mm_init(system_io, 0x0d050020, 2, extints[0],
- 115200, serial_hd(0), DEVICE_NATIVE_ENDIAN);
+ 115200, serial_hd(0), MO_TE);
dinfo = drive_get(IF_PFLASH, 0, 0);
if (dinfo) {
@@ -27,9 +27,9 @@ enum device_endian {
};
#if defined(HOST_WORDS_BIGENDIAN)
-#define DEVICE_HOST_ENDIAN DEVICE_BIG_ENDIAN
+#define DEVICE_HOST_ENDIAN MO_BE
#else
-#define DEVICE_HOST_ENDIAN DEVICE_LITTLE_ENDIAN
+#define DEVICE_HOST_ENDIAN MO_LE
#endif
/* address in the RAM (different from a physical address) */
@@ -168,7 +168,7 @@ struct MemoryRegionOps {
unsigned size,
MemTxAttrs attrs);
- enum device_endian endianness;
+ MemOp endianness;
/* Guest-visible constraints: */
struct {
/* If nonzero, specify bounds on access sizes beyond which a machine
@@ -92,7 +92,7 @@ SerialState *serial_init(int base, qemu_irq irq, int baudbase,
SerialState *serial_mm_init(MemoryRegion *address_space,
hwaddr base, int it_shift,
qemu_irq irq, int baudbase,
- Chardev *chr, enum device_endian end);
+ Chardev *chr, MemOp end);
/* serial-isa.c */
@@ -51,7 +51,7 @@ static void unassigned_io_write(void *opaque, hwaddr addr, uint64_t val,
const MemoryRegionOps unassigned_io_ops = {
.read = unassigned_io_read,
.write = unassigned_io_write,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
void cpu_outb(uint32_t addr, uint8_t val)
@@ -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,18 +346,18 @@ 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;
+ return mr->ops->endianness == MO_BE;
#endif
}
static bool memory_region_wrong_endianness(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;
+ return mr->ops->endianness == MO_BE;
#endif
}
@@ -1307,7 +1307,7 @@ static bool unassigned_mem_accepts(void *opaque, hwaddr addr,
const MemoryRegionOps unassigned_mem_ops = {
.valid.accepts = unassigned_mem_accepts,
- .endianness = DEVICE_NATIVE_ENDIAN,
+ .endianness = MO_TE,
};
static uint64_t memory_region_ram_device_read(void *opaque,
@@ -21,8 +21,7 @@
/* warning: addr must be aligned */
static inline uint32_t glue(address_space_ldl_internal, SUFFIX)(ARG1_DECL,
- hwaddr addr, MemTxAttrs attrs, MemTxResult *result,
- enum device_endian endian)
+ hwaddr addr, MemTxAttrs attrs, MemTxResult *result, MemOp endian)
{
uint8_t *ptr;
uint64_t val;
@@ -40,11 +39,11 @@ static inline uint32_t glue(address_space_ldl_internal, SUFFIX)(ARG1_DECL,
/* I/O case */
r = memory_region_dispatch_read(mr, addr1, &val, MO_32, attrs);
#if defined(TARGET_WORDS_BIGENDIAN)
- if (endian == DEVICE_LITTLE_ENDIAN) {
+ if (endian == MO_LE) {
val = bswap32(val);
}
#else
- if (endian == DEVICE_BIG_ENDIAN) {
+ if (endian == MO_BE) {
val = bswap32(val);
}
#endif
@@ -52,10 +51,10 @@ 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:
+ case MO_BE:
val = ldl_be_p(ptr);
break;
default:
@@ -78,27 +77,26 @@ uint32_t glue(address_space_ldl, SUFFIX)(ARG1_DECL,
hwaddr addr, MemTxAttrs attrs, MemTxResult *result)
{
return glue(address_space_ldl_internal, SUFFIX)(ARG1, addr, attrs, result,
- DEVICE_NATIVE_ENDIAN);
+ MO_TE);
}
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,
hwaddr addr, MemTxAttrs attrs, MemTxResult *result)
{
return glue(address_space_ldl_internal, SUFFIX)(ARG1, addr, attrs, result,
- DEVICE_BIG_ENDIAN);
+ MO_BE);
}
/* warning: addr must be aligned */
static inline uint64_t glue(address_space_ldq_internal, SUFFIX)(ARG1_DECL,
- hwaddr addr, MemTxAttrs attrs, MemTxResult *result,
- enum device_endian endian)
+ hwaddr addr, MemTxAttrs attrs, MemTxResult *result, MemOp endian)
{
uint8_t *ptr;
uint64_t val;
@@ -116,11 +114,11 @@ static inline uint64_t glue(address_space_ldq_internal, SUFFIX)(ARG1_DECL,
/* I/O case */
r = memory_region_dispatch_read(mr, addr1, &val, MO_64, attrs);
#if defined(TARGET_WORDS_BIGENDIAN)
- if (endian == DEVICE_LITTLE_ENDIAN) {
+ if (endian == MO_LE) {
val = bswap64(val);
}
#else
- if (endian == DEVICE_BIG_ENDIAN) {
+ if (endian == MO_BE) {
val = bswap64(val);
}
#endif
@@ -128,10 +126,10 @@ 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:
+ case MO_BE:
val = ldq_be_p(ptr);
break;
default:
@@ -154,21 +152,21 @@ uint64_t glue(address_space_ldq, SUFFIX)(ARG1_DECL,
hwaddr addr, MemTxAttrs attrs, MemTxResult *result)
{
return glue(address_space_ldq_internal, SUFFIX)(ARG1, addr, attrs, result,
- DEVICE_NATIVE_ENDIAN);
+ MO_TE);
}
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,
hwaddr addr, MemTxAttrs attrs, MemTxResult *result)
{
return glue(address_space_ldq_internal, SUFFIX)(ARG1, addr, attrs, result,
- DEVICE_BIG_ENDIAN);
+ MO_BE);
}
uint32_t glue(address_space_ldub, SUFFIX)(ARG1_DECL,
@@ -207,8 +205,7 @@ uint32_t glue(address_space_ldub, SUFFIX)(ARG1_DECL,
/* warning: addr must be aligned */
static inline uint32_t glue(address_space_lduw_internal, SUFFIX)(ARG1_DECL,
- hwaddr addr, MemTxAttrs attrs, MemTxResult *result,
- enum device_endian endian)
+ hwaddr addr, MemTxAttrs attrs, MemTxResult *result, MemOp endian)
{
uint8_t *ptr;
uint64_t val;
@@ -226,11 +223,11 @@ static inline uint32_t glue(address_space_lduw_internal, SUFFIX)(ARG1_DECL,
/* I/O case */
r = memory_region_dispatch_read(mr, addr1, &val, MO_16, attrs);
#if defined(TARGET_WORDS_BIGENDIAN)
- if (endian == DEVICE_LITTLE_ENDIAN) {
+ if (endian == MO_LE) {
val = bswap16(val);
}
#else
- if (endian == DEVICE_BIG_ENDIAN) {
+ if (endian == MO_BE) {
val = bswap16(val);
}
#endif
@@ -238,10 +235,10 @@ 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:
+ case MO_BE:
val = lduw_be_p(ptr);
break;
default:
@@ -264,21 +261,21 @@ uint32_t glue(address_space_lduw, SUFFIX)(ARG1_DECL,
hwaddr addr, MemTxAttrs attrs, MemTxResult *result)
{
return glue(address_space_lduw_internal, SUFFIX)(ARG1, addr, attrs, result,
- DEVICE_NATIVE_ENDIAN);
+ MO_TE);
}
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,
hwaddr addr, MemTxAttrs attrs, MemTxResult *result)
{
return glue(address_space_lduw_internal, SUFFIX)(ARG1, addr, attrs, result,
- DEVICE_BIG_ENDIAN);
+ MO_BE);
}
/* warning: addr must be aligned. The ram page is not masked as dirty
@@ -322,8 +319,8 @@ void glue(address_space_stl_notdirty, SUFFIX)(ARG1_DECL,
/* warning: addr must be aligned */
static inline void glue(address_space_stl_internal, SUFFIX)(ARG1_DECL,
- hwaddr addr, uint32_t val, MemTxAttrs attrs,
- MemTxResult *result, enum device_endian endian)
+ hwaddr addr, uint32_t val, MemTxAttrs attrs, MemTxResult *result,
+ MemOp endian)
{
uint8_t *ptr;
MemoryRegion *mr;
@@ -338,11 +335,11 @@ static inline void glue(address_space_stl_internal, SUFFIX)(ARG1_DECL,
release_lock |= prepare_mmio_access(mr);
#if defined(TARGET_WORDS_BIGENDIAN)
- if (endian == DEVICE_LITTLE_ENDIAN) {
+ if (endian == MO_LE) {
val = bswap32(val);
}
#else
- if (endian == DEVICE_BIG_ENDIAN) {
+ if (endian == MO_BE) {
val = bswap32(val);
}
#endif
@@ -351,10 +348,10 @@ 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:
+ case MO_BE:
stl_be_p(ptr, val);
break;
default:
@@ -377,21 +374,21 @@ void glue(address_space_stl, SUFFIX)(ARG1_DECL,
hwaddr addr, uint32_t val, MemTxAttrs attrs, MemTxResult *result)
{
glue(address_space_stl_internal, SUFFIX)(ARG1, addr, val, attrs,
- result, DEVICE_NATIVE_ENDIAN);
+ result, MO_TE);
}
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);
+ glue(address_space_stl_internal, SUFFIX)(ARG1, addr, val, attrs, result,
+ MO_LE);
}
void glue(address_space_stl_be, SUFFIX)(ARG1_DECL,
hwaddr addr, uint32_t val, MemTxAttrs attrs, MemTxResult *result)
{
glue(address_space_stl_internal, SUFFIX)(ARG1, addr, val, attrs,
- result, DEVICE_BIG_ENDIAN);
+ result, MO_BE);
}
void glue(address_space_stb, SUFFIX)(ARG1_DECL,
@@ -428,7 +425,7 @@ void glue(address_space_stb, SUFFIX)(ARG1_DECL,
/* warning: addr must be aligned */
static inline void glue(address_space_stw_internal, SUFFIX)(ARG1_DECL,
hwaddr addr, uint32_t val, MemTxAttrs attrs,
- MemTxResult *result, enum device_endian endian)
+ MemTxResult *result, MemOp endian)
{
uint8_t *ptr;
MemoryRegion *mr;
@@ -443,11 +440,11 @@ static inline void glue(address_space_stw_internal, SUFFIX)(ARG1_DECL,
release_lock |= prepare_mmio_access(mr);
#if defined(TARGET_WORDS_BIGENDIAN)
- if (endian == DEVICE_LITTLE_ENDIAN) {
+ if (endian == MO_LE) {
val = bswap16(val);
}
#else
- if (endian == DEVICE_BIG_ENDIAN) {
+ if (endian == MO_BE) {
val = bswap16(val);
}
#endif
@@ -456,10 +453,10 @@ 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:
+ case MO_BE:
stw_be_p(ptr, val);
break;
default:
@@ -482,26 +479,26 @@ void glue(address_space_stw, SUFFIX)(ARG1_DECL,
hwaddr addr, uint32_t val, MemTxAttrs attrs, MemTxResult *result)
{
glue(address_space_stw_internal, SUFFIX)(ARG1, addr, val, attrs, result,
- DEVICE_NATIVE_ENDIAN);
+ MO_TE);
}
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,
hwaddr addr, uint32_t val, MemTxAttrs attrs, MemTxResult *result)
{
glue(address_space_stw_internal, SUFFIX)(ARG1, addr, val, attrs, result,
- DEVICE_BIG_ENDIAN);
+ MO_BE);
}
static void glue(address_space_stq_internal, SUFFIX)(ARG1_DECL,
hwaddr addr, uint64_t val, MemTxAttrs attrs,
- MemTxResult *result, enum device_endian endian)
+ MemTxResult *result, MemOp endian)
{
uint8_t *ptr;
MemoryRegion *mr;
@@ -516,11 +513,11 @@ static void glue(address_space_stq_internal, SUFFIX)(ARG1_DECL,
release_lock |= prepare_mmio_access(mr);
#if defined(TARGET_WORDS_BIGENDIAN)
- if (endian == DEVICE_LITTLE_ENDIAN) {
+ if (endian == MO_LE) {
val = bswap64(val);
}
#else
- if (endian == DEVICE_BIG_ENDIAN) {
+ if (endian == MO_BE) {
val = bswap64(val);
}
#endif
@@ -529,10 +526,10 @@ 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:
+ case MO_BE:
stq_be_p(ptr, val);
break;
default:
@@ -555,21 +552,21 @@ void glue(address_space_stq, SUFFIX)(ARG1_DECL,
hwaddr addr, uint64_t val, MemTxAttrs attrs, MemTxResult *result)
{
glue(address_space_stq_internal, SUFFIX)(ARG1, addr, val, attrs, result,
- DEVICE_NATIVE_ENDIAN);
+ MO_TE);
}
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,
hwaddr addr, uint64_t val, MemTxAttrs attrs, MemTxResult *result)
{
glue(address_space_stq_internal, SUFFIX)(ARG1, addr, val, attrs, result,
- DEVICE_BIG_ENDIAN);
+ MO_BE);
}
#undef ARG1_DECL