summaryrefslogtreecommitdiffstats
path: root/src/core/debugger/gdbstub_arch.cpp
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2024-02-05 19:41:15 +0100
committerGitHub <noreply@github.com>2024-02-05 19:41:15 +0100
commit8ef1db78b001ce83b14a293bfb5880d2c448e8c6 (patch)
tree32c50302256f30428eabde02390c3030af074a79 /src/core/debugger/gdbstub_arch.cpp
parentMerge pull request #12922 from FearlessTobi/lang-mappins (diff)
parentgdb: fix load/save of fp values in a32 (diff)
downloadyuzu-8ef1db78b001ce83b14a293bfb5880d2c448e8c6.tar
yuzu-8ef1db78b001ce83b14a293bfb5880d2c448e8c6.tar.gz
yuzu-8ef1db78b001ce83b14a293bfb5880d2c448e8c6.tar.bz2
yuzu-8ef1db78b001ce83b14a293bfb5880d2c448e8c6.tar.lz
yuzu-8ef1db78b001ce83b14a293bfb5880d2c448e8c6.tar.xz
yuzu-8ef1db78b001ce83b14a293bfb5880d2c448e8c6.tar.zst
yuzu-8ef1db78b001ce83b14a293bfb5880d2c448e8c6.zip
Diffstat (limited to 'src/core/debugger/gdbstub_arch.cpp')
-rw-r--r--src/core/debugger/gdbstub_arch.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/debugger/gdbstub_arch.cpp b/src/core/debugger/gdbstub_arch.cpp
index f2a407dc8..452f565be 100644
--- a/src/core/debugger/gdbstub_arch.cpp
+++ b/src/core/debugger/gdbstub_arch.cpp
@@ -383,7 +383,7 @@ std::string GDBStubA32::RegRead(const Kernel::KThread* thread, size_t id) const
} else if (id == CPSR_REGISTER) {
return ValueToHex(context.pstate);
} else if (id >= D0_REGISTER && id < Q0_REGISTER) {
- return ValueToHex(fprs[id - D0_REGISTER][0]);
+ return ValueToHex(fprs[(id - D0_REGISTER) / 2][(id - D0_REGISTER) % 2]);
} else if (id >= Q0_REGISTER && id < FPSCR_REGISTER) {
return ValueToHex(fprs[id - Q0_REGISTER]);
} else if (id == FPSCR_REGISTER) {
@@ -406,7 +406,7 @@ void GDBStubA32::RegWrite(Kernel::KThread* thread, size_t id, std::string_view v
} else if (id == CPSR_REGISTER) {
context.pstate = HexToValue<u32>(value);
} else if (id >= D0_REGISTER && id < Q0_REGISTER) {
- fprs[id - D0_REGISTER] = {HexToValue<u64>(value), 0};
+ fprs[(id - D0_REGISTER) / 2][(id - D0_REGISTER) % 2] = HexToValue<u64>(value);
} else if (id >= Q0_REGISTER && id < FPSCR_REGISTER) {
fprs[id - Q0_REGISTER] = HexToValue<u128>(value);
} else if (id == FPSCR_REGISTER) {