aboutsummaryrefslogtreecommitdiff
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
parentf4e94dfefb63e57e96c19da4cebf787e1d2726b6 (diff)
downloadqemu-19a2223feaabc6c574af57c8c5f1c21a60e8d194.zip
qemu-19a2223feaabc6c574af57c8c5f1c21a60e8d194.tar.gz
qemu-19a2223feaabc6c574af57c8c5f1c21a60e8d194.tar.bz2
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>
-rw-r--r--hw/apic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/apic.c b/hw/apic.c
index 2c414c1..c89008e 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;
}