Skip to content

Conversation

@kisum9
Copy link
Contributor

@kisum9 kisum9 commented Nov 28, 2025

Complete the EC fields in the ESR_EL1 and ESR_EL2 registers according to the ESR_EL1 and ESR_EL2 doc

Signed-off-by: tanyan <kisumtan93@gmail.com>
Signed-off-by: tanyan <kisumtan93@gmail.com>
Copy link
Contributor

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 completes the Exception Class (EC) field definitions in the ESR_EL1 and ESR_EL2 registers according to the ARM Architecture Reference Manual. The changes expand the previously incomplete EC field enumerations from basic exception types to comprehensive lists covering all exception classes defined in the ARM architecture.

Key Changes

  • Added missing exception codes including new architecture features (FEAT_MOPS, FEAT_GCS, FEAT_TME, FEAT_SME, etc.)
  • Improved documentation for each EC value with clearer descriptions
  • Added feature annotations (e.g., FEAT_AA32, FEAT_BTI, FEAT_SVE) to indicate architecture extension requirements
  • Updated copyright year to 2025 and added new contributor

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 12 comments.

File Description
src/registers/esr_el2.rs Expanded EC field from 21 to 32 exception codes, added comprehensive documentation and feature annotations for all exception classes
src/registers/esr_el1.rs Expanded EC field from 21 to 28 exception codes, added documentation and feature annotations, though missing some entries that should be present

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

berkus and others added 4 commits November 29, 2025 16:46
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@berkus berkus enabled auto-merge November 29, 2025 15:01
@berkus berkus merged commit 8d753b3 into rust-embedded:main Nov 29, 2025
15 checks passed
@github-actions github-actions bot mentioned this pull request Nov 29, 2025
TrappedMCRorMRC2 = 0b00_0101,
/// Trapped LDC or STC access (FEAT_AA32)
TrappedLDCorSTC = 0b00_0110,
/// Access to SME, SVE, Advanced SIMD or floating-point functionality trapped

Choose a reason for hiding this comment

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

Also only available for FEAT_AA32.

Copy link
Member

@berkus berkus Dec 1, 2025

Choose a reason for hiding this comment

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

Will update, thanks for noticing!

@kisum9 kisum9 deleted the complete-EC-field branch December 2, 2025 09:18
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