openpower-cores / a2i

Other
243 stars 40 forks source link

How to fetch later instructions if a branch instrution is met #45

Closed zhaoxiahust closed 2 years ago

zhaoxiahust commented 2 years ago

The thread fetches the instruction from IU0 but the branch prediction comes out at IU5 due to the slow access to BHT. If the thread meets a branch instruction, how does it fetch later instructions? Wait until the branch prediction result comes out or continue fetching continuous instructions and flush if the prediction is a jmp.

Any comments about this?

zhaoxiahust commented 2 years ago

Got it, continuously fetching and doing flush when a branch instruction occurs.