-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Factor out register saves #10325
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
Factor out register saves #10325
Conversation
This fixes RISC-V ESP32 because it ignored registers on that architecture.
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.
Looks great! I'll approve and merge now.
I'll test the RISC-V case, but I'm confident your changes will work.
Testing with an ESP32-C3, it's crashing in the interpreter again. |
Is this something to note for the MicroPython folks with an issue? |
They factor out the register collection already here: https://github.com/micropython/micropython/tree/master/shared/runtime in gchelper. They don't grab pointers out of floating point registers though. (I'm not sure how common it is for a compiler to do that though.) |
This fixes RISC-V ESP32 because it ignored registers on that architecture.