diff options
author | David Li <li.davidm96@gmail.com> | 2016-01-11 09:29:42 -0700 |
---|---|---|
committer | David Li <li.davidm96@gmail.com> | 2016-01-11 09:29:42 -0700 |
commit | ab4ba59cca5094f15987ab16bddbd0ca4ea50a62 (patch) | |
tree | 1ce6392ff92f3001174ff0010d323eb2304f839c /src/isa/mod.rs | |
parent | 2c80c2afc190b3a37c42808995f4dd0389d4202e (diff) |
Fix BGE, BGEU, funct3 calculation
Diffstat (limited to 'src/isa/mod.rs')
-rw-r--r-- | src/isa/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/isa/mod.rs b/src/isa/mod.rs index 8a6e65b..2c20d05 100644 --- a/src/isa/mod.rs +++ b/src/isa/mod.rs @@ -130,7 +130,7 @@ impl Instruction { } pub fn funct3(&self) -> u32 { - (self.word >> 12) & 0x3 + (self.word >> 12) & 0x7 } pub fn funct7(&self) -> u32 { |