Hi Eliot, thanks for the advice. The component (class) I'm looking for is the one that uses the page table walker (which uses TLB inside) to convert a vaddr to a paddr.
What I want to do is to modify a given virtual address to a different address if it is in a specific range, to mimic memory region remapping without changing the application binary and/or the source code. I need to insert code to do this address modification where vaddr is about to be passed to the page table walker. Best regrads, Soramichi On Tue, 23 Jun 2020 08:51:04 -0400 Eliot Moss via gem5-users <gem5-users@gem5.org> wrote: > I don't use the latest version of Gem5, and have focused on an ARM simulator, > but I see no reason > why the operation would not be generally the same as the version I am using. > > In src/sim there is a base TLB class in tlb.{hh,cc}, and > src/arch/x86/tlb.{hh,cc} extend > this. There is also a table Walker class. I believe this is where > translation happens. > > If you look at your config.dot svg or pdf file, you should see the components > and how > they're connected together. > > Hope this helps ... EM > _______________________________________________ > gem5-users mailing list -- gem5-users@gem5.org > To unsubscribe send an email to gem5-users-le...@gem5.org > %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s -- Soramichi Akiyama <akiy...@ci.i.u-tokyo.ac.jp> Department of Creative Informatics, Graduate School of Information Science and Technology, The University of Tokyo, Japan _______________________________________________ gem5-users mailing list -- gem5-users@gem5.org To unsubscribe send an email to gem5-users-le...@gem5.org %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s