aboutsummaryrefslogtreecommitdiff
path: root/src/isa/mod.rs
diff options
context:
space:
mode:
authorDavid Li <li.davidm96@gmail.com>2015-12-20 18:25:51 -0500
committerDavid Li <li.davidm96@gmail.com>2015-12-20 18:26:02 -0500
commitea76448fb43b760afa6a9380756b038c62ed9792 (patch)
tree96d62c03486b3d5287c3710233ce85c1fc8f00bd /src/isa/mod.rs
parentde3428fe0a808ffd693675583992a39aa4247287 (diff)
Add Cache API
Diffstat (limited to 'src/isa/mod.rs')
-rw-r--r--src/isa/mod.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/isa/mod.rs b/src/isa/mod.rs
index 565e6e0..dd803c5 100644
--- a/src/isa/mod.rs
+++ b/src/isa/mod.rs
@@ -2,6 +2,8 @@ pub mod opcodes;
pub mod funct3;
pub mod funct7;
+pub type Word = u32;
+
#[derive(Debug, PartialEq)]
pub enum Register {
X0 = 0,
@@ -84,6 +86,8 @@ impl Register {
#[derive(Copy, Clone, Debug)]
pub struct Instruction {
+ // TODO: rename word to something correct - instructions are not always a
+ // word
word: u32,
}