Hi,

I've got an idea for a MMX checker tool. First some background:
When you use MMX/SSE instructions on the x86 platform you have to reset 
the FPU stack with the 'emms' instruction after calculations finished. 
Otherwise the following floating point instructions will fail.

I have a large C++ project here and somewhere in an static initializer 
such an reset is omitted. Spotting the missing place is quite hard.
I've tried to use GDB to watch the $ftag register, but GDBs single 
instruction stepping takes ages.

So the valgrind tool should do the following: If an FPU instruction is 
executed with a corrupt FPU stack, print the position of the last 
MMX/SSE instruction.

I've skimmed the lackey source code, but have still no idea where to 
start. It would be nice if you could provide me some assistance or even 
some source code.

What do you think?

Thanks,
Gregor

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Valgrind-developers mailing list
Valgrind-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-developers

Reply via email to