From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JegWj-00064y-MF for qemu-devel@nongnu.org; Wed, 26 Mar 2008 21:03:33 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JegWi-000645-N0 for qemu-devel@nongnu.org; Wed, 26 Mar 2008 21:03:33 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JegWi-00063x-Fh for qemu-devel@nongnu.org; Wed, 26 Mar 2008 21:03:32 -0400 Received: from mx1.redhat.com ([66.187.233.31]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JegWi-0003fS-Fr for qemu-devel@nongnu.org; Wed, 26 Mar 2008 21:03:32 -0400 From: Glauber Costa Date: Wed, 26 Mar 2008 21:57:16 -0300 Message-Id: <12065794361493-git-send-email-gcosta@redhat.com> Subject: [Qemu-devel] [PATCH] ignore reads to the EOI register. Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: kvm-devel@lists.sourceforge.net Cc: glommer@gmail.com, qemu-devel@nongnu.org, macro@linux-mips.org, Glauber Costa They seem legal in real hardware, even though the EOI is a write-only register. By "legal" I mean they are completely ignored, but at least, don't cause any bits to be set at ESR. Without this patch, some (very recent) linux git trees will fail to boot in i386. This is generated from kvm-userspace, but should apply well to plain qemu too. Signed-off-by: Glauber Costa --- qemu/hw/apic.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/qemu/hw/apic.c b/qemu/hw/apic.c index 92248dd..4102493 100644 --- a/qemu/hw/apic.c +++ b/qemu/hw/apic.c @@ -615,6 +615,8 @@ static uint32_t apic_mem_readl(void *opaque, target_phys_addr_t addr) /* ppr */ val = apic_get_ppr(s); break; + case 0x0b: + break; case 0x0d: val = s->log_dest << 24; break; -- 1.5.0.6