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) void x86_cpu_register_types(void *opaque)
{ {
const TypeInfo x86_cpu_type_info = { const TypeInfo x86_cpu_type_info = {
TYPE_X86_CPU, .name = TYPE_X86_CPU,
TYPE_CPU, .parent = TYPE_CPU,
sizeof(X86CPUClass), .class_size = sizeof(X86CPUClass),
sizeof(X86CPU), .instance_size = sizeof(X86CPU),
opaque, .instance_userdata = opaque,
x86_cpu_initfn, .instance_init = x86_cpu_initfn,
NULL,
NULL,
NULL, .class_init = x86_cpu_common_class_init,
x86_cpu_common_class_init, .abstract = true,
NULL,
NULL,
true,
}; };
int i; int i;

View file

@ -2942,7 +2942,7 @@ void update_mxcsr_status(CPUX86State *env)
void update_mxcsr_from_sse_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); uint8_t flags = get_float_exception_flags(&env->sse_status);
/* /*
* The MXCSR denormal flag has opposite semantics to * The MXCSR denormal flag has opposite semantics to