summaryrefslogtreecommitdiff
path: root/src/arch/arm
diff options
context:
space:
mode:
authorWilliam Wang <William.Wang@ARM.com>2010-08-25 19:10:43 -0500
committerWilliam Wang <William.Wang@ARM.com>2010-08-25 19:10:43 -0500
commit8376f7bca3814844ab9cc592ff8f32c702a18629 (patch)
treed0e7f2aefdaa659d20ce3277000172797823afe7 /src/arch/arm
parentc0b54f579ccccd805ccc1f0b2c41b0b10899eecd (diff)
downloadgem5-8376f7bca3814844ab9cc592ff8f32c702a18629.tar.xz
ARM: Remove ALPHA KSeg functions.
These were erronously copied years ago into the ARM directory.
Diffstat (limited to 'src/arch/arm')
-rw-r--r--src/arch/arm/isa_traits.hh5
-rw-r--r--src/arch/arm/vtophys.cc12
-rw-r--r--src/arch/arm/vtophys.hh7
3 files changed, 1 insertions, 23 deletions
diff --git a/src/arch/arm/isa_traits.hh b/src/arch/arm/isa_traits.hh
index 2744ec753..39232b9c7 100644
--- a/src/arch/arm/isa_traits.hh
+++ b/src/arch/arm/isa_traits.hh
@@ -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;
diff --git a/src/arch/arm/vtophys.cc b/src/arch/arm/vtophys.cc
index 086c034c8..01cbb3e79 100644
--- a/src/arch/arm/vtophys.cc
+++ b/src/arch/arm/vtophys.cc
@@ -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
diff --git a/src/arch/arm/vtophys.hh b/src/arch/arm/vtophys.hh
index edd21558f..16d8c7ceb 100644
--- a/src/arch/arm/vtophys.hh
+++ b/src/arch/arm/vtophys.hh
@@ -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);
};