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
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user