1/* 2 * Copyright (c) 2007 The Hewlett-Packard Development Company 3 * All rights reserved. 4 * 5 * Redistribution and use of this software in source and binary forms, 6 * with or without modification, are permitted provided that the 7 * following conditions are met: 8 * --- 44 unchanged lines hidden (view full) --- 53 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 54 * 55 * Authors: Gabe Black 56 */ 57 58#ifndef __ARCH_X86_VTOPHYS_HH__ 59#define __ARCH_X86_VTOPHYS_HH__ 60 |
61#include "arch/x86/isa_traits.hh" 62#include "arch/x86/pagetable.hh" 63#include "sim/host.hh" |
64 |
65class ThreadContext; 66class FunctionalPort; 67 |
68namespace X86ISA 69{ |
70 71PageTableEntry 72kernel_pte_lookup(FunctionalPort *mem, Addr ptbr, X86ISA::VAddr vaddr); 73 74Addr vtophys(Addr vaddr); 75Addr vtophys(ThreadContext *tc, Addr vaddr); 76 |
77}; 78 79#endif // __ARCH_X86_VTOPHYS_HH__ |