Merge branch 'decode_print' of https://gitlab.istic.univ-rennes1.fr/simpleos/burritos into decode_print

This commit is contained in:
Quentin Legot 2022-11-09 15:57:10 +01:00
commit 42221a26c3

View File

@ -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;