summaryrefslogtreecommitdiff
path: root/src/cli/cli.cc
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2025-03-10 16:44:39 -0400
committerbd <bdunahu@operationnull.com>2025-03-10 16:44:39 -0400
commit141494cb961b72a7ad56c3e754af43a07f1b8c23 (patch)
treebfd4d2a5303d15f625b4d945800c0c7c55a2bac7 /src/cli/cli.cc
parent486d18df5ca93e043fdd14fac1d22b5fe40fb6f6 (diff)
Add starter overloaded << operator for cache
Diffstat (limited to 'src/cli/cli.cc')
-rw-r--r--src/cli/cli.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/cli/cli.cc b/src/cli/cli.cc
index fea44d7..d1631b4 100644
--- a/src/cli/cli.cc
+++ b/src/cli/cli.cc
@@ -120,11 +120,9 @@ void Cli::view(int level, int base, int lines)
curr = curr->get_lower();
}
- std::vector<std::array<signed int, LINE_SIZE>> data =
- curr->view(base, lines);
-
- if (dynamic_cast<const Cache *>(curr)) {
-
+ Cache *c = dynamic_cast<Cache *>(curr);
+ if (c) {
+ std::cout << *c;
} else {
std::cout << "dram";
}