diff options
author | David Li <li.davidm96@gmail.com> | 2016-01-25 14:46:40 -0500 |
---|---|---|
committer | David Li <li.davidm96@gmail.com> | 2016-01-25 14:46:40 -0500 |
commit | efaf4844e51bd47f9385cedfc3f1392f04af2f42 (patch) | |
tree | 59891695140006b954d98cf9a3cd231d9d15a38c /src/shareable_cache.rs | |
parent | 0a17928ce7a20ffb06e55d8ea2edc98a9ec50260 (diff) |
feat(memory): write cache tag info to global status structs
Diffstat (limited to 'src/shareable_cache.rs')
-rw-r--r-- | src/shareable_cache.rs | 5 |
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) { |