On Feb 23, 2011, at 2:48 PM, <[email protected]> <[email protected]> wrote:
> > Hello, > > I am trying to model thread migration between two different cores. The > cores will be asymmetric, probably a simple timing core and an O3 core. As > a first pass I was thinking of faking this migration by just changing the > cpu type and using the takeOverFrom method. Similar to how switching is > done with the driver core to accelerate. From my understanding this will > not necessarily switch cpus, only change the cpu type that the tread is > running on. Is this correct? Yes. > > Eventually I want to model this for real, i.e. have the cpus actually be > part of the system, have the threads migrate between the cores, and model > the timing of this and also coordinate with the OS. I'm guessing this is > what the switchcpu(ThreadContext *tc) pseudo instruction was intended to > do? Any pointers on how to start doing this? No, switch cpus does the above, but is sw control method to do it with a pseudo instruction. To do it for real you're going to have to hack on some Linux code or rely on the cpu hotplug code which will also probably take some work to make work in M5, but is rather slow (100s of ms to power up one cpu and power down another). Ali _______________________________________________ m5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/m5-users
