Skip to content

Commit

Permalink
cpu-o3, misc: less difftest string manipulation
Browse files Browse the repository at this point in the history
Change-Id: I34b66b9736db62f9b6e24937f0319cf3a9b50509
  • Loading branch information
notlqr committed Aug 29, 2024
1 parent 4fcec72 commit 7a6b6fa
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/cpu/base.cc
Original file line number Diff line number Diff line change
Expand Up @@ -909,9 +909,6 @@ BaseCPU::diffWithNEMU(ThreadID tid, InstSeqNum seq)
auto gem5_pc = diffInfo.pc->instAddr();
diffAllStates->gem5RegFile.pc = gem5_pc;
auto nemu_pc = diffAllStates->diff.nemu_commit_inst_pc;
diffMsg += csprintf("In CPU%d: NEMU PC: %#10lx, GEM5 PC: %#10lx, inst: %s\n", cpuId(),
nemu_pc, gem5_pc,
diffInfo.inst->disassemble(diffInfo.pc->instAddr()).c_str());

if (nemu_pc != gem5_pc) {
// warn("NEMU store addr: %#lx\n", nemu_store_addr);
Expand Down Expand Up @@ -1227,6 +1224,11 @@ BaseCPU::diffWithNEMU(ThreadID tid, InstSeqNum seq)
}
}
}
if (diff_at) {
diffMsg += csprintf("In CPU%d: NEMU PC: %#10lx, GEM5 PC: %#10lx, inst: %s\n", cpuId(),
nemu_pc, gem5_pc,
diffInfo.inst->disassemble(diffInfo.pc->instAddr()).c_str());
}
return std::make_pair(diff_at, npc_match);
}

Expand Down

0 comments on commit 7a6b6fa

Please sign in to comment.