From ab4ba59cca5094f15987ab16bddbd0ca4ea50a62 Mon Sep 17 00:00:00 2001
From: David Li
Date: Mon, 11 Jan 2016 09:29:42 -0700
Subject: Fix BGE, BGEU, funct3 calculation
---
src/isa/mod.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'src/isa')
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 {
--
cgit v1.2.3