arch-arm,misc: Fix build errors (#1789)

1. Add missing override to `print` function.
2. Change `TlbEntry` to struct in `ArmISA` class.

This was found attempting to compile gem5 on MacOS (Apple Silicon) with
clang v19.
This commit is contained in:
Bobby R. Bruce
2024-11-18 09:28:15 -08:00
parent 9b5f2db157
commit 5f01a03bde
2 changed files with 2 additions and 2 deletions

View File

@@ -57,7 +57,7 @@ namespace ArmISA {
class TableWalker;
class TLB;
class TlbEntry;
struct TlbEntry;
class TLBIOp;
class TlbTestInterface;

View File

@@ -500,7 +500,7 @@ struct TlbEntry : public ReplaceableEntry, Serializable
}
std::string
print() const
print() const override
{
return csprintf("%#x, asn %d vmn %d ppn %#x size: %#x ap:%d "
"ns:%d ss:%s g:%d xs: %d regime:%s", vpn << N, asid, vmid,