diff options
author | bd <bdunahu@operationnull.com> | 2025-03-10 16:44:39 -0400 |
---|---|---|
committer | bd <bdunahu@operationnull.com> | 2025-03-10 16:44:39 -0400 |
commit | 141494cb961b72a7ad56c3e754af43a07f1b8c23 (patch) | |
tree | bfd4d2a5303d15f625b4d945800c0c7c55a2bac7 /src/cli | |
parent | 486d18df5ca93e043fdd14fac1d22b5fe40fb6f6 (diff) |
Add starter overloaded << operator for cache
Diffstat (limited to 'src/cli')
-rw-r--r-- | src/cli/cli.cc | 8 |
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"; } |