By entering this site you need to consent to the use of cookies and their functional use according to this privacy policy. Cookies help us to provide the functional services of the website. Kindly read the below message of use and consent to the use.
The following cookies are stored and shared when accessing this website:
- Internal cookies for the MediaWiki site. This is used for user authentication and article modifications.
- Third-party cookies from Google providing services for Google AdSense and Google Analytics
We will never use data collected outside of the above scope.
The user needs to adjust pc for exceptions that occured while in Thumb mode.
+
+
'''Flags for svcGetDebugThreadContext/svcSetDebugThreadContext''':
+
+
{| class="wikitable" border="1"
+
|-
+
! Bit
+
! Description
+
|-
+
| 0
+
| Get/set CPU GPRs (r0-r12)
+
|-
+
| 1
+
| Get/set CPU SPRs (sp, lr, pc, cpsr)
+
|-
+
| 2
+
| Get/set FPU GPRs (d0-d15)
+
|-
+
| 3
+
| Get/set FPU SPRs (fpscr, fpexc)
+
|}
+
+
When setting CPSR, the following assignment is done: <code>ctx->cpsr = ctx->cpsr & 0x7F0FDFF | userCtx->cpuRegisters.cpsr & 0xF80F0200;</code>. This is to avoid obvious security issues.