From 7c2e626e99c6167444de52fb63509814644a11a3 Mon Sep 17 00:00:00 2001 From: David Li Date: Mon, 4 Jan 2016 18:30:36 -0700 Subject: Get rid of unused code --- src/memory.rs | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'src/memory.rs') 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; 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> { -- cgit v1.2.3