-
Notifications
You must be signed in to change notification settings - Fork 188
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
Added support to recognize hints instruction in the log #693
base: master
Are you sure you want to change the base?
Conversation
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.
These are not the canonical mnemonics. Destinations with x0 are often hints, but for uncompressed instructions they are written the same as the others, unless another extension claims them in which case they have aliases that are used in preference.
This is an interesting case. I am unaware of any tools that would recognize
these opcodes, and I'm unclear what the advantage of having the log
distinguish them.
At some point, these hints will have some (microarchitectural)
functionality, at which point there may be a use case, but until then: can
you articulate why this is needed?
…On Tue, Jan 21, 2025 at 7:19 AM Jessica Clarke ***@***.***> wrote:
***@***.**** requested changes on this pull request.
These are not the canonical mnemonics. Destinations with x0 are often
hints, but for uncompressed instructions they are written the same as the
others, unless another extension claims them in which case they have
aliases that are used in preference.
—
Reply to this email directly, view it on GitHub
<#693 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHPXVJSC4U7U6HY4Q5YR5VT2LZQORAVCNFSM6AAAAABVSR26Z6VHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDKNRUHE2TCMJRGQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
I assume this was intended just to make the log more informational? But yeah I agree with @jrtc27 - we should probably stick to assembly that actually works. |
I talked to someone about this. The intent is to simplify tools (riscv-isac
specifically) to look at the log file and be able to easily identify a hint
instruction so they can measure coverage of hint ops.
There are probably other alternatives.
I the CSC meeting today we added (I think) a requirement that there be a
standard logging format, and this would affect that decision.
…On Wed, Jan 22, 2025 at 5:07 AM Tim Hutt ***@***.***> wrote:
I assume this was intended just to make the log more informational? But
yeah I agree with @jrtc27 <https://github.com/jrtc27> - we should
probably stick to assembly that actually works.
—
Reply to this email directly, view it on GitHub
<#693 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHPXVJXGN5NFSGE4COM666L2L6JYZAVCNFSM6AAAAABVSR26Z6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMBXGIYDGMJZGI>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Sounds like your tool needs a (limited) instruction decoder. |
Yeah I think the proper way to solve this is with the planned callback API or machine readable log format. You can extract the instructions opcode and then use a simple decoder to see if is a hint. If it must be in Sail we could potentially add a second |
That is another option, I agree..
…On Wed, Jan 22, 2025 at 11:38 AM Jessica Clarke ***@***.***> wrote:
Sounds like your tool needs a (limited) instruction decoder.
—
Reply to this email directly, view it on GitHub
<#693 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHPXVJTA2BSE3JVQMEA5MZD2L7XS5AVCNFSM6AAAAABVSR26Z6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMBYGEYDSNZXHA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
SAIL was unable to recognize hint operations as hints in the log. Added the support so that hints should be recognizable as hints in the log file