From efaf4844e51bd47f9385cedfc3f1392f04af2f42 Mon Sep 17 00:00:00 2001
From: David Li
Date: Mon, 25 Jan 2016 14:46:40 -0500
Subject: feat(memory): write cache tag info to global status structs
---
src/shareable_cache.rs | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
(limited to 'src/shareable_cache.rs')
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) {
--
cgit v1.2.3