aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Li <li.davidm96@gmail.com>2016-01-04 18:30:36 -0700
committerDavid Li <li.davidm96@gmail.com>2016-01-04 18:30:36 -0700
commit7c2e626e99c6167444de52fb63509814644a11a3 (patch)
treed121897903e99ebc2950c09ca36c0f4f0cc4849d /src
parent6b3d1df04776406a39b3fd0fab18e49b92c84190 (diff)
Get rid of unused code
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs2
-rw-r--r--src/memory.rs11
2 files changed, 4 insertions, 9 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 7cf0920..6418df3 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU General Public License
// along with rustv. If not, see <http://www.gnu.org/licenses/>.
-#![feature(braced_empty_structs, clone_from_slice, raw, step_by)]
+#![feature(braced_empty_structs, step_by)]
pub mod isa;
pub mod binary;
pub mod memory;
diff --git a/src/memory.rs b/src/memory.rs
index 371a0a3..b90170b 100644
--- a/src/memory.rs
+++ b/src/memory.rs
@@ -35,6 +35,9 @@ pub trait MemoryInterface {
fn step(&mut self);
+ // fn prefetch(&mut self, address: isa::Address);
+ // fn invalidate(&mut self, address: isa::Address);
+
fn read_word(&mut self, address: isa::Address) -> Result<isa::Word>;
fn write_word(&mut self, address: isa::Address, value: isa::Word) -> Result<()>;
@@ -275,14 +278,6 @@ impl<'a> DirectMappedCache<'a> {
let offset_mask = !(self.block_words * 4 - 1);
address & offset_mask
}
-
- pub fn prefetch(&mut self, address: isa::Address) {
-
- }
-
- pub fn invalidate(&mut self, address: isa::Address) {
-
- }
}
impl<'a> MemoryInterface for DirectMappedCache<'a> {