summaryrefslogtreecommitdiff
path: root/src/instructions/rvi.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/instructions/rvi.rs')
-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
}