Skip to content

Conversation

@randombit
Copy link
Owner

This seems to be needed for ARMv8.5 RNG support (#5228)

This seems to be needed for ARMv8.5 RNG support (#5228)
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR refactors the ISA (Instruction Set Architecture) specification for the processor RNG functionality from module-level declarations to function-level annotations. This change is preparatory work for adding ARMv8.5 RNG support in a future update.

Changes:

  • Introduced BOTAN_FN_ISA_RNG macro definitions for x86 (rdrand) and PowerPC (power9) architectures
  • Applied the new macro to the read_hwrng function in processor_rng.cpp
  • Removed the module-level ISA specification from info.txt in favor of function-level annotations

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/lib/utils/isa_extn.h Added BOTAN_FN_ISA_RNG macro definitions for x86 (rdrand) and PPC (power9) architectures
src/lib/rng/processor_rng/processor_rng.cpp Added include for isa_extn.h and applied BOTAN_FN_ISA_RNG macro to read_hwrng function
src/lib/rng/processor_rng/info.txt Removed the module-level ISA specification section, migrating to function-level annotations

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@randombit randombit merged commit b941fcb into master Jan 11, 2026
52 checks passed
@randombit randombit deleted the jack/cpu-rng-isa branch January 11, 2026 17:56
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