mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2024-11-24 10:39:19 +01:00
dyncom: Migrate InAPrivilegedMode to armsupp
It's a generic helper function, so it should be here anyway.
This commit is contained in:
parent
c4767f3bb2
commit
de6eba0288
@ -3690,10 +3690,6 @@ static int clz(unsigned int x) {
|
||||
return n;
|
||||
}
|
||||
|
||||
static bool InAPrivilegedMode(ARMul_State* core) {
|
||||
return (core->Mode != USER32MODE);
|
||||
}
|
||||
|
||||
unsigned InterpreterMainLoop(ARMul_State* state) {
|
||||
Common::Profiling::ScopeTimer timer_execute(profile_execute);
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -357,3 +357,4 @@ extern u32 ARMul_SignedSatQ(s32, u8, bool*);
|
||||
extern u32 ARMul_UnsignedSatQ(s32, u8, bool*);
|
||||
|
||||
extern bool InBigEndianMode(ARMul_State*);
|
||||
extern bool InAPrivilegedMode(ARMul_State*);
|
||||
|
Loading…
Reference in New Issue
Block a user