summaryrefslogtreecommitdiff
path: root/src/core/gdbstub/gdbstub.cpp
diff options
context:
space:
mode:
authorGravatar Lioncash2018-09-29 17:58:26 -0400
committerGravatar Lioncash2018-09-30 02:29:57 -0400
commit16145e2f21d7f7208c95d164a0fe2b1a5d8c20d6 (patch)
treec22765539200de9bbc95a3a60f4b3b158311c96e /src/core/gdbstub/gdbstub.cpp
parentMerge pull request #1414 from lioncash/ref (diff)
downloadyuzu-16145e2f21d7f7208c95d164a0fe2b1a5d8c20d6.tar.gz
yuzu-16145e2f21d7f7208c95d164a0fe2b1a5d8c20d6.tar.xz
yuzu-16145e2f21d7f7208c95d164a0fe2b1a5d8c20d6.zip
arm_interface: Add missing fpsr/tpidr members to the ThreadContext struct
Internally within the kernel, it also includes a member variable for the floating-point status register, and TPIDR, so we should do the same here to match it. While we're at it, also fix up the size of the struct and add a static assertion to ensure it always stays the correct size.
Diffstat (limited to 'src/core/gdbstub/gdbstub.cpp')
-rw-r--r--src/core/gdbstub/gdbstub.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/gdbstub/gdbstub.cpp b/src/core/gdbstub/gdbstub.cpp
index d8c7b3492..ae88440c2 100644
--- a/src/core/gdbstub/gdbstub.cpp
+++ b/src/core/gdbstub/gdbstub.cpp
@@ -250,7 +250,7 @@ static void RegWrite(std::size_t id, u64 val, Kernel::Thread* thread = nullptr)
250 } else if (id == PC_REGISTER) { 250 } else if (id == PC_REGISTER) {
251 thread->context.pc = val; 251 thread->context.pc = val;
252 } else if (id == PSTATE_REGISTER) { 252 } else if (id == PSTATE_REGISTER) {
253 thread->context.pstate = val; 253 thread->context.pstate = static_cast<u32>(val);
254 } else if (id > PSTATE_REGISTER && id < FPCR_REGISTER) { 254 } else if (id > PSTATE_REGISTER && id < FPCR_REGISTER) {
255 thread->context.vector_registers[id - (PSTATE_REGISTER + 1)][0] = val; 255 thread->context.vector_registers[id - (PSTATE_REGISTER + 1)][0] = val;
256 } 256 }