Skip to content

[SOL] Add v4 CPU type #147

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

Merged
merged 1 commit into from
Apr 18, 2025

Conversation

LucasSte
Copy link
Collaborator

This PR creates the v4 CPU type for the SBF target. It includes a abi-v2 target feature to be surfaced to Rust as a specific target feature for conditional compilation.

A follow-up PR will create the sbpfv4-solana-solana target triple.

@LucasSte LucasSte requested a review from Lichtso April 18, 2025 00:06
@LucasSte LucasSte marked this pull request as ready for review April 18, 2025 00:06
@LucasSte LucasSte merged commit 606bad0 into anza-xyz:solana-rustc/19.1-2024-12-03 Apr 18, 2025
18 checks passed
@LucasSte LucasSte deleted the v4-cpu branch April 18, 2025 14:16
@@ -439,6 +440,8 @@ static const ArchDefinitionEntry g_elf_arch_entries[] = {
0xFFFFFFFFu, 0xFFFFFFFFu}, // sbfv2
{ArchSpec::eCore_sbfv3, llvm::ELF::EM_SBF, ArchSpec::eSBFSubType_sbfv3,
0xFFFFFFFFu, 0xFFFFFFFFu}, // sbfv3
{ArchSpec::eCore_sbfv4, llvm::ELF::EM_SBF, ArchSpec::eSBFSubType_sbfv4,
0xFFFFFFFFu, 0xFFFFFFFFu}, // sbfv3

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess the comment should have been // sbfv4, shouldn't it?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should just remove these comments altogether.

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.

3 participants