-
Hi It seems that the delay of getting each instruction in pre-fetch buffer is added to it, but predictive approach that fetches next instructions into pre-fetch buffer may result in greater value than real instruction fetch delay (due to control transfer instructions that flush pre-fetch buffer) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The
Yes and no. 😅
That is correct. Let's take an unconditional branch as an example. When executed, the program counter is updated and the prefetch buffer is flushed. Then, a new instruction fetch (using the updated program counter as address) is initiated. The CPU has to send this fetch request to the memory system and wait for the response before the instruction prefetch buffer receives a new instruction that can be dispatched. So in this case the
But you can also obtain |
Beta Was this translation helpful? Give feedback.
The
HPMCNT_EVENT_WAIT_DIS
event is triggered when the execution stage is ready to dispatch (and thus execute) a new instruction, but the instruction prefetch buffer is still empty (waiting for the instruction fetch).Yes and no. 😅
That is correct.
Let's take an unconditional branch as an example. When executed, the program co…