summaryrefslogtreecommitdiff
path: root/arch/alpha/vtophys.hh
diff options
context:
space:
mode:
authorNathan Binkert <binkertn@umich.edu>2004-10-23 10:41:35 -0400
committerNathan Binkert <binkertn@umich.edu>2004-10-23 10:41:35 -0400
commit224acc2abccec14ab3846f1b3308e642ed094456 (patch)
treed1637118879813f20f9ed202c8d93bec13914b24 /arch/alpha/vtophys.hh
parent3ab83348d2baa56b41f4bd35c65bb0bcaa4fb035 (diff)
downloadgem5-224acc2abccec14ab3846f1b3308e642ed094456.tar.xz
get rid of pmap.h and make things variables and inline
functions instead of preprocessor macros. arch/alpha/vtophys.cc: use new constants, functions and structs to clean up the vtophys code. arch/alpha/vtophys.hh: Clean up a little bit and make the protypes match new changes. base/remote_gdb.cc: dev/ide_disk.cc: kern/tru64/tru64_events.cc: use new constants from isa_traits.hh instead of ones from old pmap.h --HG-- extra : convert_revision : 5dce34e3b0c84ba72cefca34e5999b99898edcef
Diffstat (limited to 'arch/alpha/vtophys.hh')
-rw-r--r--arch/alpha/vtophys.hh14
1 files changed, 6 insertions, 8 deletions
diff --git a/arch/alpha/vtophys.hh b/arch/alpha/vtophys.hh
index f26404924..8e47a0031 100644
--- a/arch/alpha/vtophys.hh
+++ b/arch/alpha/vtophys.hh
@@ -26,19 +26,17 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef __VTOPHYS_H__
-#define __VTOPHYS_H__
+#ifndef __ARCH_ALPHA_VTOPHYS_H__
+#define __ARCH_ALPHA_VTOPHYS_H__
#include "arch/alpha/isa_traits.hh"
-#include "arch/alpha/pmap.h"
-
-inline bool entry_valid(uint64_t entry)
-{ return (entry & ALPHA_PTE_VALID) != 0; }
class ExecContext;
class PhysicalMemory;
-Addr kernel_pte_lookup(PhysicalMemory *pmem, Addr ptbr, Addr vaddr);
+AlphaISA::PageTableEntry
+kernel_pte_lookup(PhysicalMemory *pmem, Addr ptbr, AlphaISA::VAddr vaddr);
+
Addr vtophys(PhysicalMemory *xc, Addr vaddr);
Addr vtophys(ExecContext *xc, Addr vaddr);
uint8_t *vtomem(ExecContext *xc, Addr vaddr, size_t len);
@@ -48,5 +46,5 @@ void CopyOut(ExecContext *xc, void *dst, Addr src, size_t len);
void CopyIn(ExecContext *xc, Addr dst, void *src, size_t len);
void CopyString(ExecContext *xc, char *dst, Addr vaddr, size_t maxlen);
-#endif // __VTOPHYS_H__
+#endif // __ARCH_ALPHA_VTOPHYS_H__