Hi Xijing, You can set specific mappings from virtual to physical addresses by calling the `map()` function on the Process object from your python configuration file. See https://gem5.googlesource.com/public/gem5/+/refs/heads/stable/src/sim/Process.py#37
Then, once you have a virtual->physical mapping set, you can use mmap() in your guest application and allocate memory at a specific virtual address. Then, when you read/write that virtual address it will be translated to the physical address you set in your config file and you can do whatever you want with the address in the simulator. Cheers, Jason On Sat, Jun 19, 2021 at 1:10 PM Xijing Han via gem5-users < [email protected]> wrote: > Hi All, > > I want to reserve a chunk of memory space for other usage so that the > application won't use it. How can I achieve this in SE mode? > > Thanks, > Xijing Han > _______________________________________________ > gem5-users mailing list -- [email protected] > To unsubscribe send an email to [email protected] > %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
_______________________________________________ gem5-users mailing list -- [email protected] To unsubscribe send an email to [email protected] %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
