Thank you a lot for the reply.

I tried looking into the prefetcher class in the mem folder, however I was
still unable to figure out how to actually push the prefetch request. I am
quite new to gem5, so I'm having a bit of extra trouble. Would you know of
a way to send memory access requests in arbitrary parts of the code?
Any help would be greatly appreciated.

Best regards,
Pedro Corrêa Rigotto

Em qua., 16 de ago. de 2023 às 19:15, Jason Lowe-Power <ja...@lowepower.com>
escreveu:

> Hi Pedro,
>
> On quick suggestion: It may make sense to put the prefetcher in the CPU
> model code (e.g., during the decode stage in the O3CPU) instead of in the
> decode logic of the ISA. After you get the `StaticInst` from the decoder,
> you should be able to push prefetch requests into the instruction cache
> from there. Hopefully this helps some.
>
> Cheers,
> Jason
>
> On Wed, Aug 16, 2023 at 11:21 AM Pedro Corrêa Rigotto via gem5-users <
> gem5-users@gem5.org> wrote:
>
>> For my research, I need to do some instruction prefetching during the
>> decoding step of specific instructions, which are not memory access
>> instructions. I am using Syscall Emulation mode, and I'm studying the x86,
>> ARM and RISC-V ISAs, however I will use whichever one works for this
>> purpose. I tried looking into the gem5 code to figure out how to do this,
>> however I encountered a big roadblock, since most of the code which deals
>> with instruction decoding and execution is generated by the compiler. I was
>> wondering if anyone knows a way to do this, or knows some reference of
>> someone who did prefetching research on gem5. Any help would be much
>> appreciated.
>>
>> Best regards,
>> Pedro Corrêa Rigotto
>> _______________________________________________
>> gem5-users mailing list -- gem5-users@gem5.org
>> To unsubscribe send an email to gem5-users-le...@gem5.org
>>
>

-- 
Pedro Corrêa Rigotto
_______________________________________________
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org

Reply via email to