dyncom: Convert the SPSR checking define to a function

Same thing, with less indirection hiding
This commit is contained in:
Lioncash 2017-12-05 20:07:43 -05:00
parent 4835342032
commit 8599b1e7cc
2 changed files with 18 additions and 15 deletions

View file

@ -178,6 +178,10 @@ public:
bool InAPrivilegedMode() const {
return (Mode != USER32MODE);
}
// Whether or not the current CPU mode has a Saved Program Status Register
bool CurrentModeHasSPSR() const {
return Mode != SYSTEM32MODE && InAPrivilegedMode();
}
// Note that for the 3DS, a Thumb instruction will only ever be
// two bytes in size. Thus we don't need to worry about ThumbEE
// or Thumb-2 where instructions can be 4 bytes in length.