vtophys.hh (4120:3e09b5d32c45) | vtophys.hh (4162:baef0678866b) |
---|---|
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 | 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#error X86 is not yet supported! | 61#include "arch/x86/isa_traits.hh" 62#include "arch/x86/pagetable.hh" 63#include "sim/host.hh" |
62 | 64 |
65class ThreadContext; 66class FunctionalPort; 67 |
|
63namespace X86ISA 64{ | 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 |
|
65}; 66 67#endif // __ARCH_X86_VTOPHYS_HH__ | 77}; 78 79#endif // __ARCH_X86_VTOPHYS_HH__ |