Hi All:
    Recently I wrote a new component in Garnet, which wakes itself up when 
initialized. After that, it re-shedules periodically.
    Below is the code for this purpose:

    MyComponent::MyComponent(){
        ...
        scheduleEventAbsolute(m_net_ptr->clockEdge(Cycles(1)));
        ...
    }

    MyComponents::wakeup(){
        ...
        scheduleEvent(Cycles(A_PERIOD));
        ...
    }

    The code works fine when I start a full system simulation afresh. However, 
when I restore from a checkpoint, MyComponent never wakes up.
    I guess the problem is in the event queue. It seems the wake up event of 
MyComponent is not registered successfully. But I am not sure about this...
    Based on this observation, my question is:

        - How to wake up your own component after restoring from a checkpoint?

Best Regards
==================================

Yuan Yao (Mr.)
PhD Candidate in Electronic and Computer Systems

School of ICT
KTH Royal Institute of Technology

yuan...@kth.se<mailto:yuan...@kth.se>






_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to