Skip to content

Verify Cortex-M simulator control and observation guards. - #132

Merged
jon merged 1 commit into
mainfrom
work/audit-r44-verify-cortex-m-simulator-permissions-sticky-bit
Nov 2, 2026
Merged

jon merged 1 commit into
mainfrom
work/audit-r44-verify-cortex-m-simulator-permissions-sticky-bit

Conversation

@jon

@jon jon commented Nov 2, 2026

Copy link
Copy Markdown
Owner

The Cortex-M register model now has focused tests for disabling debug while halted, denied external halt, interrupt-mask changes while running or resuming, M33 restart read-clear status, selective DFSR clearing, invalid word addresses and warm-reset permission refresh. The tests exercise the existing model without changing its behavior.

Why

The old invalid-address rows also used invalid access widths, so they could pass even if a high address aliased a valid register. Several documented permission and observation rules likewise had no test that distinguished their removal.

The new cases use valid word buffers at invalid addresses, keep independent sticky bits set, and check snapshots before and after rejected requests. A rejected mask change must also leave a pending resume at its original completion tick. Warm-reset coverage retains the existing fixture contract.

Documentation

The constructor, register methods, event declarations and Cortex-M simulation guide already describe these rules. Their scope and behavior remain unchanged; these tests add no instruction execution or physical validation claim.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-02T01:18:25.874083Z eb75823 Manual request
🔒 Security Review ✅ Completed 2026-11-02T01:12:19.858876Z 1afd2b5 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@jon

jon commented Nov 2, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Delightful!

Reviewed commit: 1afd2b5f53

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Base automatically changed from work/audit-r43-schedule-and-preserve-pending-cortex-m-halt-requ to main November 2, 2026 01:15
The register model had no independent checks for several documented
permission, sticky-status and address rules. Invalid-address cases used
invalid widths, so they could pass even if high addresses aliased.

Exercise otherwise valid word accesses, selective reason clearing and
read-to-clear status. Check rejected control changes before effects and
verify that warm reset refreshes permission latched while halted. Keep
the existing model and reset-fixture behavior unchanged.
@jon

jon commented Nov 2, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@jon
jon force-pushed the work/audit-r44-verify-cortex-m-simulator-permissions-sticky-bit branch from 1afd2b5 to eb75823 Compare November 2, 2026 01:17
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 👍

Reviewed commit: eb75823e26

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@jon
jon merged commit 0248acc into main Nov 2, 2026
9 checks passed
@jon
jon deleted the work/audit-r44-verify-cortex-m-simulator-permissions-sticky-bit branch November 2, 2026 01:30
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.

1 participant