|
From: Sebastian K. <Seb...@so...> - 2003-11-24 11:55:29
|
From: "Nicholas Nethercote" <nj...@ca...> > On Fri, 21 Nov 2003, Daniel Goertzen wrote: > The skipping of CPUID in the patch isn't good though, we need to use it. > Ideally, we'd set up a SIGILL handler before doing the CPUID (that's what > Cachegrind does when detecting the cache parameters). However, that's not > so easy to do in assembly code, AFAIK. Do not forget that all CPUID CPU's allow for changing CPUID flag in flags register -- i.e. no need to handle signals, just few PUSHFs, POPFs, PUSHes anf POPs... rgds Sebastian Kaliszewski -- "Never underestimate the power of human stupidity" - from Notebooks of L.L. |