|
From: Nicholas N. <nj...@ca...> - 2003-11-24 14:16:11
|
On Mon, 24 Nov 2003, Tom Hughes wrote: > >> In fact there is sample code in the Intel CPUID application node > >> showing how to check for it. The application note is at: > > > > Thats nice. However the problem is that the application we valgrind might want > > to run the cpuid instruction and will then expect to receive a SIGILL. We > > can't just skip the instruction, since that will break the simulation. > > But if valgrind can check whether the instruction is there or not > then it could generate a SIGILL to the application it is running > couldn't it? We're talking about using CPUID when Valgrind starts up to determine what features the CPU supports (eg. SSE). So looking at EFLAGS is fine for this. If the client program calls CPUID itself, that passes through Valgrind untouched. N |