On 2/9/2023 11:07 AM, Priyanka Ankolekar via gem5-users wrote:
Hello,
I am running RISCV in full system mode (configs/examples/riscv/fs_linux.py).
I would like to play with the configuration of caches, TLB etc.
I can see there are command line options to configure the i-cache, d-cache like 
these:

[--l1d_size L1D_SIZE] [--l1i_size L1I_SIZE] [--l1d_assoc L1D_ASSOC] 
[--l1i_assoc L1I_ASSOC] etc.


How can I use these options to configure the TLB? Or is there another way to 
configure it?

If you go into a config.ini file for when you run a simulation
of your desired system, you can find all the internal parameters,
and also (importantly) the full name of the components within
the system.  You can set these parameters from the command line
using the --param command line flag, like this:

.../gem5.opt ... --param system.l2.prefetcher.table_entries="32" ...

This sets a different parameter (I did not have a config file handy
with the tlb names and parameters in it), but you can get the idea.

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

Reply via email to