chore: Replace trace exception with trace!
Former-commit-id: 0b6f2126a6861b8f31f5231b5e0cfda3df30d5d5
This commit is contained in:
parent
15f20e88fe
commit
99cf07c391
|
@ -30,16 +30,14 @@ impl Core {
|
||||||
Irq => (CpuMode::Irq, true, false),
|
Irq => (CpuMode::Irq, true, false),
|
||||||
Fiq => (CpuMode::Fiq, true, true),
|
Fiq => (CpuMode::Fiq, true, true),
|
||||||
};
|
};
|
||||||
if self.trace_exceptions {
|
trace!(
|
||||||
trace!(
|
"{}: {:?}, pc: {:#x}, new_mode: {:?} old_mode: {:?}",
|
||||||
"{}: {:?}, pc: {:#x}, new_mode: {:?} old_mode: {:?}",
|
"Exception".cyan(),
|
||||||
"Exception".cyan(),
|
e,
|
||||||
e,
|
self.pc,
|
||||||
self.pc,
|
new_mode,
|
||||||
new_mode,
|
self.cpsr.mode(),
|
||||||
self.cpsr.mode(),
|
);
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
let new_bank = new_mode.bank_index();
|
let new_bank = new_mode.bank_index();
|
||||||
self.spsr_bank[new_bank] = self.cpsr;
|
self.spsr_bank[new_bank] = self.cpsr;
|
||||||
|
|
Reference in a new issue