Skip to content

Commit

Permalink
Trace flags for mrs and msr
Browse files Browse the repository at this point in the history
  • Loading branch information
thestr4ng3r authored and ivg committed Mar 9, 2022
1 parent 6f9cf5a commit fc8b07f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions target/arm/translate.c
Original file line number Diff line number Diff line change
Expand Up @@ -6539,6 +6539,9 @@ static bool trans_MRS_reg(DisasContext *s, arg_MRS_reg *a)
} else {
tmp = tcg_temp_new_i32();
gen_helper_cpsr_read(tmp, cpu_env);
#ifdef HAS_TRACEWRAP
trace_read_cpsr();
#endif
}
store_reg(s, a->rd, tmp);
return true;
Expand All @@ -6556,6 +6559,10 @@ static bool trans_MSR_reg(DisasContext *s, arg_MSR_reg *a)
if (gen_set_psr(s, mask, a->r, tmp)) {
unallocated_encoding(s);
}
#ifdef HAS_TRACEWRAP
trace_read_cpsr();
trace_store_cpsr();
#endif
return true;
}

Expand Down

0 comments on commit fc8b07f

Please sign in to comment.