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
SuperH/sh4 architecture unsupported #166
Comments
PRs are welcome! |
Debian is having an issue, too. See Debian Bug 1025176. Unfortunately, the missing support is blocking users from installing GDB on SH-4. @jamadden, maybe you can take a look at the SH4 Software Manual and see if you can cobble something together for testing? I can test it for you (or tell you how to setup a test rig). |
I would be interested in porting greenlet to sh4 if someone is willing to assist me. I am Debian's sh4 (a variant of SuperH) maintainer as well as an upstream kernel maintainer for the SuperH architecture. |
Essentially all that should need done is implementing |
If I understand correctly, the task of |
On Nov 16, 2023, at 05:58, John Paul Adrian Glaubitz ***@***.***> wrote:
If I understand correctly, the task of slp_switch() is to save and restore a thread environment?
Yes, it does the actual work of dealing with the processor state, including stack pointer.
The greenlet code shares a common heritage with Stackless CPython (https://github.com/stackless-dev/stackless/); sometime after greenlet was created, the Stackless devs factored that code out into a separate library called stackman (https://github.com/stackless-dev/stackman). There may be additional examples and/or documentation in those repos that are helpful.
(Ultimately, it would be nice to have greenlet use stackman so that there's only one place (or at least, one fewer place) where code like this needs to be maintained.)
|
It builds fine in qemu-user, but for running the testsuite, I need to run it on real hardware. My SH7785LCR development board is currently busy rebuilding the Perl interpreter for Debian's time64_t transition, but I will test it right after that as soon as possible. |
See: #401 |
I'm seeing this error when building greenlet using buildroot's ci here.
If supporting this architecture is not possible I can flag greenlet as incompatible but it would be ideal to add support.
The text was updated successfully, but these errors were encountered: