* [Qemu-devel] [PATCH] Intel cache info
@ 2007-09-08 19:27 Filip Navara
2007-09-09 13:47 ` Dan Kenigsberg
2007-09-09 15:04 ` Thiemo Seufer
0 siblings, 2 replies; 4+ messages in thread
From: Filip Navara @ 2007-09-08 19:27 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 393 bytes --]
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.
[-- Attachment #2: Type: text/html, Size: 402 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] [PATCH] Intel cache info
2007-09-08 19:27 [Qemu-devel] [PATCH] Intel cache info Filip Navara
@ 2007-09-09 13:47 ` Dan Kenigsberg
2007-09-09 15:04 ` Thiemo Seufer
1 sibling, 0 replies; 4+ messages in thread
From: Dan Kenigsberg @ 2007-09-09 13:47 UTC (permalink / raw)
To: qemu-devel
On Sat, Sep 08, 2007 at 09:27:35PM +0200, Filip Navara wrote:
> 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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] [PATCH] Intel cache info
2007-09-08 19:27 [Qemu-devel] [PATCH] Intel cache info Filip Navara
2007-09-09 13:47 ` Dan Kenigsberg
@ 2007-09-09 15:04 ` Thiemo Seufer
2007-09-11 7:20 ` Filip Navara
1 sibling, 1 reply; 4+ messages in thread
From: Thiemo Seufer @ 2007-09-09 15:04 UTC (permalink / raw)
To: Filip Navara; +Cc: qemu-devel
Filip Navara wrote:
> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] [PATCH] Intel cache info
2007-09-09 15:04 ` Thiemo Seufer
@ 2007-09-11 7:20 ` Filip Navara
0 siblings, 0 replies; 4+ messages in thread
From: Filip Navara @ 2007-09-11 7:20 UTC (permalink / raw)
To: Thiemo Seufer; +Cc: qemu-devel
[-- Attachment #1.1: Type: text/plain, Size: 600 bytes --]
Here it is, sorry for the delay.
Best regards,
Filip Navara
On 9/9/07, Thiemo Seufer <ths@networkno.de> wrote:
>
> Filip Navara wrote:
> > 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
>
[-- Attachment #1.2: Type: text/html, Size: 909 bytes --]
[-- Attachment #2: qemu-cache-info.patch --]
[-- Type: application/octet-stream, Size: 637 bytes --]
Index: target-i386/helper.c
===================================================================
RCS file: /sources/qemu/qemu/target-i386/helper.c,v
retrieving revision 1.84
diff -u -r1.84 helper.c
--- target-i386/helper.c 26 Jun 2007 08:35:18 -0000 1.84
+++ target-i386/helper.c 8 Sep 2007 16:07:23 -0000
@@ -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;
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-09-11 7:20 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-08 19:27 [Qemu-devel] [PATCH] Intel cache info Filip Navara
2007-09-09 13:47 ` Dan Kenigsberg
2007-09-09 15:04 ` Thiemo Seufer
2007-09-11 7:20 ` Filip Navara
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).