Skip to content

Commit

Permalink
PR feedback. Add comment explaining cur_instr_info when at kernel xfer.
Browse files Browse the repository at this point in the history
  • Loading branch information
lihasgupta committed Sep 20, 2023
1 parent fff38fe commit 1694b68
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion clients/drcachesim/tools/invariant_checker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1075,7 +1075,8 @@ invariant_checker_t::check_for_pc_discontinuity(
std::string error_msg = "";
bool have_branch_target = false;
addr_t branch_target = 0;
addr_t prev_instr_trace_pc = prev_instr.instr.addr;
const addr_t prev_instr_trace_pc = prev_instr.instr.addr;
// cur_instr_info is a marker (not an instruction) if at_kernel_event is true.
const addr_t cur_pc = at_kernel_event ? cur_instr_info.memref.marker.marker_value
: cur_instr_info.memref.instr.addr;

Expand Down

0 comments on commit 1694b68

Please sign in to comment.