mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
irjit: Fix breakpoints with block linking.
This commit is contained in:
1 parent
9d058ef312
commit
7fb67bbb1f
1 file changed
+4
-4
@@ -339,8 +339,8 @@ void IRFrontend::CheckBreakpoint(u32 addr) {
|
||||
if (CBreakPoints::IsAddressBreakPoint(addr)) {
|
||||
FlushAll();
|
||||
|
||||
if (GetCompilerPC() != js.blockStart)
|
||||
ir.Write(IROp::SetPCConst, 0, ir.AddConstant(GetCompilerPC()));
|
||||
// Can't skip this even at the start of a block, might impact block linking.
|
||||
ir.Write(IROp::SetPCConst, 0, ir.AddConstant(GetCompilerPC()));
|
||||
|
||||
RestoreRoundingMode();
|
||||
// At this point, downcount HAS the delay slot, but not the instruction itself.
|
||||
@@ -370,8 +370,8 @@ void IRFrontend::CheckMemoryBreakpoint(int rs, int offset) {
|
||||
if (CBreakPoints::HasMemChecks()) {
|
||||
FlushAll();
|
||||
|
||||
if (GetCompilerPC() != js.blockStart)
|
||||
ir.Write(IROp::SetPCConst, 0, ir.AddConstant(GetCompilerPC()));
|
||||
// Can't skip this even at the start of a block, might impact block linking.
|
||||
ir.Write(IROp::SetPCConst, 0, ir.AddConstant(GetCompilerPC()));
|
||||
|
||||
RestoreRoundingMode();
|
||||
// At this point, downcount HAS the delay slot, but not the instruction itself.
|
||||
|
||||
Reference in new issue
Block a user