Thanks Ali for helping me out.

I tried the following things to create an exit event at regular intervals -

1. changing the repeat parameter to 10 in SimLoopExitEvent (repeat after 10
instructions), but that assertion  'assert(isFlagSet(IsMainQueue))' failed.

2. Calling exitSimLoop(cause,code, curTick()+10, 0) inside
SimLoopExitEvent::process()

    if (!isFlagSet(IsMainQueue)) {
        exitSimLoop(cause, code);
        delete this;
    }

    //Insert an event again
    exitSimLoop(cause,code, curTick()+10, 0);

Unfortunately, the while loop in Simulate.cc goes from 7000 (the first exit
event) to 7010 (the second exit event) directly, and exits again.

Could you please tell me where I am going wrong?

Regards,
S. Balaji
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to