X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=cpu-exec.c;fp=cpu-exec.c;h=ec46380435261a742bb5ed99c6ac1dd28b4fa33f;hb=80cf2c81a1be732cf1ce4a810ddc7721714d684e;hp=31c089dac0a7db66ac4d6270c293d1294bbc598a;hpb=a78d0eabd4ca05789a9604fe632b9399bf378fee;p=qemu.git diff --git a/cpu-exec.c b/cpu-exec.c index 31c089dac..ec4638043 100644 --- a/cpu-exec.c +++ b/cpu-exec.c @@ -230,7 +230,7 @@ int cpu_exec(CPUArchState *env) #if defined(TARGET_I386) /* put eflags in CPU temporary format */ CC_SRC = env->eflags & (CC_O | CC_S | CC_Z | CC_A | CC_P | CC_C); - DF = 1 - (2 * ((env->eflags >> 10) & 1)); + env->df = 1 - (2 * ((env->eflags >> 10) & 1)); CC_OP = CC_OP_EFLAGS; env->eflags &= ~(DF_MASK | CC_O | CC_S | CC_Z | CC_A | CC_P | CC_C); #elif defined(TARGET_SPARC) @@ -681,7 +681,7 @@ int cpu_exec(CPUArchState *env) #if defined(TARGET_I386) /* restore flags in standard format */ env->eflags = env->eflags | cpu_cc_compute_all(env, CC_OP) - | (DF & DF_MASK); + | (env->df & DF_MASK); #elif defined(TARGET_ARM) /* XXX: Save/restore host fpu exception state?. */ #elif defined(TARGET_UNICORE32)