aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorMat M <mathew1800@gmail.com>2018-09-20 17:25:56 -0400
committerGitHub <noreply@github.com>2018-09-20 17:25:56 -0400
commit751ddd71c0c23027fbc5d3312005f0a1bf8244ab (patch)
tree6318d00be16d20b3724da79e64ae80e12ed7279c /src/core
parent971b72805951816d2994bcd663b31bd45250133a (diff)
parent81ee22e42013423882ab3044d7448b8777f5db5f (diff)
Merge pull request #1370 from Hedges/GDBClean
Correct endianness of BRK
Diffstat (limited to 'src/core')
-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 1b04f68bf3..0ecdd9f821 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) {
breakpoint.addr = addr;
breakpoint.len = len;
Memory::ReadBlock(addr, breakpoint.inst.data(), breakpoint.inst.size());
- static constexpr std::array<u8, 4> btrap{{0xd4, 0x20, 0x7d, 0x0}};
+ static constexpr std::array<u8, 4> btrap{{0x00, 0x7d, 0x20, 0xd4}};
Memory::WriteBlock(addr, btrap.data(), btrap.size());
Core::System::GetInstance().InvalidateCpuInstructionCaches();
p.insert({addr, breakpoint});