From af31eff1db5fea09b7b01e5d163c1684d800f7f0 Mon Sep 17 00:00:00 2001 From: David Li Date: Wed, 6 Jan 2016 15:14:50 -0700 Subject: Implement LB, SB, LBU --- src/isa/funct3.rs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/isa') diff --git a/src/isa/funct3.rs b/src/isa/funct3.rs index 94f2f41..7cb3c5d 100644 --- a/src/isa/funct3.rs +++ b/src/isa/funct3.rs @@ -39,6 +39,12 @@ pub const BGE: u32 = 0b101; pub const BLTU: u32 = 0b110; pub const BGEU: u32 = 0b111; -pub const LW: u32 = 0x2; - -pub const SW: u32 = 0x2; +pub const LB: u32 = 0b000; +pub const LH: u32 = 0b001; +pub const LW: u32 = 0b010; +pub const LBU: u32 = 0b100; +pub const LHU: u32 = 0b101; + +pub const SB: u32 = 0b000; +pub const SH: u32 = 0b001; +pub const SW: u32 = 0b010; -- cgit v1.2.3