ARM: Remove ALPHA KSeg functions.

These were erronously copied years ago into the ARM directory.
This commit is contained in:
William Wang
2010-08-25 19:10:43 -05:00
parent c0b54f579c
commit 8376f7bca3
3 changed files with 1 additions and 23 deletions

View File

@@ -86,11 +86,6 @@ namespace ArmISA
const Addr USegBase = ULL(0x0);
const Addr USegEnd = ULL(0x7FFFFFFF);
// Kernel Segment 0 - Unmapped
const Addr KSeg0End = ULL(0x9FFFFFFF);
const Addr KSeg0Base = ULL(0x80000000);
const Addr KSeg0Mask = ULL(0x1FFFFFFF);
const unsigned VABits = 32;
const unsigned PABits = 32; // Is this correct?
const Addr VAddrImplMask = (ULL(1) << VABits) - 1;

View File

@@ -45,17 +45,7 @@ using namespace ArmISA;
Addr
ArmISA::vtophys(Addr vaddr)
{
Addr paddr = 0;
if (ArmISA::IsUSeg(vaddr))
DPRINTF(VtoPhys, "vtophys: invalid vaddr %#x", vaddr);
else if (ArmISA::IsKSeg0(vaddr))
paddr = ArmISA::KSeg02Phys(vaddr);
else
panic("vtophys: ptbr is not set on virtual lookup for vaddr %#x", vaddr);
DPRINTF(VtoPhys, "vtophys(%#x) -> %#x\n", vaddr, paddr);
return paddr;
fatal("VTOPHYS: Can't convert vaddr to paddr on ARM without a thread context");
}
Addr

View File

@@ -44,13 +44,6 @@ class FunctionalPort;
namespace ArmISA {
inline Addr PteAddr(Addr a) { return (a & PteMask) << PteShift; }
// User Virtual
inline bool IsUSeg(Addr a) { return USegBase <= a && a <= USegEnd; }
inline bool IsKSeg0(Addr a) { return KSeg0Base <= a && a <= KSeg0End; }
inline Addr KSeg02Phys(Addr addr) { return addr & KSeg0Mask; }
Addr vtophys(Addr vaddr);
Addr vtophys(ThreadContext *tc, Addr vaddr);
};