mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-02-19 06:49:38 +00:00
dynarmic_tests: Resolve CPSR discrepancies in tests
Unicorn internally checks if the LSB is set in order to determine whether or not it should assume thumb mode internally. Clearing this ourselves will always result in the incorrect PSR between runs.
This commit is contained in:
@@ -52,8 +52,7 @@ void A32Unicorn<TestEnvironment>::Run() {
|
||||
}
|
||||
|
||||
const bool T = Dynarmic::Common::Bit<5>(GetCpsr());
|
||||
const u32 mask = T ? 0xFFFFFFFE : 0xFFFFFFFC;
|
||||
const u32 new_pc = GetPC() & mask;
|
||||
const u32 new_pc = GetPC() | (T ? 1 : 0);
|
||||
SetPC(new_pc);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user