From b685c198b3fdcd61271f0e91d80b99c64709b0ad Mon Sep 17 00:00:00 2001 From: Baptiste Date: Wed, 9 Nov 2022 15:10:03 +0100 Subject: [PATCH] change Instruction to 32bits --- src/decode.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/decode.rs b/src/decode.rs index 80ac041..43e04fa 100644 --- a/src/decode.rs +++ b/src/decode.rs @@ -1,5 +1,5 @@ pub struct Instruction { - pub value : u64, + pub value : u32, pub opcode : u8, pub rs1 : u8, @@ -26,7 +26,7 @@ pub struct Instruction { pub imm21_1_signed : i32, } -pub fn decode(val : u64) -> Instruction { +pub fn decode(val : u32) -> Instruction { let value = val;