Skip to content

Commit

Permalink
fix strex in GPSTracker.
Browse files Browse the repository at this point in the history
  • Loading branch information
JohenanLi authored and shandianchengzi committed Nov 8, 2024
1 parent 4b56256 commit dc4a373
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions qemu/target/arm/translate.c
Original file line number Diff line number Diff line change
Expand Up @@ -9299,8 +9299,13 @@ static bool op_strex(DisasContext *s, arg_STREX *a, MemOp mop, bool rel)
&& (a->rt2 == 15
|| a->rd == a->rt2
|| (!v8a && s->thumb && a->rt2 == 13)))) {
unallocated_encoding(s);
return true;

if (a->rd == a->rt){
; // just fix GPSTracker strex r3,r3,[r6]
}else{
unallocated_encoding(s);
return true;
}
}

if (rel) {
Expand Down

0 comments on commit dc4a373

Please sign in to comment.