On Sun, Sep 16, 2012 at 10:35 AM, hanhwi jang <[email protected]> wrote: > Hi, > > I want to implement perfect branch prediction feature. My idea is that > execute branch instruction first in QEMU before marss86 executes the > instruction. > So, I'm curious that there are any methods to control QEMU in Marss. > > PS. Do you have any document describing how QEMU and marss86 interact? > > Thanks, > Hanhwi
As far as i understand, QEMU and PTLSIM (cycle accurate simulation part of marssx86) share the same CPUState structure. the CPUstate structure keeps the architectural states of the cpu. and only one thing(QEMU or PTLSIM) can be updating the CPUState structure at a time. I have been thinking implementing a perfect branch predictor as well. i do not think this is easily doable in marssx86 at this point. Xin >s > _______________________________________________ > 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
