summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortaitep <taitep@taitep.se>2025-12-23 11:01:28 +0100
committertaitep <taitep@taitep.se>2025-12-23 11:01:28 +0100
commitf38114dbd7a897a8048bf27446c75f12b994249f (patch)
tree454fe1938f5a42af5d84e4bf59e478868cbad5b1
parentc6da147d505020fe5d7ca3b505d412d42cb599e3 (diff)
Remove some debug messages i forgot
-rw-r--r--src/instructions/rvi.rs7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/instructions/rvi.rs b/src/instructions/rvi.rs
index c5ddaaa..7ca9acc 100644
--- a/src/instructions/rvi.rs
+++ b/src/instructions/rvi.rs
@@ -93,19 +93,12 @@ pub fn auipc(core: &mut Core, instr: Instruction) -> InstructionResult {
pub fn jal(core: &mut Core, instr: Instruction) -> InstructionResult {
core.reg_write(instr.rd(), core.pc.wrapping_add(4));
- eprintln!("set x{} to {:x}", instr.rd(), core.pc.wrapping_add(4));
core.pc = core.pc.wrapping_add(instr.imm_j());
InstructionResult::Normal
}
pub fn jalr(core: &mut Core, instr: Instruction) -> InstructionResult {
core.reg_write(instr.rd(), core.pc.wrapping_add(4));
- eprintln!(
- "origin: {:x}, reg: x{}={:x}",
- core.pc,
- instr.rs1(),
- core.reg_read(instr.rs1())
- );
core.pc = core.reg_read(instr.rs1()).wrapping_add(instr.imm_i());
InstructionResult::Normal
}