summaryrefslogtreecommitdiff
path: root/hw/apic.c
diff options
context:
space:
mode:
authorGleb Natapov <gleb@redhat.com>2009-09-13 11:19:51 +0300
committerAnthony Liguori <aliguori@us.ibm.com>2009-10-05 09:32:53 -0500
commit19a2223feaabc6c574af57c8c5f1c21a60e8d194 (patch)
tree19dc25d0cad85d2e6b0eb71348d35e42a1527a32 /hw/apic.c
parentf4e94dfefb63e57e96c19da4cebf787e1d2726b6 (diff)
set correct CS seg limit and flags on sipi
TCG works with incorrect values somehow. Signed-off-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/apic.c')
-rw-r--r--hw/apic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/apic.c b/hw/apic.c
index 2c414c187..c89008ea8 100644
--- 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;
}