mem: Use using to expose a print method that would otherwise be hidden.
authorGabe Black <gabeblack@google.com>
Mon, 10 Feb 2020 03:33:50 +0000 (19:33 -0800)
committerGabe Black <gabeblack@google.com>
Thu, 20 Feb 2020 23:14:15 +0000 (23:14 +0000)
This method would be hidden in the subclass which upset clang 11, and
that caused the build to break.

Change-Id: Ie678fc96a26809eb8f2acd0bddc1df81c0a9aa1e
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/25227
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Maintainer: Gabe Black <gabeblack@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/mem/ruby/slicc_interface/AbstractCacheEntry.hh

index 0519b3f7d6a86cd4758a2fdb7825409232a97351..056486c0596e18576a308f69a97e284780e9a7e1 100644 (file)
@@ -56,6 +56,7 @@ class AbstractCacheEntry : public ReplaceableEntry
     AccessPermission getPermission() const;
     void changePermission(AccessPermission new_perm);
 
+    using ReplaceableEntry::print;
     virtual void print(std::ostream& out) const = 0;
 
     // The methods below are those called by ruby runtime, add when it