fix: Make debugger step functions only step the arm7tdmi core

Former-commit-id: bc544ff5dda9db694405126b3cab963f91526a7d
This commit is contained in:
Michel Heily 2020-02-01 12:22:44 +02:00
parent 99cf07c391
commit 7848cb609b

View file

@ -80,9 +80,9 @@ impl Debugger {
if !self.ctrlc_flag.load(Ordering::SeqCst) { if !self.ctrlc_flag.load(Ordering::SeqCst) {
break; break;
} }
self.gba.step(); self.gba.cpu.step(&mut self.gba.sysbus);
while self.gba.cpu.last_executed.is_none() { while self.gba.cpu.last_executed.is_none() {
self.gba.step(); self.gba.cpu.step(&mut self.gba.sysbus);
} }
let last_executed = self.gba.cpu.last_executed.unwrap(); let last_executed = self.gba.cpu.last_executed.unwrap();
print!( print!(
@ -114,7 +114,7 @@ impl Debugger {
break; break;
} }
_ => { _ => {
self.gba.step(); self.gba.cpu.step(&mut self.gba.sysbus);
} }
} }
} }