OpenXiangShan / NEMU

Other
236 stars 90 forks source link

difftest: guide spike to exec the instruction cause an exception. #423

Closed NewPaulWalker closed 2 months ago

NewPaulWalker commented 3 months ago

When there is an exception happen in nemu as dut, spike should also execute the same instruction that caused the exception. In particular, the ebreak and ecall instructions are different from other instructions that can cause exceptions, because when they are executed in nemu, spike has already been instructed to execute the corresponding ebreak and ecall instructions, so there is no need to guide spike to execute another instruction in either case.