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