diff options
author | Lioncash <mathew1800@gmail.com> | 2015-03-26 14:21:24 +0100 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2015-03-26 14:22:02 +0100 |
commit | de6eba02885fe12af1b28bb87433310363fac20a (patch) | |
tree | 5c44673e6e969ba1b6a211c4b98a55313f213e6c /src/core/arm/interpreter | |
parent | Merge pull request #672 from purpasmart96/citra_moar_app_mem (diff) | |
download | yuzu-de6eba02885fe12af1b28bb87433310363fac20a.tar yuzu-de6eba02885fe12af1b28bb87433310363fac20a.tar.gz yuzu-de6eba02885fe12af1b28bb87433310363fac20a.tar.bz2 yuzu-de6eba02885fe12af1b28bb87433310363fac20a.tar.lz yuzu-de6eba02885fe12af1b28bb87433310363fac20a.tar.xz yuzu-de6eba02885fe12af1b28bb87433310363fac20a.tar.zst yuzu-de6eba02885fe12af1b28bb87433310363fac20a.zip |
Diffstat (limited to 'src/core/arm/interpreter')
-rw-r--r-- | src/core/arm/interpreter/armsupp.cpp | 6 |
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) { 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); +} |