vtophys.hh (8229:78bf55f23338) vtophys.hh (8730:0a742249f76b)
1/*
2 * Copyright (c) 2002-2005 The Regents of The University of Michigan
3 * Copyright (c) 2007-2008 The Florida State University
4 * Copyright (c) 2009 The University of Edinburgh
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions are

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

35
36#ifndef __ARCH_POWER_VTOPHYS_HH__
37#define __ARCH_POWER_VTOPHYS_HH__
38
39#include "arch/power/isa_traits.hh"
40#include "arch/power/utility.hh"
41
42class ThreadContext;
1/*
2 * Copyright (c) 2002-2005 The Regents of The University of Michigan
3 * Copyright (c) 2007-2008 The Florida State University
4 * Copyright (c) 2009 The University of Edinburgh
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions are

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

35
36#ifndef __ARCH_POWER_VTOPHYS_HH__
37#define __ARCH_POWER_VTOPHYS_HH__
38
39#include "arch/power/isa_traits.hh"
40#include "arch/power/utility.hh"
41
42class ThreadContext;
43class FunctionalPort;
44
45namespace PowerISA {
46
47inline Addr
48PteAddr(Addr a)
49{
50 return (a & PteMask) << PteShift;
51}
52
53} // namespace PowerISA
54
55#endif // __ARCH_POWER_VTOPHYS_HH__
56
43
44namespace PowerISA {
45
46inline Addr
47PteAddr(Addr a)
48{
49 return (a & PteMask) << PteShift;
50}
51
52} // namespace PowerISA
53
54#endif // __ARCH_POWER_VTOPHYS_HH__
55