vtophys.cc (6019:76890d8b28f5) vtophys.cc (7651:84a44eb3ccb8)
1/*
2 * Copyright (c) 2002-2005 The Regents of The University of Michigan
3 * Copyright (c) 2007-2008 The Florida State University
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met: redistributions of source code must retain the above copyright

--- 31 unchanged lines hidden (view full) ---

40#include "mem/vport.hh"
41
42using namespace std;
43using namespace ArmISA;
44
45Addr
46ArmISA::vtophys(Addr vaddr)
47{
1/*
2 * Copyright (c) 2002-2005 The Regents of The University of Michigan
3 * Copyright (c) 2007-2008 The Florida State University
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met: redistributions of source code must retain the above copyright

--- 31 unchanged lines hidden (view full) ---

40#include "mem/vport.hh"
41
42using namespace std;
43using namespace ArmISA;
44
45Addr
46ArmISA::vtophys(Addr vaddr)
47{
48 Addr paddr = 0;
49 if (ArmISA::IsUSeg(vaddr))
50 DPRINTF(VtoPhys, "vtophys: invalid vaddr %#x", vaddr);
51 else if (ArmISA::IsKSeg0(vaddr))
52 paddr = ArmISA::KSeg02Phys(vaddr);
53 else
54 panic("vtophys: ptbr is not set on virtual lookup for vaddr %#x", vaddr);
55
56 DPRINTF(VtoPhys, "vtophys(%#x) -> %#x\n", vaddr, paddr);
57
58 return paddr;
48 fatal("VTOPHYS: Can't convert vaddr to paddr on ARM without a thread context");
59}
60
61Addr
62ArmISA::vtophys(ThreadContext *tc, Addr addr)
63{
64 fatal("VTOPHYS: Unimplemented on ARM\n");
65}
66
49}
50
51Addr
52ArmISA::vtophys(ThreadContext *tc, Addr addr)
53{
54 fatal("VTOPHYS: Unimplemented on ARM\n");
55}
56