-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Port Wrong Path Aware EIP #4
base: wrong-path
Are you sure you want to change the base?
Conversation
// TODO | ||
} | ||
#else | ||
uint32_t eip::prefetcher_cache_operate(uint64_t addr, uint64_t ip, uint64_t instr_id, uint8_t cache_hit, uint8_t prefetch_hit, uint32_t metadata_in) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The function signature is changed NEED to update without breaking other things.
metadata_in is updated to have wrong_path info
|
||
// IMPORTANT: This function needs to be called in the same order as prefetcher_cache_operate, | ||
// meaning that after calling prefetcher_squash, none of the squashed instructions should call prefetcher_cache_operate. | ||
// Otherwise, performance may be sub-optimal. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Get more clarity on where it has to be called.
With current understanding have called at following line in ooo_cpu.cc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
prefetcher_cache_operate is called in try_hit(..) of cache.cc, I believe the way impl_prefetcher_squash is called should be fine provided on a mispredicated branch we flush the pipeline
I don't have any specific reviews of the code, I think the addition of |
Port Wrong-Path-Aware Entangling Instruction Prefetcher
https://github.com/alberto-ros/EntanglingInstructionPrefetcher/blob/main/TC-24/ISCA_Entangling_4Ke_opt.cc