unicorn/qemu/include
Peter Maydell db8b0a82b1
cpu: Support a target CPU having a variable page size
Support target CPUs having a page size which isn't knownn
at compile time. To use this, the CPU implementation should:
* define TARGET_PAGE_BITS_VARY
* not define TARGET_PAGE_BITS
* define TARGET_PAGE_BITS_MIN to the smallest value it
might possibly want for TARGET_PAGE_BITS
* call set_preferred_target_page_bits() in its realize
function to indicate the actual preferred target page
size for the CPU (and report any error from it)

In CONFIG_USER_ONLY, the CPU implementation should continue
to define TARGET_PAGE_BITS appropriately for the guest
OS page size.

Machines which want to take advantage of having the page
size something larger than TARGET_PAGE_BITS_MIN must
set the MachineClass minimum_page_bits field to a value
which they guarantee will be no greater than the preferred
page size for any CPU they create.

Note that changing the target page size by setting
minimum_page_bits is a migration compatibility break
for that machine.

For debugging purposes, attempts to use TARGET_PAGE_SIZE
before it has been finally confirmed will assert.

Backports commit 20bccb82ff3ea09bcb7c4ee226d3160cab15f7da from qemu
2018-02-26 12:29:08 -05:00
..
crypto Drop unused crypto source files 2018-02-17 15:23:57 -05:00
exec cpu: Support a target CPU having a variable page size 2018-02-26 12:29:08 -05:00
fpu fpu: add mechanism to check for invalid long double formats 2018-02-26 02:27:40 -05:00
hw cpu: Support a target CPU having a variable page size 2018-02-26 12:29:08 -05:00
qapi Clean up header guards that don't match their file name 2018-02-25 04:18:42 -05:00
qemu atomic: base mb_read/mb_set on load-acquire and store-release 2018-02-26 10:02:46 -05:00
qom cpus: pass CPUState to run_on_cpu helpers 2018-02-26 04:54:55 -05:00
sysemu accel: make configure_accelerator return void 2018-02-24 00:31:28 -05:00
config.h import 2015-08-21 15:04:50 +08:00
elf.h fix merge conflicts 2017-03-10 21:04:33 +08:00
glib_compat.h glib_compat: Amend header guard 2018-02-25 23:12:20 -05:00
qemu-common.h cpu: Support a target CPU having a variable page size 2018-02-26 12:29:08 -05:00