Skip to content

ARM PAC FAQ fix: Read HCR_EL2 instead of clobbering with SCTLR_EL1#2259

Merged
wtdcode merged 1 commit intounicorn-engine:devfrom
droe:droe/faq-arm64-pac-fix
Jan 16, 2026
Merged

ARM PAC FAQ fix: Read HCR_EL2 instead of clobbering with SCTLR_EL1#2259
wtdcode merged 1 commit intounicorn-engine:devfrom
droe:droe/faq-arm64-pac-fix

Conversation

@droe
Copy link
Copy Markdown
Contributor

@droe droe commented Nov 11, 2025

The sample code for setting up PAC is missing the read register call for HCR_EL2. This leads to clobbering HCR_EL2 with whatever the bits in SCTLR_EL1 were.

Fix by adding the missing register read call.

The sample code for setting up PAC is missing the read register call for
`HCR_EL2`.  This leads to clobbering HCR_EL2 with whatever the bits in
`SCTLR_EL1` were.
@wtdcode wtdcode merged commit eb97134 into unicorn-engine:dev Jan 16, 2026
34 of 39 checks passed
@wtdcode
Copy link
Copy Markdown
Member

wtdcode commented Jan 16, 2026

Thanks!

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