aboutsummaryrefslogtreecommitdiff
path: root/src/shareable_cache.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/shareable_cache.rs')
-rw-r--r--src/shareable_cache.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/shareable_cache.rs b/src/shareable_cache.rs
index 503c7d5..6cc22df 100644
--- a/src/shareable_cache.rs
+++ b/src/shareable_cache.rs
@@ -1,8 +1,8 @@
use std::collections::HashSet;
+use rustv::cache::{CacheInterface, CacheMetadata, SharedCache};
use rustv::isa::{self, IsaType};
-use rustv::memory::{CacheInterface, CacheMetadata, MemoryError, MemoryInterface,
- Result, SharedCache, SharedMemory};
+use rustv::memory::{MemoryError, MemoryInterface, Result};
pub const WRITE_TRAP_VALUE: isa::Byte = isa::Byte(0xE0);
pub const AREA_TRAP_VALUE: isa::Byte = isa::Byte(0xE4);
@@ -24,6 +24,7 @@ pub struct ShareableCache<'a> {
/// Cache snooping: update the secondary cache when the primary cache
/// is written to. This is a macro in order to be generic with regard
/// to the size of the write.
+// TODO: snoop needs to take care of in-flight fetch requests?
macro_rules! snoop {
($cache: expr, $write_value: ident, $address: ident, $value: ident) => {
if $cache.borrow().is_address_accessible($address) {