Hi Majid

If you want to set up a TLB along with the prefetcher you can modify the
CacheConfig.py, where the prefetchers are created and then use the method
registerTLB()

For example, say we want to add the TLB to the dcache prefetcher:

dcache.prefetcher = hwpClass()
dcache.registerTLB(system.cpu[i].dtb)

This will link the dcache prefetcher with the data TLB.

Hope this helps,
Javier.


On Fri, Oct 25, 2019 at 4:56 PM Majid Jalili <[email protected]> wrote:

> When I enable the use_virtual_addresses ans start feeding the prefetchers
> with VA address, I see no translation happening,  and I ended up with
> situation where all new addresses are dropped because the reference to tlb
> is null. Any help is appreciated.
>
>
> use_virtual_addresses = Param.Bool(True,
>         "Use virtual addresses for prefetching")
>
>
> system.cpu.dcache.prefetcher.pfSpanPage        999975
>   # number of prefetches that crossed the page
>
> Here tlb is null.
>
> bool can_cross_page = (tlb != nullptr);
>         if (can_cross_page && samePage(addr_prio.first, pfi.getAddr())) {
>
>
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to