From ea76448fb43b760afa6a9380756b038c62ed9792 Mon Sep 17 00:00:00 2001
From: David Li
Date: Sun, 20 Dec 2015 18:25:51 -0500
Subject: Add Cache API
---
src/isa/mod.rs | 4 ++++
1 file changed, 4 insertions(+)
(limited to 'src/isa')
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,
}
--
cgit v1.2.3