Merge branch 'decode_print' of https://gitlab.istic.univ-rennes1.fr/simpleos/burritos into decode_print
This commit is contained in:
commit
42221a26c3
@ -1,7 +1,7 @@
|
||||
#[allow(non_snake_case)] // supprimer le warning snake case (quand les noms de variables ont des majuscules)
|
||||
#[derive(Debug)]
|
||||
pub struct Instruction {
|
||||
pub value : u64,
|
||||
pub value : u32,
|
||||
|
||||
pub opcode : u8,
|
||||
pub rs1 : u8,
|
||||
@ -29,7 +29,7 @@ pub struct Instruction {
|
||||
}
|
||||
|
||||
#[allow(non_snake_case)]
|
||||
pub fn decode(val : u64) -> Instruction {
|
||||
pub fn decode(val : u32) -> Instruction {
|
||||
|
||||
let value = val;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user