Skip to content
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

[libunwind] Make libunwind_get_registers test pass on morello/aarch64. #729

Merged
merged 1 commit into from
Mar 21, 2024

Conversation

dstolfa
Copy link
Contributor

@dstolfa dstolfa commented Feb 24, 2024

This PR should make Morello libunwind tests not fail anymore. I'm not too sure on my choice of c10 and c11 (and their aarch64 equivalents), but they are not clobbered by unw_getcontext and I can't really imagine a scenario in this test where a compiler would do something with them. I also haven't tested this on aarch64 yet because I don't have anything to test it on, but it shouldn't break any other builds.

@dstolfa
Copy link
Contributor Author

dstolfa commented Feb 25, 2024

I've just tested this now on an aarch64 box and it seems to pass as well.

@arichardson
Copy link
Member

The current test is only checking the xregister subset, I wonder if we should write a full capability and use __builtin_cheri_equal_exact to compare them?

@arichardson
Copy link
Member

Probably makes sense to do the same for RISC-V?

@dstolfa
Copy link
Contributor Author

dstolfa commented Mar 4, 2024

The current test is only checking the xregister subset, I wonder if we should write a full capability and use __builtin_cheri_equal_exact to compare them?

That sounds like a good idea. I'll open another PR with both the Morello and RISC-V tests changed.

@dstolfa dstolfa merged commit c345f11 into dev Mar 21, 2024
7 checks passed
@dstolfa dstolfa deleted the morello-tests branch March 21, 2024 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants