- Clean up and factor out all of the binning code into a
[gem5.git] / arch / alpha / vtophys.hh
index 8d121ec5bdc1aa115fc3a2e9f71c59e20983a62f..7c22e33714e4e831ea6d102ded30c1a9a381fcae 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2003 The Regents of The University of Michigan
+ * Copyright (c) 2002-2004 The Regents of The University of Michigan
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -29,6 +29,7 @@
 #ifndef __VTOPHYS_H__
 #define __VTOPHYS_H__
 
+#include "targetarch/isa_traits.hh"
 #include "targetarch/pmap.h"
 
 inline bool entry_valid(uint64_t entry)
@@ -41,6 +42,11 @@ Addr kernel_pte_lookup(PhysicalMemory *pmem, Addr ptbr, Addr vaddr);
 Addr vtophys(PhysicalMemory *xc, Addr vaddr);
 Addr vtophys(ExecContext *xc, Addr vaddr);
 uint8_t *vtomem(ExecContext *xc, Addr vaddr, size_t len);
+uint8_t *ptomem(ExecContext *xc, Addr paddr, size_t len);
+
+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__