diff options
author | Nathan Binkert <binkertn@umich.edu> | 2004-02-13 15:36:21 -0500 |
---|---|---|
committer | Nathan Binkert <binkertn@umich.edu> | 2004-02-13 15:36:21 -0500 |
commit | 8232c9743df13416810316476500d0e13681677e (patch) | |
tree | 02d295d452f3fe51c86338d71465fef2eb0959f7 /arch/alpha/vtophys.hh | |
parent | 5e82f8d84c4d8a8ec4ce914f02328a068ea2cacc (diff) | |
download | gem5-8232c9743df13416810316476500d0e13681677e.tar.xz |
fix up vtophys a bit
arch/alpha/vtophys.cc:
fix up vtophys to deal with translations if there
is no ptbr, and to deal with PAL addresses
add ptomem which is just a wrapper for dma_addr
arch/alpha/vtophys.hh:
add ptomem which is a wrapper for dma_addr with the
same usage as vtomem
--HG--
extra : convert_revision : 1ae22073d400e87b708a4a7ef501124227fc6c39
Diffstat (limited to 'arch/alpha/vtophys.hh')
-rw-r--r-- | arch/alpha/vtophys.hh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/alpha/vtophys.hh b/arch/alpha/vtophys.hh index 47ee538a6..f5696e9c8 100644 --- a/arch/alpha/vtophys.hh +++ b/arch/alpha/vtophys.hh @@ -42,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); |