Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

abhinav92003
Copy link
Contributor

@abhinav92003 abhinav92003 commented Apr 23, 2025

Allows raw traces entries that do not look like OFFLINE_TYPE_MEMREF or OFFLINE_TYPE_MEMREF_HIGH to follow prefetch instructions during raw2trace conversion.

Prefetch instructions may generate a memref with an address that has some of the top 3 bits set which overwrites the type field to contain a value that is not either OFFLINE_TYPE_MEMREF or OFFLINE_TYPE_MEMREF_HIGH. Here, we override raw2trace logic to force it to process the raw trace entry following a prefetch instruction as a memref.

raw2trace conversion of a real trace failed with the "Unknown trace type" error without this fix. Reproduces the same issue on the builtin_prefetch app, which is now fixed.

Issue: #7464, #7364

Allows raw traces entries that do not look like OFFLINE_TYPE_MEMREF or OFFLINE_TYPE_MEMREF_HIGH to follow prefetch instructions during raw2trace conversion.

Prefetch instructions may generate a memref with an address that has some of the top 3 bits set which overwrites the type field to contain a value that is not either OFFLINE_TYPE_MEMREF or OFFLINE_TYPE_MEMREF_HIGH. Here, we override raw2trace logic to force it to process the raw trace entry following a prefetch instruction as a memref.

raw2trace conversion of a real trace failed with the "Unknown trace type" error without this fix. Reproduces the same issue on the builtin_prefetch app, which is now fixed.

Issue: #7464
@abhinav92003 abhinav92003 marked this pull request as draft April 23, 2025 00:41
@abhinav92003 abhinav92003 marked this pull request as ready for review April 23, 2025 17:45
@abhinav92003 abhinav92003 marked this pull request as draft April 23, 2025 17:55
@abhinav92003 abhinav92003 changed the base branch from master to iX-raw2trace-refactor April 23, 2025 17:55
@abhinav92003 abhinav92003 changed the base branch from iX-raw2trace-refactor to master April 23, 2025 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant