In case of HAX cpu state sync is performed every time HAX leaves kernel
before emulating MMIO instructions, no need to do this again in YaGl
device.
Signed-off-by: Igor Mitsyanko <i.mitsyanko@samsung.com>
}
}
-#ifdef TARGET_I386
+#ifdef CONFIG_KVM
cpu_synchronize_state(cpu_single_env);
memcpy(&ps->cr[0], &((CPUX86State*)cpu_single_env)->cr[0], sizeof(ps->cr));
#endif
QLIST_HEAD(, yagl_thread_state) threads;
-#ifdef TARGET_I386
+#ifdef CONFIG_KVM
target_ulong cr[5];
#endif
};
#include "kvm.h"
#include "hax.h"
-#ifdef TARGET_I386
+#ifdef CONFIG_KVM
static __inline void yagl_cpu_synchronize_state(struct yagl_process_state *ps)
{
- if (kvm_enabled() || hax_enabled()) {
+ if (kvm_enabled()) {
memcpy(&((CPUX86State*)cpu_single_env)->cr[0], &ps->cr[0], sizeof(ps->cr));
}
}