I am running a CPU emulator, and when I use it to use spec2017's 600.perlbench_s benchmark, a floating point exception error appears. But I don't know which line of code is wrong. The difficulty of this problem is: this is a CPU simulator, it will simulate running various instructions, that is, it will go through a lot of loops, and the error may only appear after the simulator has simulated hundreds of thousands of instructions.
Therefore, it seems unrealistic to solve this problem by single-step operation. Is there any good way?
Thanks