Skip to content

A question on instruction fetch delay #979

Answered by stnolting
mahdi259 asked this question in Q&A
Discussion options

You must be logged in to vote

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).

Can we get real instruction fetch delay from a counter with this event?

Yes and no. 😅

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)

That is correct.

Let's take an unconditional branch as an example. When executed, the program co…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mahdi259
Comment options

Answer selected by mahdi259
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants