aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/globals.rs2
-rw-r--r--src/main.rs2
-rw-r--r--src/system.rs4
3 files changed, 3 insertions, 5 deletions
diff --git a/src/globals.rs b/src/globals.rs
index 3a661e4..0d71762 100644
--- a/src/globals.rs
+++ b/src/globals.rs
@@ -114,7 +114,7 @@ impl<'a> CacheEventHandler<'a> {
impl<'a> cache::EventHandler for CacheEventHandler<'a> {
fn block_fetched(&self, location: cache::CacheLocation) {
// TODO: need to snoop cache
- info!("[memory] [cache] {}: tag {:x} fetched", self.player, location.tag);
+ debug!("[memory] [cache] {}: tag {:x} fetched", self.player, location.tag);
self.updater.finish_tag(self.player, location.tag, location.index);
}
diff --git a/src/main.rs b/src/main.rs
index c4cb1e1..a9af93e 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -95,8 +95,6 @@ fn main() {
let payload2 = generate_payload();
let memory = MemoryTracker::new(memory, payload1, payload2);
- // TODO: initialize global data
-
let memory_ref = Rc::new(RefCell::new(memory));
let updater = globals::Updater::new(
diff --git a/src/system.rs b/src/system.rs
index f0f3095..158f3ff 100644
--- a/src/system.rs
+++ b/src/system.rs
@@ -62,14 +62,14 @@ impl<'a> SyscallHandler<'a> {
}
fn enable_secondary(&mut self, core_id: usize) -> Option<Trap> {
- debug!("[syscall] [memory] Secondary cache enabled for core {}",
+ info!("[syscall] [memory] Secondary cache enabled for core {}",
core_id);
self.caches[core_id].borrow_mut().enable_secondary();
None
}
fn disable_secondary(&mut self, core_id: usize) -> Option<Trap> {
- debug!("[syscall] [memory] Secondary cache disabled for core {}",
+ info!("[syscall] [memory] Secondary cache disabled for core {}",
core_id);
self.caches[core_id].borrow_mut().disable_secondary();
None