Hi,

TLB is just a cache of VPN to PFN mappings, thus it does not nothing to do with 
selecting PFNs.

In the SE mode the mappings are created by gem5 itself here:
https://gem5.googlesource.com/public/gem5/+/refs/heads/stable/src/sim/process.cc#317
The easiest would be to set paddr = vaddr, but you might have to consider
things like page alignment and memory regions (e.g., what if the paddr
you want to use is already used for a code page...?).

Best regards,

Soramichi Akiyama

On 2023/02/04 12:15, Abdlerhman Abotaleb via gem5-users wrote:
How to enforce the TLB in the system emulated (SE) mode to always produce
Page Frame Number = Virtual Page Number.
I may want to try two things:

  1. Don't disable the TLB but have PFN=VPN
  2. Disable TLB , so addresses in the workload are physical addresses.

Thanks, a lot.


_______________________________________________
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
_______________________________________________
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org

Reply via email to