Intel cache info
PATCH 1/1 Intel cache info
Fix the CPUID function 2 to correctly report cache info for the particular processor. I chose the values closest to the ones reported in the AMD registers. This is important for operating systems that detect cache line width and later call CLFLUSH for each line. In the previous implementation the values didn't specify L2 cache line width and so Darwin endlessly looped trying to flush them.
Quoted 6 lines · Filip Navara
Fix the CPUID function 2 to correctly report cache info for the particular processor. I chose the values closest to the ones reported in the AMD registers. This is important for operating systems that detect cache line width and later call CLFLUSH for each line. In the previous implementation the values didn't specify L2 cache line width and so Darwin endlessly looped trying to flush them.
It would be nice to see the patch.
I should probably include it in my patch that exposes host cpu features.
Thanks,
Dan.
Quoted 6 lines · Filip Navara
Fix the CPUID function 2 to correctly report cache info for the particular processor. I chose the values closest to the ones reported in the AMD registers. This is important for operating systems that detect cache line width and later call CLFLUSH for each line. In the previous implementation the values didn't specify L2 cache line width and so Darwin endlessly looped trying to flush them.
No patch attached.
Thiemo
Here it is, sorry for the delay.
Best regards,
Filip Navara
Quoted 9 lines · Thiemo Seufer
Quoted 1 line · Filip Navara
Fix the CPUID function 2 to correctly report cache info for the
particular
Quoted 2 lines
processor. I chose the values closest to the ones reported in the AMD registers. This is important for operating systems that detect cache
line
Quoted 1 line
width and later call CLFLUSH for each line. In the previous
implementation
Quoted 9 lines
Quoted 1 line
the values didn't specify L2 cache line width and so Darwin endlessly
looped
Quoted 1 line
trying to flush them.
No patch attached.
Thiemo
Index: target-i386/helper.c
===================================================================
RCS file: /sources/qemu/qemu/target-i386/helper.c,v retrieving revision 1.84
helper.c +2 -2
@@ -1657,10 +1657,10 @@break ;case 2 :/* cache info: needed for Pentium Pro compatibility */ -EAX =0x410601 ; +EAX =1 ;EBX =0 ;ECX =0 ; -EDX =0 ; +EDX =0x2c307d ;break ;case 0x80000000 :EAX = env->cpuid_xlevel;