summaryrefslogtreecommitdiffstats
path: root/src/core/gdbstub
diff options
context:
space:
mode:
authorpolaris- <nagatospam@gmail.com>2015-10-21 13:19:03 +0200
committerpolaris- <nagatospam@gmail.com>2015-10-21 13:19:03 +0200
commit8a0d848646661c28a03c4659caf64e38fc92c127 (patch)
tree9720b7baf7b26fa907e0f00410b9dc85f486278b /src/core/gdbstub
parentTry to add support for VFP registers (diff)
downloadyuzu-8a0d848646661c28a03c4659caf64e38fc92c127.tar
yuzu-8a0d848646661c28a03c4659caf64e38fc92c127.tar.gz
yuzu-8a0d848646661c28a03c4659caf64e38fc92c127.tar.bz2
yuzu-8a0d848646661c28a03c4659caf64e38fc92c127.tar.lz
yuzu-8a0d848646661c28a03c4659caf64e38fc92c127.tar.xz
yuzu-8a0d848646661c28a03c4659caf64e38fc92c127.tar.zst
yuzu-8a0d848646661c28a03c4659caf64e38fc92c127.zip
Diffstat (limited to 'src/core/gdbstub')
-rw-r--r--src/core/gdbstub/gdbstub.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/gdbstub/gdbstub.cpp b/src/core/gdbstub/gdbstub.cpp
index a6977302c..7d8e9e3fb 100644
--- a/src/core/gdbstub/gdbstub.cpp
+++ b/src/core/gdbstub/gdbstub.cpp
@@ -473,6 +473,7 @@ static void ReadRegister() {
IntToHex(reply, Core::g_app_core->GetVFPReg(id - CSPR_REGISTER - 1)); // VFP registers should start at 26, so one after CSPR_REGISTER
} else if (id == FPSCR_REGISTER) {
IntToHex(reply, Core::g_app_core->GetVFPSystemReg(VFP_FPSCR)); // Get FPSCR
+ IntToHex(reply + 8, 0);
} else {
return SendReply("E01");
}
@@ -497,6 +498,8 @@ static void ReadRegisters() {
i++; // These registers seem to be all 64bit instead of 32bit, so skip two instead of one
} else if (i > CSPR_REGISTER && i < FPSCR_REGISTER) {
IntToHex(bufptr + i * 8, Core::g_app_core->GetVFPReg(i - CSPR_REGISTER - 1));
+ IntToHex(bufptr + (i + 1) * 8, 0);
+ i++;
} else if (i == FPSCR_REGISTER) {
IntToHex(bufptr + i * 8, Core::g_app_core->GetVFPSystemReg(VFP_FPSCR));
}