vtophys.hh (6019:76890d8b28f5) vtophys.hh (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

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

39
40
41class ThreadContext;
42class FunctionalPort;
43
44namespace ArmISA {
45 inline Addr PteAddr(Addr a) { return (a & PteMask) << PteShift; }
46
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

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

39
40
41class ThreadContext;
42class FunctionalPort;
43
44namespace ArmISA {
45 inline Addr PteAddr(Addr a) { return (a & PteMask) << PteShift; }
46
47 // User Virtual
48 inline bool IsUSeg(Addr a) { return USegBase <= a && a <= USegEnd; }
49
50 inline bool IsKSeg0(Addr a) { return KSeg0Base <= a && a <= KSeg0End; }
51
52 inline Addr KSeg02Phys(Addr addr) { return addr & KSeg0Mask; }
53
54 Addr vtophys(Addr vaddr);
55 Addr vtophys(ThreadContext *tc, Addr vaddr);
56};
57
58#endif // __ARCH_ARM_VTOPHYS_H__
59
47 Addr vtophys(Addr vaddr);
48 Addr vtophys(ThreadContext *tc, Addr vaddr);
49};
50
51#endif // __ARCH_ARM_VTOPHYS_H__
52