vtophys.hh (8759:e9455f81588f) vtophys.hh (8808:8af87554ad7e)
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
47Addr vtophys(Addr vaddr);
48Addr vtophys(ThreadContext *tc, Addr vaddr);
49
50inline Addr
51PteAddr(Addr a)
52{
53 return (a & PteMask) << PteShift;
54}
55
56} // namespace PowerISA
57
58#endif // __ARCH_POWER_VTOPHYS_HH__
59
43
44namespace PowerISA {
45
46Addr vtophys(Addr vaddr);
47Addr vtophys(ThreadContext *tc, Addr vaddr);
48
49inline Addr
50PteAddr(Addr a)
51{
52 return (a & PteMask) << PteShift;
53}
54
55} // namespace PowerISA
56
57#endif // __ARCH_POWER_VTOPHYS_HH__
58