summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2025-03-10 22:17:21 -0400
committerbd <bdunahu@operationnull.com>2025-03-10 22:17:21 -0400
commit17dfdb2e00b609e3c7e975ce7a7c19da43318b79 (patch)
tree458c1a01755ae6bb21e1bdd4dcd16afe54c3e6f1
parente8fbf581f70a899a26f71e4b2220dccd1b986ed8 (diff)
Remove problematic file-local logger in cli.cc
-rw-r--r--src/cli/cli.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/cli/cli.cc b/src/cli/cli.cc
index e968a42..272c246 100644
--- a/src/cli/cli.cc
+++ b/src/cli/cli.cc
@@ -5,10 +5,9 @@
#include "response.h"
#include <stdio.h>
-static Logger *global_log = Logger::getInstance();
-
Cli::Cli()
{
+ this->cache = nullptr;
this->initialize();
commands["l"] = [this](std::vector<std::string> args) {
@@ -176,7 +175,7 @@ void Cli::initialize()
{
Logger *global_log = Logger::getInstance();
global_log->log(INFO, "Resetting memory configuration.");
- if (this->cache == nullptr)
+ if (this->cache != nullptr)
delete this->cache;
Dram *d = new Dram(MEM_SIZE, MEM_DELAY);
this->cache = new Cache(d, L1_CACHE_DELAY);