summaryrefslogtreecommitdiff
path: root/src/core/arm
diff options
context:
space:
mode:
authorGravatar polaris-2015-10-04 11:22:31 -0400
committerGravatar polaris-2015-10-04 11:22:31 -0400
commit42928659e8d4ff4edffc36acabe3d9040dbc1326 (patch)
tree96434bbd4878b9a1a6944cc287463d641e56368e /src/core/arm
parentToggle use_gdbstub in citra GLFW (diff)
downloadyuzu-42928659e8d4ff4edffc36acabe3d9040dbc1326.tar.gz
yuzu-42928659e8d4ff4edffc36acabe3d9040dbc1326.tar.xz
yuzu-42928659e8d4ff4edffc36acabe3d9040dbc1326.zip
Use BreakpointAddress struct instead of passing address directly
Diffstat (limited to 'src/core/arm')
-rw-r--r--src/core/arm/dyncom/arm_dyncom_interpreter.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/arm/dyncom/arm_dyncom_interpreter.cpp b/src/core/arm/dyncom/arm_dyncom_interpreter.cpp
index 8293f4c60..88be27ab2 100644
--- a/src/core/arm/dyncom/arm_dyncom_interpreter.cpp
+++ b/src/core/arm/dyncom/arm_dyncom_interpreter.cpp
@@ -3583,7 +3583,7 @@ unsigned InterpreterMainLoop(ARMul_State* cpu) {
3583 Common::Profiling::ScopeTimer timer_execute(profile_execute); 3583 Common::Profiling::ScopeTimer timer_execute(profile_execute);
3584 MICROPROFILE_SCOPE(DynCom_Execute); 3584 MICROPROFILE_SCOPE(DynCom_Execute);
3585 3585
3586 int breakpoint_offset = -1; 3586 GDBStub::BreakpointAddress breakpoint_data;
3587 3587
3588 #undef RM 3588 #undef RM
3589 #undef RS 3589 #undef RS
@@ -3613,7 +3613,7 @@ unsigned InterpreterMainLoop(ARMul_State* cpu) {
3613 cpu->Cpsr &= ~(1 << 5); \ 3613 cpu->Cpsr &= ~(1 << 5); \
3614 cpu->Cpsr |= cpu->TFlag << 5; \ 3614 cpu->Cpsr |= cpu->TFlag << 5; \
3615 if (GDBStub::g_server_enabled) { \ 3615 if (GDBStub::g_server_enabled) { \
3616 if (GDBStub::IsMemoryBreak() || PC == breakpoint_offset) { \ 3616 if (GDBStub::IsMemoryBreak() || (breakpoint_data.type != GDBStub::BreakpointType::None && PC == breakpoint_data.address)) { \
3617 GDBStub::Break(); \ 3617 GDBStub::Break(); \
3618 goto END; \ 3618 goto END; \
3619 } \ 3619 } \
@@ -3923,7 +3923,7 @@ unsigned InterpreterMainLoop(ARMul_State* cpu) {
3923 3923
3924 // Find breakpoint if one exists within the block 3924 // Find breakpoint if one exists within the block
3925 if (GDBStub::g_server_enabled && GDBStub::IsConnected()) { 3925 if (GDBStub::g_server_enabled && GDBStub::IsConnected()) {
3926 breakpoint_offset = GDBStub::GetNextBreakpointFromAddress(cpu->Reg[15], GDBStub::BreakpointType::Execute); 3926 breakpoint_data = GDBStub::GetNextBreakpointFromAddress(cpu->Reg[15], GDBStub::BreakpointType::Execute);
3927 } 3927 }
3928 3928
3929 inst_base = (arm_inst *)&inst_buf[ptr]; 3929 inst_base = (arm_inst *)&inst_buf[ptr];