diff options
| author | taitep <taitep@taitep.se> | 2025-12-30 20:18:23 +0100 |
|---|---|---|
| committer | taitep <taitep@taitep.se> | 2025-12-30 20:18:23 +0100 |
| commit | 5a383956c9ee27d50452aa237a9f34b7f75e8f7c (patch) | |
| tree | d49a782dfb068e3165825569084c23872ca9d83d /src/core.rs | |
| parent | 6a0e5e63c13c4cb480233106d2043f2706bd5183 (diff) | |
Improve exception dumps and general debug info, make the emulator capable of running the riscv ISA tests, and perform some general fixes i found while making it pass the tests for RV64I
Diffstat (limited to 'src/core.rs')
| -rw-r--r-- | src/core.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core.rs b/src/core.rs index 07df2f5..64a6a25 100644 --- a/src/core.rs +++ b/src/core.rs @@ -164,7 +164,7 @@ impl Core { let instr = Instruction(instr); if let Err(e) = find_and_exec(instr, self) { - eprintln!("instr: {:08x}", instr.0); + dbg!(instr); return Err(e); } @@ -174,6 +174,7 @@ impl Core { fn throw_exception(&mut self, exception: Exception) { eprintln!("Exception: {exception:?}"); dbg!(self.pc, self.x_regs); + dbg!(self.x_regs[10]); } pub fn reset(&mut self, pc: u64) { |
