-
Notifications
You must be signed in to change notification settings - Fork 59
[AIX] Port to 64-bit AIX #75
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
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.
Please also adjust the support table in the README.
psm/src/arch/powerpc64_aix.s
Outdated
.vbyte 8, .rust_psm_stack_direction | ||
.vbyte 8, TOC[TC0] | ||
.vbyte 8, 0 | ||
.csect .text[PR],2 |
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.
This appears to be using tabs for whitespace. Is it actually required by the assembler? If not, please replace with spaces to keep this consistent with the rest of the project.
(also applies across this file)
Testing the PR and filling the README. |
@nagisa For the traceback table part, can add @xingxue-ibm who implemented the libunwind of LLVM on AIX, as reviewer. |
@nagisa Is it sufficient to set |
I think it is fine as long as it is confirmed these are largely working. Given that unwinding appears to work okay (this is tested by unit tests), I’m happy to not block this on additional reviews.
Unfortunately no, we don’t have unit tests for that currently. The kind of testing I did for this was stepping through each instruction of the
repeating until the exit of the function. |
Here's my gdb script and result b rust_psm_on_stack
r
while 1
ni
bt
end Run with
|
Yeah, seems fine to mark that as supported in that case. In an effort to save some time for yourself and myself, I’ll merge this now and I’ll adjust the table as a follow-up. Thanks for contributing! |
We are porting Rust to AIX, see rust-lang/compiler-team#553. This PR adds corresponding assembly in psm for AIX.