qemu-cr16/hw
Marc-André Lureau 8e3b0cbb72 Replace qemu_real_host_page variables with inlined functions
Replace the global variables with inlined helper functions. getpagesize() is very
likely annotated with a "const" function attribute (at least with glibc), and thus
optimization should apply even better.

This avoids the need for a constructor initialization too.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20220323155743.1585078-12-marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2022-04-06 10:50:38 +02:00
..
9pfs 9p: move P9_XATTR_SIZE_MAX from 9p.h to 9p.c 2022-04-01 13:06:07 +02:00
acpi Replace GCC_FMT_ATTR with G_GNUC_PRINTF 2022-03-22 14:40:51 +04:00
adc hw/adc: Add basic Aspeed ADC model 2021-10-12 08:20:08 +02:00
alpha
arm Replace TARGET_WORDS_BIGENDIAN 2022-04-06 10:50:37 +02:00
audio * Fix stack-overflow due to recursive DMA in intel-hda (CVE-2021-3611) 2022-03-22 20:45:30 +00:00
avr hw/avr: Realize AVRCPU qdev object using qdev_realize() 2021-12-17 10:43:24 +01:00
block aspeed queue: 2022-03-09 18:06:40 +00:00
char Use g_new() & friends where that makes obvious sense 2022-03-21 15:44:44 +01:00
core Replace config-time define HOST_WORDS_BIGENDIAN 2022-04-06 10:50:37 +02:00
cpu
cris
display Replace qemu_real_host_page variables with inlined functions 2022-04-06 10:50:38 +02:00
dma Use g_new() & friends where that makes obvious sense 2022-03-21 15:44:44 +01:00
gpio hw: aspeed_gpio: Cleanup stray semicolon after switch 2022-03-08 09:18:11 +01:00
hppa hppa: Add support for an emulated TOC/NMI button. 2022-02-02 18:46:42 +01:00
hyperv dma: Let dma_memory_map() take MemTxAttrs argument 2021-12-30 17:16:32 +01:00
i2c Use g_new() & friends where that makes obvious sense 2022-03-21 15:44:44 +01:00
i386 hw: Fix misleading hexadecimal format 2022-03-24 10:38:42 +00:00
ide MIPS patches queue 2022-03-09 09:13:39 +00:00
input Use g_new() & friends where that makes obvious sense 2022-03-21 15:44:44 +01:00
intc Replace qemu_real_host_page variables with inlined functions 2022-04-06 10:50:38 +02:00
ipack
ipmi hw/isa: Inline and remove one-line isa_init_irq() 2022-03-08 19:38:17 +01:00
isa hw/isa: Inline and remove one-line isa_init_irq() 2022-03-08 19:38:17 +01:00
m68k Use g_new() & friends where that makes obvious sense 2022-03-21 15:44:44 +01:00
mem Mark remaining global TypeInfo instances as const 2022-02-21 13:30:20 +00:00
microblaze Replace TARGET_WORDS_BIGENDIAN 2022-04-06 10:50:37 +02:00
mips Replace TARGET_WORDS_BIGENDIAN 2022-04-06 10:50:37 +02:00
misc hw: Fix misleading hexadecimal format 2022-03-24 10:38:42 +00:00
net Replace config-time define HOST_WORDS_BIGENDIAN 2022-04-06 10:50:37 +02:00
nios2 Replace TARGET_WORDS_BIGENDIAN 2022-04-06 10:50:37 +02:00
nubus
nvme Use g_new() & friends where that makes obvious sense 2022-03-21 15:44:44 +01:00
nvram Replace qemu_real_host_page variables with inlined functions 2022-04-06 10:50:38 +02:00
openrisc hw/openrisc/openrisc_sim: Add support for initrd loading 2022-02-26 10:39:36 +09:00
pci Use g_new() & friends where that makes obvious sense 2022-03-21 15:44:44 +01:00
pci-bridge pci: expose TYPE_XIO3130_DOWNSTREAM name 2022-03-06 05:08:23 -05:00
pci-host Use g_new() & friends where that makes obvious sense 2022-03-21 15:44:44 +01:00
pcmcia
ppc Replace qemu_real_host_page variables with inlined functions 2022-04-06 10:50:38 +02:00
rdma Replace qemu_real_host_page variables with inlined functions 2022-04-06 10:50:38 +02:00
remote hw/remote: Add missing include 2022-02-21 10:18:06 +01:00
riscv hw: riscv: opentitan: fixup SPI addresses 2022-03-03 13:14:50 +10:00
rtc Replace qemu_gettimeofday() with g_get_real_time() 2022-04-06 10:50:37 +02:00
rx
s390x Replace config-time define HOST_WORDS_BIGENDIAN 2022-04-06 10:50:37 +02:00
scsi Replace qemu_real_host_page variables with inlined functions 2022-04-06 10:50:38 +02:00
sd hw/sd/sdhci: Prohibit DMA accesses to devices 2022-03-21 10:25:21 +01:00
sensor hw/sensor: add Renesas raa228000 device 2022-03-08 18:46:48 +01:00
sh4 Use g_new() & friends where that makes obvious sense 2022-03-21 15:44:44 +01:00
smbios hw/smbios: Add table 4 parameter, "processor-id" 2022-03-06 05:28:55 -05:00
sparc Use g_new() & friends where that makes obvious sense 2022-03-21 15:44:44 +01:00
sparc64 Use g_new() & friends where that makes obvious sense 2022-03-21 15:44:44 +01:00
ssi aspeed/smc: Fix error log 2022-03-08 09:18:11 +01:00
timer Use g_new() & friends where that makes obvious sense 2022-03-21 15:44:44 +01:00
tpm Replace qemu_real_host_page variables with inlined functions 2022-04-06 10:50:38 +02:00
tricore
usb hw/usb/redirect.c: Stop using qemu_oom_check() 2022-03-04 11:20:16 +01:00
vfio Replace qemu_real_host_page variables with inlined functions 2022-04-06 10:50:38 +02:00
virtio Replace qemu_real_host_page variables with inlined functions 2022-04-06 10:50:38 +02:00
watchdog watchdog: remove select_watchdog_action 2021-11-02 15:57:27 +01:00
xen Replace GCC_FMT_ATTR with G_GNUC_PRINTF 2022-03-22 14:40:51 +04:00
xenpv
xtensa Replace TARGET_WORDS_BIGENDIAN 2022-04-06 10:50:37 +02:00
Kconfig
meson.build