From e8fbf581f70a899a26f71e4b2220dccd1b986ed8 Mon Sep 17 00:00:00 2001 From: bd Date: Mon, 10 Mar 2025 22:07:36 -0400 Subject: overload << operator for dram --- src/cli/cli.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/cli/cli.cc') diff --git a/src/cli/cli.cc b/src/cli/cli.cc index 2126798..e968a42 100644 --- a/src/cli/cli.cc +++ b/src/cli/cli.cc @@ -5,6 +5,8 @@ #include "response.h" #include +static Logger *global_log = Logger::getInstance(); + Cli::Cli() { this->initialize(); @@ -83,10 +85,9 @@ void Cli::help() "specified address. Accessor must be one of: \"MEM\", \"FETCH\", " "\"L1CACHE\".\n" << " c - manually advances the clock\n" + << " f - advances the clock until one operation reports completion\n" << " r - side door function that resets the memory configuration and " "cycles\n" - << " u
- side door function that updates " - "the memory at the specified address with data provided\n" << " p - side door function that peeks " "the current status of the entire memory subsystem\n" << " h - Prints this help text\n" @@ -129,7 +130,8 @@ void Cli::peek(int level) if (c) { std::cout << *c; } else { - std::cout << "dram"; + std::cout << *dynamic_cast(curr); + ; } } @@ -173,7 +175,7 @@ void Cli::run() void Cli::initialize() { Logger *global_log = Logger::getInstance(); - global_log->log(INFO, "Resetting memory configuration.\n"); + global_log->log(INFO, "Resetting memory configuration."); if (this->cache == nullptr) delete this->cache; Dram *d = new Dram(MEM_SIZE, MEM_DELAY); -- cgit v1.2.3