initial tests

This commit is contained in:
Silvris
2025-09-19 02:40:13 -05:00
parent 32c47d7bc0
commit 6d5bf32796
2 changed files with 7 additions and 1 deletions
@@ -61,9 +61,13 @@ struct AutoDisabledReplacements {
// Important: Only use keepReplacements when reading, not writing.
static AutoDisabledReplacements LockMemoryAndCPU(uint32_t addr, bool keepReplacements) {
AutoDisabledReplacements result;
CoreState state = coreState;
if (Core_IsStepping()) {
result.wasStepping = true;
} else {
while (state != CoreState::CORE_RUNNING_CPU) {
state = coreState;
}
Core_Break(BreakReason::MemoryAccess, addr);
Core_WaitInactive();
}