Repository navigation
refactor(runtime)!: support explicitly invoked SIR process kernels - #2444
Conversation
|
This pull request is part of a Mergify stack:
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
54d947d to
7a7a029
Compare
Revision history
|
7a7a029 to
44f5ddd
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 44f5ddd93b
ℹ️ 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".
| /// Services owned by an explicitly invoked testbench kernel. | ||
| Testbench, | ||
| Plusargs, |
There was a problem hiding this comment.
Append Testbench to preserve serialized host-request variants
When loading a native image produced before this change, inserting Testbench before the existing variants shifts every Serde/Postcard variant index: an old Plusargs site now deserializes as Testbench, for example. NativeProgramImage persists these values in runtime_schema.host_request_sites, while image_file.rs still accepts the unchanged container version 52. The machine code retains the original request encoding, so simulation/process.rs cannot find the matching request site and returns InternalError. Append the new variant instead, preserving existing serialized indices, or explicitly version and reject incompatible images.
Useful? React with 👍 / 👎.
Add a Callable process kind for kernels invoked by an explicit caller. Keep these kernels out of autonomous initial-process scheduling and timed-simulation requirements. Generalize ProcessKernelBuilder over the source address type so the Veryl testbench adapter can use the same suspension and continuation lowering as SystemVerilog. Reserve a host-request family for testbench services. Existing initializer, regular and final procedures retain their scheduling behavior and serialized discriminants. Validation: shared design, frontend-core and runtime unit tests; SystemVerilog process regressions; formatting and Clippy. BREAKING CHANGE: ProcessKind and HostRequestKind gain variants; exhaustive matches in external adapters must handle explicitly invoked kernels and testbench requests. Change-Id: I32c778a1eda591d8bada9321a12c36ec4fa71cf5
44f5ddd to
a3c57be
Compare
✅ Merged into
|
| Condition | Required by | |
|---|---|---|
| ✅ | check-success = Conventional Commit title |
— |
| ✅ | check-success = Queue validation |
— |
| ✅ | any of: check-success = @github-actions/Lint & Format, check-neutral = @github-actions/Lint & Format, check-skipped = @github-actions/Lint & Format |
GitHub repository ruleset rule master |
| ✅ | any of: check-success = @github-actions/Rust Test & NAPI Build, check-neutral = @github-actions/Rust Test & NAPI Build, check-skipped = @github-actions/Rust Test & NAPI Build |
GitHub repository ruleset rule master |
| ✅ | any of: check-success = @github-actions/JS Test (Ubuntu), check-neutral = @github-actions/JS Test (Ubuntu), check-skipped = @github-actions/JS Test (Ubuntu) |
GitHub repository ruleset rule master |
| ✅ | any of: check-success = @github-actions/Conventional Commit title, check-neutral = @github-actions/Conventional Commit title, check-skipped = @github-actions/Conventional Commit title |
GitHub repository ruleset rule master |
| ✅ | any of: check-success = @github-actions/Queue validation, check-neutral = @github-actions/Queue validation, check-skipped = @github-actions/Queue validation |
GitHub repository ruleset rule master |
Times in UTC · dashboard · how the merge queue works
Add a Callable process kind for kernels invoked by an explicit caller. Keep these kernels out of autonomous initial-process scheduling and timed-simulation requirements. Generalize ProcessKernelBuilder over the source address type so the Veryl testbench adapter can use the same suspension and continuation lowering as SystemVerilog.
Reserve a host-request family for testbench services. Existing initializer, regular and final procedures retain their scheduling behavior and serialized discriminants.
Validation: shared design, frontend-core and runtime unit tests; SystemVerilog process regressions; formatting and Clippy.
BREAKING CHANGE: ProcessKind and HostRequestKind gain variants; exhaustive matches in external adapters must handle explicitly invoked kernels and testbench requests.