mirror of
https://github.com/azahar-emu/dynarmic
synced 2025-11-07 07:29:59 +01:00
load_store_exclusive: Define s == t state to be Constraint_NONE
Downstream (yuzu) mentioned that the instruction: STXR W9, W9, [X0] was executed in the program "Crash N-Sane Trilogy".
This commit is contained in:
parent
cd40e4dae0
commit
8a3b6364c2
@ -26,7 +26,10 @@ static bool ExclusiveSharedDecodeAndOperation(TranslatorVisitor& tv, IREmitter&
|
|||||||
if (memop == MemOp::LOAD && pair && Rt == *Rt2) {
|
if (memop == MemOp::LOAD && pair && Rt == *Rt2) {
|
||||||
return tv.UnpredictableInstruction();
|
return tv.UnpredictableInstruction();
|
||||||
} else if (memop == MemOp::STORE && (*Rs == Rt || (pair && *Rs == *Rt2))) {
|
} else if (memop == MemOp::STORE && (*Rs == Rt || (pair && *Rs == *Rt2))) {
|
||||||
return tv.UnpredictableInstruction();
|
if (!tv.options.define_unpredictable_behaviour) {
|
||||||
|
return tv.UnpredictableInstruction();
|
||||||
|
}
|
||||||
|
// UNPREDICTABLE: The Constraint_NONE case is executed.
|
||||||
} else if (memop == MemOp::STORE && *Rs == Rn && Rn != Reg::R31) {
|
} else if (memop == MemOp::STORE && *Rs == Rn && Rn != Reg::R31) {
|
||||||
return tv.UnpredictableInstruction();
|
return tv.UnpredictableInstruction();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user