summaryrefslogtreecommitdiff
path: root/src/core/gdbstub/gdbstub.cpp
diff options
context:
space:
mode:
authorGravatar Mat M2018-09-20 17:25:56 -0400
committerGravatar GitHub2018-09-20 17:25:56 -0400
commitf2372651879dd6682165487b34a70f33357e730a (patch)
tree6318d00be16d20b3724da79e64ae80e12ed7279c /src/core/gdbstub/gdbstub.cpp
parentMerge pull request #1362 from MerryMage/dynarmic (diff)
parentCorrect endianness of BKPT (diff)
downloadyuzu-f2372651879dd6682165487b34a70f33357e730a.tar.gz
yuzu-f2372651879dd6682165487b34a70f33357e730a.tar.xz
yuzu-f2372651879dd6682165487b34a70f33357e730a.zip
Merge pull request #1370 from Hedges/GDBClean
Correct endianness of BRK
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 1b04f68bf..0ecdd9f82 100644
--- a/src/core/gdbstub/gdbstub.cpp
+++ b/src/core/gdbstub/gdbstub.cpp
@@ -995,7 +995,7 @@ static bool CommitBreakpoint(BreakpointType type, VAddr addr, u64 len) {
995 breakpoint.addr = addr; 995 breakpoint.addr = addr;
996 breakpoint.len = len; 996 breakpoint.len = len;
997 Memory::ReadBlock(addr, breakpoint.inst.data(), breakpoint.inst.size()); 997 Memory::ReadBlock(addr, breakpoint.inst.data(), breakpoint.inst.size());
998 static constexpr std::array<u8, 4> btrap{{0xd4, 0x20, 0x7d, 0x0}}; 998 static constexpr std::array<u8, 4> btrap{{0x00, 0x7d, 0x20, 0xd4}};
999 Memory::WriteBlock(addr, btrap.data(), btrap.size()); 999 Memory::WriteBlock(addr, btrap.data(), btrap.size());
1000 Core::System::GetInstance().InvalidateCpuInstructionCaches(); 1000 Core::System::GetInstance().InvalidateCpuInstructionCaches();
1001 p.insert({addr, breakpoint}); 1001 p.insert({addr, breakpoint});