NationalSecurityAgency / ghidra

Ghidra is a software reverse engineering (SRE) framework
https://www.nsa.gov/ghidra
Apache License 2.0
49.09k stars 5.65k forks source link

Fix definition of PRIMASK #6599

Open danlehmann opened 1 month ago

danlehmann commented 1 month ago

PRIMASK is handled incorrectly in Sleigh. From the armv6m manual:

Sleigh currently has this backwards.

This patch swaps the meaning of 0 and 1, bringing the definition in line with the reference documentation.