dyncom: Convert the SPSR checking define to a function
Same thing, with less indirection hiding
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user