is there way to simulate 1M instructions / 1Billion instructions executed, i.e. a way to switch from QEMU and PTLSIM easily ?
Xin On Thu, Sep 6, 2012 at 7:35 AM, avadh patel <[email protected]> wrote: > > > On Wed, Sep 5, 2012 at 10:32 AM, Xin Tong <[email protected]> wrote: >> >> On Wed, Sep 5, 2012 at 10:28 AM, avadh patel <[email protected]> wrote: >> > >> > >> > On Wed, Sep 5, 2012 at 10:04 AM, Xin Tong <[email protected]> >> > wrote: >> >> >> >> Is that true that for complex instructions, i.e. VMrun, VMCall, etc. >> >> PTLSIM gives up on trying to simulate it in a cycle accurate fashion. >> >> instead, it calls into QEMU and simulate that instruction in a >> >> functional way ? >> >> >> > Yes. Take a look at 'assist' functions in decode-complex.cpp. >> >> can i do this for any abitrary instruction i want to simulate. to do >> that, some contexts need to be set up. i.e. all the instructions in >> the pipeline needs to be completed and committed to architecture >> states ? >> > Yes you can do it for any instruction. Once you set assist opcode during > decoding stage, the pipeline will make sure that all the instructions before > assist are committed and context is up-to-date. The return value higher than > 0 from assist function is used to indicate pipeline flush required or not. > > - Avadh > >> >> Xin >> > >> > - Avadh >> > >> >> Xin >> >> >> >> _______________________________________________ >> >> 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
