From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MmkJU-0005k6-Pa for qemu-devel@nongnu.org; Sun, 13 Sep 2009 04:20:00 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MmkJQ-0005jA-5v for qemu-devel@nongnu.org; Sun, 13 Sep 2009 04:20:00 -0400 Received: from [199.232.76.173] (port=38598 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MmkJQ-0005j5-0q for qemu-devel@nongnu.org; Sun, 13 Sep 2009 04:19:56 -0400 Received: from mx1.redhat.com ([209.132.183.28]:20025) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MmkJP-00084I-Ft for qemu-devel@nongnu.org; Sun, 13 Sep 2009 04:19:55 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n8D8JrEN026625 for ; Sun, 13 Sep 2009 04:19:53 -0400 Received: from dhcp-1-237.tlv.redhat.com (dhcp-1-237.tlv.redhat.com [10.35.1.237]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n8D8Jq6g003112 for ; Sun, 13 Sep 2009 04:19:53 -0400 Date: Sun, 13 Sep 2009 11:19:51 +0300 From: Gleb Natapov Message-ID: <20090913081951.GO22885@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] [PATCH] set correct CS seg limit and flags on sipi List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org TCG works with incorrect values somehow. Signed-off-by: Gleb Natapov 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; } -- Gleb.