qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [Patch] Small fix for qemu APIC for Mac OS X support
@ 2010-11-23 21:25 adq
  2010-11-23 23:41 ` Alexander Graf
  0 siblings, 1 reply; 16+ messages in thread
From: adq @ 2010-11-23 21:25 UTC (permalink / raw)
  To: qemu-devel

This patch ups the APIC version from 0x11 to 0x14. After that Mac OS X
loads successfully (with appropriate kexts, applesmc ain't hooked up
properly yet I see unfortunately).

According to to the Intel IA-32 Software Developers Manual Vol 3 page
290, the version should be 0x14 Pentium 4/Xeon CPUs anyway.

Signed-off-by: Andrew de Quincey <adq@lidskialf.net>

diff --git a/hw/apic.c b/hw/apic.c
index 5f4a87c..20304e0 100644
--- a/hw/apic.c
+++ b/hw/apic.c
@@ -704,7 +704,7 @@ static uint32_t apic_mem_readl(void *opaque,
target_phys_addr_t addr)
         val = s->id << 24;
         break;
     case 0x03: /* version */
-        val = 0x11 | ((APIC_LVT_NB - 1) << 16); /* version 0x11 */
+        val = 0x14 | ((APIC_LVT_NB - 1) << 16); /* version 0x14 */
         break;
     case 0x08:
         val = s->tpr;

^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2010-12-05 18:41 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-23 21:25 [Qemu-devel] [Patch] Small fix for qemu APIC for Mac OS X support adq
2010-11-23 23:41 ` Alexander Graf
2010-11-24  2:40   ` adq
2010-11-24 11:00     ` Alexander Graf
2010-11-24 14:08       ` adq
2010-11-25 11:28         ` Isaku Yamahata
2010-11-25 20:18           ` adq
2010-11-26 12:39             ` Isaku Yamahata
2010-11-26 12:40             ` Isaku Yamahata
2010-12-05 14:36               ` adq
2010-12-05 18:40               ` Andreas Färber
2010-11-25 11:46       ` [Qemu-devel] " Jan Kiszka
2010-11-25 21:03         ` adq
2010-11-25 23:27           ` Alexander Graf
2010-11-25 20:24       ` [Qemu-devel] " adq
2010-11-25 23:31         ` Alexander Graf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).