Skip to content

Commit

Permalink
vita3k: STR n == t preindex writeback is defined in vita cpu
Browse files Browse the repository at this point in the history
  • Loading branch information
sunho authored and Macdu committed Mar 6, 2024
1 parent fa6cc2e commit ce8dcda
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,8 @@ bool TranslatorVisitor::thumb32_STR_imm_1(Reg n, Reg t, bool P, bool U, Imm<8> i
if (n == Reg::PC) {
return UndefinedInstruction();
}
if (t == Reg::PC || n == t) {
// VITA3K: n == t preindex writeback is defined in vita cpu
if (t == Reg::PC || (!P && n == t)) {
return UnpredictableInstruction();
}
return StoreImmediate(*this, n, t, P, U, true, Imm<12>{imm8.ZeroExtend()}, StoreImmWordFn);
Expand Down

0 comments on commit ce8dcda

Please sign in to comment.