arch-arm: Add initial support for SVE contiguous loads/stores
[gem5.git] / src / arch / sparc / vtophys.cc
index 6ba62eb9c3a627236ca52700cdd671a29081e42b..88f1c4acebbbe256b8048c0d708486ae25580204 100644 (file)
@@ -83,8 +83,8 @@ vtophys(ThreadContext *tc, Addr addr)
     // int sec_context = bits(tlbdata,63,48);
 
     PortProxy &mem = tc->getPhysProxy();
-    TLB* itb = tc->getITBPtr();
-    TLB* dtb = tc->getDTBPtr();
+    TLB* itb = dynamic_cast<TLB *>(tc->getITBPtr());
+    TLB* dtb = dynamic_cast<TLB *>(tc->getDTBPtr());
     TlbEntry* tbe;
     PageTableEntry pte;
     Addr tsbs[4];