Skip to content

Commit

Permalink
Ignore C1 writes with same value
Browse files Browse the repository at this point in the history
  • Loading branch information
Rot127 committed Nov 20, 2023
1 parent 57cd892 commit 693b222
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions rz-tracetest/adapter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,13 @@ class HexagonTraceAdapter : public TraceAdapter {
// Because it is onlt an alias.
return true;
}
if (strstr(event->data.var_write.variable, "C1")) {
// Ignore writes to LC0 where old == new value.
// The tcg code chains blocks together and the LC0 value
// we cannot trace the C1 writes in this case.
// So these are ignored.
return rz_il_value_eq(event->data.var_write.old_value, event->data.var_write.new_value);
}
return false;
}
return false;
Expand Down

0 comments on commit 693b222

Please sign in to comment.