On Sat, May 21, 2011 at 5:21 PM, Tony Feng <[email protected]> wrote:
> Hi, > > I have been looking for the class where the memory access requests are > generated (from cache misses). Besides, which is the "main function" where > the environment including cores, memory hierarchy is initialized? Could > someone please point them out for me? Thank you. > > The core uses 'MemoryRequest' class to create a request and send this request to its cache using 'MemoryHierarchy::access_cache(..)' function. Search for this function in 'oooexec.cpp' and 'ooopipe.cpp' and you'll get how memory access are done. The 'main' function is in QEMU's vl.c file. All the cores and memory hierarchy is initialized by 'machine->init()' function call in 'ptlsim.cpp' file. Here 'machine' is a OutOfOrderMachine defined in 'ooocore.cpp'. PTLsim used a 'plugin' like mechanism to register a machine and uses '-core' configuration option to find the machine and initialize it. If you are using 'core-models' branch, this mechanism is replaced and only one machine 'BaseMachine' in (machine.cpp) is used to generate all the cores and memory configuration. - Avadh > Best Regards, > Tony > > _______________________________________________ > http://www.marss86.org > Marss86-Devel mailing list > [email protected] > https://www.cs.binghamton.edu/mailman/listinfo/marss86-devel > >
_______________________________________________ http://www.marss86.org Marss86-Devel mailing list [email protected] https://www.cs.binghamton.edu/mailman/listinfo/marss86-devel
