Okay, I understood. Thanks.

On Thu, Jul 6, 2023 at 12:57 PM Jason Lowe-Power <ja...@lowepower.com>
wrote:

> Hi John,
>
> The following may be helpful:
>
>
> https://gem5bootcamp.github.io/gem5-bootcamp-env/modules/developing%20gem5%20models/events/
> https://www.youtube.com/watch?v=OcXA1D4b1RA&t=3868s
>
> Cheers,
> Jason
>
> On Thu, Jul 6, 2023 at 9:53 AM Eliot Moss via gem5-users <
> gem5-users@gem5.org> wrote:
>
>> On 7/6/2023 11:12 AM, John Smith via gem5-users wrote:
>> > Greetings,
>> > If I want to, for example, add a delay of 100 ticks before a line of
>> code executes in the function
>> > handleTimingReqMiss() in cache.cc, how do I go about doing that?
>>
>> Generally speaking, you'll have to schedule an event and then do the
>> rest of the work in the event handler - something like that.  You can't
>> just suspend code in the middle.  You'll probably need to break things
>> into two functions to accomplish this.
>>
>> EM
>> _______________________________________________
>> gem5-users mailing list -- gem5-users@gem5.org
>> To unsubscribe send an email to gem5-users-le...@gem5.org
>>
>
_______________________________________________
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org

Reply via email to