Fix cases where breakpoints were skipped.

After reset or savestate load.
This commit is contained in:
Unknown W. Brackets 2015-03-17 23:06:25 -07:00
parent b8d798c3a5
commit 9d52ee4e21

View file

@ -140,6 +140,10 @@ Jit::Jit(MIPSState *mips) : blocks(mips, this), mips_(mips)
safeMemFuncs.Init(&thunks);
js.startDefaultPrefix = mips_->HasDefaultPrefix();
// The debugger sets this so that "go" on a breakpoint will actually... go.
// But if they reset, we can end up hitting it by mistake, since it's based on PC and ticks.
CBreakPoints::SetSkipFirst(0);
}
Jit::~Jit() {
@ -158,6 +162,10 @@ void Jit::DoState(PointerWrap &p)
} else {
js.hasSetRounding = 1;
}
// The debugger sets this so that "go" on a breakpoint will actually... go.
// But if they load a state, we can end up hitting it by mistake, since it's based on PC and ticks.
CBreakPoints::SetSkipFirst(0);
}
// This is here so the savestate matches between jit and non-jit.