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
commit183ddf3d0d4c9eb6fa6470f45dbb4041c48eebab (patch)
tree458c1a01755ae6bb21e1bdd4dcd16afe54c3e6f1
parent85078b99e4cf652fcbd5f4d36b061674a2fe8aa6 (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);