]> Git Repo - qemu.git/blobdiff - hw/apic.c
get rid of hostregs_helper.h
[qemu.git] / hw / apic.c
index 2c414c1878f69b72e9a273aba63032e605cec06b..87e7dc0ba9e4a5d1ee11faa462ffebafd7f2bfe9 100644 (file)
--- a/hw/apic.c
+++ b/hw/apic.c
@@ -516,7 +516,7 @@ void apic_sipi(CPUState *env)
 
     env->eip = 0;
     cpu_x86_load_seg_cache(env, R_CS, s->sipi_vector << 8, s->sipi_vector << 12,
-                           0xffff, 0);
+                           env->segs[R_CS].limit, env->segs[R_CS].flags);
     env->halted = 0;
     s->wait_for_sipi = 0;
 }
@@ -981,7 +981,6 @@ int apic_init(CPUState *env)
     s->id = env->cpuid_apic_id;
     s->cpu_env = env;
 
-    apic_reset(s);
     msix_supported = 1;
 
     /* XXX: mapping more APICs at the same memory location */
This page took 0.024123 seconds and 4 git commands to generate.