aboutsummaryrefslogtreecommitdiff
path: root/src/isa
diff options
context:
space:
mode:
Diffstat (limited to 'src/isa')
-rw-r--r--src/isa/mod.rs2
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 {