]> git.proxmox.com Git - mirror_qemu.git/blobdiff - target/i386/tcg/misc_helper.c
target/i386: clean up cpu_cc_compute_all
[mirror_qemu.git] / target / i386 / tcg / misc_helper.c
index 868f36ab7f55cf6b29e76bdb31161cc6f1f4fe98..b0f0f7b893b306a8886beae6ddc7f6db528f7c3a 100644 (file)
@@ -41,9 +41,9 @@ void helper_into(CPUX86State *env, int next_eip_addend)
 {
     int eflags;
 
-    eflags = cpu_cc_compute_all(env, CC_OP);
+    eflags = cpu_cc_compute_all(env);
     if (eflags & CC_O) {
-        raise_interrupt(env, EXCP04_INTO, 1, 0, next_eip_addend);
+        raise_interrupt(env, EXCP04_INTO, next_eip_addend);
     }
 }
 
@@ -134,7 +134,7 @@ void helper_wrpkru(CPUX86State *env, uint32_t ecx, uint64_t val)
 
 target_ulong HELPER(rdpid)(CPUX86State *env)
 {
-#if defined CONFIG_SOFTMMU
+#if !defined CONFIG_USER_ONLY
     return env->tsc_aux;
 #elif defined CONFIG_LINUX && defined CONFIG_GETCPU
     unsigned cpu, node;