gdb rsp: minor changes

Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
2024-06-16 20:55:33 +05:30
parent 951fc40134
commit c55f2937f7
3 changed files with 38 additions and 46 deletions

View File

@@ -129,14 +129,6 @@ Cpu::step() {
// word align
rst_bit(pc, 1);
#ifdef GDB_DEBUG
if (breakpoints.contains(pc - 2 * arm::INSTRUCTION_SIZE)) {
glogger.info_bold("CPU halted");
halted = true;
return;
}
#endif
arm::Instruction instruction(opcodes[0]);
opcodes[0] = opcodes[1];
@@ -156,15 +148,6 @@ Cpu::step() {
} else
advance_pc_arm();
} else {
#ifdef GDB_DEBUG
if (breakpoints.contains(pc - 2 * thumb::INSTRUCTION_SIZE)) {
glogger.info_bold("CPU halted");
halted = true;
return;
}
#endif
thumb::Instruction instruction(opcodes[0]);
opcodes[0] = opcodes[1];