]> git.proxmox.com Git - qemu.git/blobdiff - target-i386/seg_helper.c
cpu: Replace do_interrupt() by CPUClass::do_interrupt method
[qemu.git] / target-i386 / seg_helper.c
index 3247deeb60c1ace627d59c0bcbdd49e8950ff73d..906e4f3d2005be0a03ff5061825630995b5a5477 100644 (file)
@@ -1231,8 +1231,11 @@ static void do_interrupt_all(CPUX86State *env, int intno, int is_int,
 #endif
 }
 
-void do_interrupt(CPUX86State *env)
+void x86_cpu_do_interrupt(CPUState *cs)
 {
+    X86CPU *cpu = X86_CPU(cs);
+    CPUX86State *env = &cpu->env;
+
 #if defined(CONFIG_USER_ONLY)
     /* if user mode only, we simulate a fake exception
        which will be handled outside the cpu execution