Thank you Steve for your quick reply. The problem finally solved. I do compile the benchmark on my x86-64 ubuntu natty (Linux ubuntu 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:24 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux) .It fails again even though I use "-mfpmath=*sse*" option. after objdumping the binary, I sadly found there still exists x87 instructions :-( However when I use another x86-64 machine running archlinux x86-64 and compile benchmarks with same options, the programs are compiled correctly without x87 instruction. It seems a ubuntu math library issue in x86-64.
2012/8/19 Steve Reinhardt <ste...@gmail.com> > x87 instructions are largely unimplemented in gem5. Unless you'd like to > implement them for us, you should compile your binary to use SSE rather > than x87 for floating point (which should happen automatically if you > compile in 64-bit mode). > > Steve > > On Sun, Aug 19, 2012 at 5:00 AM, Yi Liu <cnliu...@gmail.com> wrote: > >> Hi, >> recently when I run fft program of splash2 benchmark on gem5 x86 full >> system, I found fft cannot work right. According to the trace file, because >> of some instruction unimplemented, fft stuck in infinite loop test loop, >> part of trace as follows: >> * >> * >> *fprem1 (unimplemented)* >> *fnstsw (unimplemented)* >> *test eax, 0x400* >> *jnz 0xfffffffffffffff5* >> *fprem1 (unimplemented)* >> *fnstsw (unimplemented)* >> *test eax, 0x400* >> *jnz 0xfffffffffffffff5* >> *fprem1 (unimplemented)* >> *fnstsw (unimplemented)* >> ... >> >> and gem5 also shows: >> >> **** REAL SIMULATION **** >> info: Entering event queue @ 0. Starting simulation... >> warn: Don't know what interrupt to clear for console. >> warn: instruction 'fxsave' unimplemented >> warn: Tried to clear PCI interrupt 14 >> warn: Unknown mouse command 0xe1. >> warn: instruction 'wbinvd' unimplemented >> hack: be nice to actually delete the event here >> Writing checkpoint >> info: Entering event queue @ 5113183552500. Starting simulation... >> warn: instruction 'fnstcw_Mw' unimplemented >> warn: instruction 'fldcw_Mw' unimplemented >> warn: instruction 'fsincos' unimplemented >> warn: instruction 'fnstsw' unimplemented >> warn: instruction 'fldpi' unimplemented >> warn: instruction 'fadd' unimplemented >> warn: instruction 'fxch' unimplemented >> warn: instruction 'fprem1' unimplemented >> >> Is it possible to solve this problem? >> >> >> >> _______________________________________________ >> gem5-users mailing list >> gem5-users@gem5.org >> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >> > > > _______________________________________________ > gem5-users mailing list > gem5-users@gem5.org > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >
_______________________________________________ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users