diff options
author | Alexander Graf <agraf@csgraf.de> | 2021-06-03 14:09:31 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2021-06-03 16:43:26 +0100 |
commit | 358e7505b2795d3df505661da7be9dc81eaa91d9 (patch) | |
tree | 1801ef5e82e00d28f1ac1058ad8616aeceda1734 /include/sysemu | |
parent | 39a3445012e44b01f6a7e7b29cf7477ef2a656eb (diff) | |
download | qemu-358e7505b2795d3df505661da7be9dc81eaa91d9.zip qemu-358e7505b2795d3df505661da7be9dc81eaa91d9.tar.gz qemu-358e7505b2795d3df505661da7be9dc81eaa91d9.tar.bz2 |
hvf: Move cpu functions into common directory
Until now, Hypervisor.framework has only been available on x86_64 systems.
With Apple Silicon shipping now, it extends its reach to aarch64. To
prepare for support for multiple architectures, let's start moving common
code out into its own accel directory.
This patch moves CPU and memory operations over. While at it, make sure
the code is consumable on non-i386 systems.
Signed-off-by: Alexander Graf <agraf@csgraf.de>
Reviewed-by: Sergio Lopez <slp@redhat.com>
Message-id: 20210519202253.76782-4-agraf@csgraf.de
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'include/sysemu')
-rw-r--r-- | include/sysemu/hvf_int.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/sysemu/hvf_int.h b/include/sysemu/hvf_int.h index 3deb4cf..4c657b0 100644 --- a/include/sysemu/hvf_int.h +++ b/include/sysemu/hvf_int.h @@ -13,6 +13,10 @@ #include <Hypervisor/hv.h> +void hvf_set_phys_mem(MemoryRegionSection *, bool); void assert_hvf_ok(hv_return_t ret); +hvf_slot *hvf_find_overlap_slot(uint64_t, uint64_t); +int hvf_put_registers(CPUState *); +int hvf_get_registers(CPUState *); #endif |