Hello,

I'm trying to implement an instruction "myinst" that accesses dependent memory locations (similar to pointer chasing) using the TimingCPU model (initiateAcc() and completeAcc()). For example:

             myinst r0,0x14000

The above line will first read 8 bytes from address 0x14000, which is say 0xFF000. It will then read 8 bytes from address 0xFF000 (or "qword ptr [0x14000]") into register r0. This requires issuing another initiateMemRead() call within the insturction's completeAcc() function. However, I haven't found another example instruction that does this.

I wonder whether this is currently supported by TimingCPU and what is the correct way to approach this?

Best,
Leonard
_______________________________________________
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org

Reply via email to