Copy implementations
[gem5.git] / arch / alpha / vtophys.hh
index 75a58925943c52899b34eb09da2034644f135bfd..f5696e9c81c39b1c64192c0565a146d72e49e4ac 100644 (file)
@@ -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,7 @@ 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 CopyData(ExecContext *xc, void *dst, Addr vaddr, size_t len);
 void CopyString(ExecContext *xc, char *dst, Addr vaddr, size_t maxlen);