Skip to content

Improvement: Optimize the rule count and rule_map status enumeration - #493

Merged
chetan-rathore merged 2 commits into
ARM-software:mainfrom
SapthagiriP:main
Aug 6, 2026
Merged

Improvement: Optimize the rule count and rule_map status enumeration#493
chetan-rathore merged 2 commits into
ARM-software:mainfrom
SapthagiriP:main

Conversation

@SapthagiriP

Copy link
Copy Markdown
Contributor
  • Optimize rule count loops to static sizes
  • move rule_map status DWORD operation to QWORD

  - Add exported length constants for BSA/SBSA/PCBSA/VBSA/PFDI
    rule tables
  - Update rule orchestrator to use the precomputed lengths
    instead of sentinel scans for merges and filtering

Signed-off-by: sapthagiri padmanabhan <sapthagiri.padmanabhan@arm.com>
Change-Id: I25412b0791fcd0d73a3869bd07bd7a78ce86c485
	- Reset the rule status map using 64-bit stores
so that two 32-bit test status entries are initialized per write.
This reduces the number of store operations during reset while preserving
correctness for odd-sized maps by handling the final entry separately.

Signed-off-by: sapthagiri padmanabhan <sapthagiri.padmanabhan@arm.com>
Change-Id: Ia08d5e7d81c4f84570805318bdbc196d44d1cb54
@chetan-rathore
chetan-rathore merged commit 911166c into ARM-software:main Aug 6, 2026
29 checks passed
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