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:
@@ -57,7 +57,7 @@ namespace ArmISA {
|
||||
|
||||
class TableWalker;
|
||||
class TLB;
|
||||
class TlbEntry;
|
||||
struct TlbEntry;
|
||||
class TLBIOp;
|
||||
class TlbTestInterface;
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user