summaryrefslogtreecommitdiff
path: root/src/core/arm/interpreter/armsupp.cpp
diff options
context:
space:
mode:
authorGravatar Lioncash2015-03-26 09:21:24 -0400
committerGravatar Lioncash2015-03-26 09:22:02 -0400
commitde6eba02885fe12af1b28bb87433310363fac20a (patch)
tree5c44673e6e969ba1b6a211c4b98a55313f213e6c /src/core/arm/interpreter/armsupp.cpp
parentMerge pull request #672 from purpasmart96/citra_moar_app_mem (diff)
downloadyuzu-de6eba02885fe12af1b28bb87433310363fac20a.tar.gz
yuzu-de6eba02885fe12af1b28bb87433310363fac20a.tar.xz
yuzu-de6eba02885fe12af1b28bb87433310363fac20a.zip
dyncom: Migrate InAPrivilegedMode to armsupp
It's a generic helper function, so it should be here anyway.
Diffstat (limited to 'src/core/arm/interpreter/armsupp.cpp')
-rw-r--r--src/core/arm/interpreter/armsupp.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/arm/interpreter/armsupp.cpp b/src/core/arm/interpreter/armsupp.cpp
index aca2bfbbd..f826ccb2d 100644
--- a/src/core/arm/interpreter/armsupp.cpp
+++ b/src/core/arm/interpreter/armsupp.cpp
@@ -207,3 +207,9 @@ bool InBigEndianMode(ARMul_State* cpu)
207{ 207{
208 return (cpu->Cpsr & (1 << 9)) != 0; 208 return (cpu->Cpsr & (1 << 9)) != 0;
209} 209}
210
211// Whether or not the given CPU is in a mode other than user mode.
212bool InAPrivilegedMode(ARMul_State* cpu)
213{
214 return (cpu->Mode != USER32MODE);
215}