change Instruction to 32bits

This commit is contained in:
Baptiste 2022-11-09 15:10:03 +01:00
parent 7a89d06f36
commit b685c198b3

View File

@ -1,5 +1,5 @@
pub struct Instruction { pub struct Instruction {
pub value : u64, pub value : u32,
pub opcode : u8, pub opcode : u8,
pub rs1 : u8, pub rs1 : u8,
@ -26,7 +26,7 @@ pub struct Instruction {
pub imm21_1_signed : i32, pub imm21_1_signed : i32,
} }
pub fn decode(val : u64) -> Instruction { pub fn decode(val : u32) -> Instruction {
let value = val; let value = val;