disnative should support the RISC-V backend
Categories
(Core :: JavaScript Engine: JIT, enhancement, P5)
Tracking
()
Tracking | Status | |
---|---|---|
firefox125 | --- | fixed |
People
(Reporter: hovav, Assigned: hovav)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
User Agent: Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36
Steps to reproduce:
In the JS shell when using the RISC-V backend, warmed up a function f
and ran print(disnative(f))
Actual results:
The fallback codepath in js/src/jit/Disassemble.cpp fired, printing the message *** No disassembly available ***
.
Expected results:
The RISC-V backend disassembler (in js/src/jit/riscv64/disasm/) could have been used to disassemble the function and print out the disassembly.
The RISC-V backend's disassembler interface closely resembles the 32-bit ARM disassembler interface. I've attached an example patch that implements RISC-V disassembly and seems to work okay in my testing. (Caveat: I was working on an older FF release and haven't checked if Bug 1875363 also affects the RISC-V disassembler.)
Comment 1•1 year ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::JavaScript Engine: JIT' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 2•1 year ago
|
||
This seems worth just landing -- did you want to upload the patch with moz-phab
and take credit, or shall I take point on getting this in?
Assignee | ||
Comment 3•1 year ago
|
||
There's not much patch to take credit for, but I'm happy to do whatever is easiest for y'all. I've tested the patch on a recent checkout and I think I've got moz-phab configured -- should I submit? Should I list any reviewers?
Updated•1 year ago
|
Comment 4•1 year ago
|
||
Go forth and submit since you're setup. You can use r?#spidermonkey-reviewers!
, and we'll triage that to the right reviewer. Otherwise, you can go r?bvisness... who is who I currently would get to look at this :)
Updated•1 year ago
|
Assignee | ||
Comment 5•1 year ago
|
||
Updated•1 year ago
|
Comment 6•1 year ago
|
||
There is an r+ patch which didn't land and no activity in this bug for 2 weeks.
:hovav, could you have a look please?
If you still have some work to do, you can add an action "Plan Changes" in Phabricator.
For more information, please visit BugBot documentation.
Assignee | ||
Comment 7•1 year ago
|
||
Thanks for the heads up, BugBot! I think the patch over in Phabricator is ready to go, but I wasn't sure what the etiquette was around landing it, or if it would be better to wait for a specific time in the release cycle. I can go ahead whenever assuming that's the right thing to do and that I have the required permissions.
Comment 8•1 year ago
|
||
Oh; Ben, typically with contributor patches they can't land them themselves, so we press the button for them :)
Comment 9•1 year ago
|
||
Oh, sorry about that! I've queued it up for landing now.
Comment 10•1 year ago
|
||
Comment 11•1 year ago
|
||
bugherder |
Description
•