[libre-riscv-dev] TLB Replacement Policy

Luke Kenneth Casson Leighton lkcl at lkcl.net
Thu Apr 18 11:25:30 BST 2019


On Thu, Apr 18, 2019 at 6:15 AM Luke Kenneth Casson Leighton
<lkcl at lkcl.net> wrote:

> > By the end of the week I would like to finish implementing the
> > psuedo LRU and have the assoc cache done with unit tests.
>
>  cool.  i tried throwing some random experimentation values into the
> ariane ptw... i have *no idea* what to expect... honestly whilst i can
> handle straight code-translation, i feel you're better equipped to
> determine if the results of a given unit test are actually correct.

 i have sort-of worked out how to activate different PLRU entries, you
can see a function set_vaddr() that is required to set not just the
virtual address but something called the vpn as well, which is vaddr
>> 12 (4k pages)

https://git.libre-riscv.org/?p=soc.git;a=blob;f=TLB/src/ariane/test_tlb.py#l5

l.



More information about the libre-riscv-dev mailing list