dyncom: Migrate InAPrivilegedMode to armsupp

It's a generic helper function, so it should be here anyway.
This commit is contained in:
Lioncash 2015-03-26 09:21:24 -04:00
parent c4767f3bb2
commit de6eba0288
3 changed files with 7 additions and 4 deletions

View file

@ -207,3 +207,9 @@ bool InBigEndianMode(ARMul_State* cpu)
{
return (cpu->Cpsr & (1 << 9)) != 0;
}
// Whether or not the given CPU is in a mode other than user mode.
bool InAPrivilegedMode(ARMul_State* cpu)
{
return (cpu->Mode != USER32MODE);
}