|
From: | Eric Fronberg |
Subject: | Re: [Qemu-discuss] Mac access to sse4.2 x86 extentions |
Date: | Thu, 1 Nov 2012 21:39:40 -0500 |
I've been able to resolve my issues and wonder whether there are better ways other than my hack. I expect this is the wrong place but I wanted to put this out for other qemu'ers All changes made to target-i386/cpu.c mmacbookpro-enf:~ enf$ diff -c ~/Downloads/qemu-1.2.0/target-i386/cpu.c ~/src/play/c/qemu-1.2.0/target-i386/cpu.c *** /Users/enf/Downloads/qemu-1.2.0/target-i386/cpu.c 2012-09-05 07:03:06.000000000 -0700 --- /Users/enf/src/play/c/qemu-1.2.0/target-i386/cpu.c 2012-11-01 19:32:19.000000000 -0700 *************** *** 116,122 **** void host_cpuid(uint32_t function, uint32_t count, uint32_t *eax, uint32_t *ebx, uint32_t *ecx, uint32_t *edx) { ! #if defined(CONFIG_KVM) uint32_t vec[4]; #ifdef __x86_64__ --- 116,122 ---- void host_cpuid(uint32_t function, uint32_t count, uint32_t *eax, uint32_t *ebx, uint32_t *ecx, uint32_t *edx) { ! #if defined(CONFIG_KVM) || defined(__APPLE__) uint32_t vec[4]; #ifdef __x86_64__ *************** *** 273,279 **** CPUID_VME, CPUID_DTS, CPUID_SS, CPUID_HT, CPUID_TM, CPUID_PBE */ #define TCG_EXT_FEATURES (CPUID_EXT_SSE3 | CPUID_EXT_MONITOR | \ CPUID_EXT_CX16 | CPUID_EXT_POPCNT | \ ! CPUID_EXT_HYPERVISOR) /* missing: CPUID_EXT_DTES64, CPUID_EXT_DSCPL, CPUID_EXT_VMX, CPUID_EXT_EST, CPUID_EXT_TM2, CPUID_EXT_XTPR, CPUID_EXT_PDCM, CPUID_EXT_XSAVE */ --- 273,279 ---- CPUID_VME, CPUID_DTS, CPUID_SS, CPUID_HT, CPUID_TM, CPUID_PBE */ #define TCG_EXT_FEATURES (CPUID_EXT_SSE3 | CPUID_EXT_MONITOR | \ CPUID_EXT_CX16 | CPUID_EXT_POPCNT | \ ! CPUID_EXT_HYPERVISOR | CPUID_EXT_SSE42) /* missing: CPUID_EXT_DTES64, CPUID_EXT_DSCPL, CPUID_EXT_VMX, CPUID_EXT_EST, CPUID_EXT_TM2, CPUID_EXT_XTPR, CPUID_EXT_PDCM, CPUID_EXT_XSAVE */ -- Eric On Nov 1, 2012, at 3:53 PM, Eric Fronberg <address@hidden> wrote:
|
[Prev in Thread] | Current Thread | [Next in Thread] |