aboutsummaryrefslogtreecommitdiff
path: root/src/isa/funct3.rs
diff options
context:
space:
mode:
authorDavid Li <li.davidm96@gmail.com>2015-12-20 22:33:03 -0500
committerDavid Li <li.davidm96@gmail.com>2015-12-20 22:33:03 -0500
commit600fcc814e27e7f38969726e1263a36592bbde58 (patch)
treed8e9cc7d61ece33f40a8d552e442ef75e29702e1 /src/isa/funct3.rs
parent398e6b6a3c7cc7efd579e00f6f65bde40e39d628 (diff)
parent68a0d8cb83d028421972750ab7514fd3a9d39fd1 (diff)
Merge branch 'master' of git.lidavidm.me:rustv
Diffstat (limited to 'src/isa/funct3.rs')
-rw-r--r--src/isa/funct3.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/isa/funct3.rs b/src/isa/funct3.rs
index be2eafa..e74da96 100644
--- a/src/isa/funct3.rs
+++ b/src/isa/funct3.rs
@@ -16,6 +16,13 @@ pub const SRL_SRA: u32 = 0x5;
pub const OR: u32 = 0x6;
pub const AND: u32 = 0x7;
+pub const BEQ: u32 = 0b000;
+pub const BNE: u32 = 0b001;
+pub const BLT: u32 = 0b100;
+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;