Hi Rongrong,

The ones in exec_context.hh eventually calls the translation function in arch/alpha/tlb.* which are used to simulate the system TLB. The functions in vtophys.* are used for the simulator "back door access." It's used to initially load files, and do other such translation. For example the m5 utility application that is on the disk image is uses a special opcode with a virtual address in a register to read the rcS files off disk. A vtophys() call is then done on this address to turn it into a physical address so the simulator can the rcS file into the application space buffer.

Ali


On May 23, 2006, at 4:10 PM, lairongrong wrote:


Hi,

I found there are two sets of virtual ot physical address translation in
M5.
  One is defined in exec_context.hh :
translateInstReq(..),translateDataReadReq(..) and translateDataWriteReq(..).
  The other one is defined in vtophys.cc : vtophys(..) etc.

Does anyone know the functionality for each of them? What is the major
difference between them?

  Thanks!

Rongrong Lai



-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel? cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
m5sim-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/m5sim-users




-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
m5sim-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/m5sim-users

Reply via email to