2 * QEMU Hypervisor.framework support
4 * This work is licensed under the terms of the GNU GPL, version 2. See
5 * the COPYING file in the top-level directory.
7 * Contributions after 2012-01-13 are licensed under the terms of the
8 * GNU GPL, version 2 or (at your option) any later version.
11 #include "qemu/osdep.h"
12 #include "qemu/error-report.h"
13 #include "sysemu/hvf.h"
14 #include "sysemu/hvf_int.h"
16 void assert_hvf_ok(hv_return_t ret
)
18 if (ret
== HV_SUCCESS
) {
24 error_report("Error: HV_ERROR");
27 error_report("Error: HV_BUSY");
30 error_report("Error: HV_BAD_ARGUMENT");
33 error_report("Error: HV_NO_RESOURCES");
36 error_report("Error: HV_NO_DEVICE");
39 error_report("Error: HV_UNSUPPORTED");
41 #if defined(MAC_OS_VERSION_11_0) && \
42 MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_VERSION_11_0
44 error_report("Error: HV_DENIED");
48 error_report("Unknown Error");
54 struct hvf_sw_breakpoint
*hvf_find_sw_breakpoint(CPUState
*cpu
, target_ulong pc
)
56 struct hvf_sw_breakpoint
*bp
;
58 QTAILQ_FOREACH(bp
, &hvf_state
->hvf_sw_breakpoints
, entry
) {
66 int hvf_sw_breakpoints_active(CPUState
*cpu
)
68 return !QTAILQ_EMPTY(&hvf_state
->hvf_sw_breakpoints
);
71 int hvf_update_guest_debug(CPUState
*cpu
)
73 hvf_arch_update_guest_debug(cpu
);