i386: Fix build

This commit is contained in:
Lioncash 2021-03-05 08:33:11 -05:00
parent 5436b713ce
commit dec4c70142
2 changed files with 9 additions and 15 deletions

View file

@ -5904,24 +5904,18 @@ static void x86_cpu_common_class_init(struct uc_struct *uc, ObjectClass *oc, voi
void x86_cpu_register_types(void *opaque)
{
const TypeInfo x86_cpu_type_info = {
TYPE_X86_CPU,
TYPE_CPU,
.name = TYPE_X86_CPU,
.parent = TYPE_CPU,
sizeof(X86CPUClass),
sizeof(X86CPU),
opaque,
.class_size = sizeof(X86CPUClass),
.instance_size = sizeof(X86CPU),
.instance_userdata = opaque,
x86_cpu_initfn,
NULL,
NULL,
.instance_init = x86_cpu_initfn,
NULL,
.class_init = x86_cpu_common_class_init,
x86_cpu_common_class_init,
NULL,
NULL,
true,
.abstract = true,
};
int i;

View file

@ -2942,7 +2942,7 @@ void update_mxcsr_status(CPUX86State *env)
void update_mxcsr_from_sse_status(CPUX86State *env)
{
if (tcg_enabled()) {
if (tcg_enabled(env->uc)) {
uint8_t flags = get_float_exception_flags(&env->sse_status);
/*
* The MXCSR denormal flag has opposite semantics to