change Instruction to 32bits
This commit is contained in:
parent
7a89d06f36
commit
b685c198b3
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user