feat: unify hosted ABI with reusable ASL runtime - #4
Conversation
|
Update after exact-head integration check:
The current PR188 reference profile still intentionally bounds the reference byte array. High-address/external physical-memory execution is isolated in PTO-SPEC#190; the model does not silently bypass that architectural profile. Full corpus/sidecar scaling remains issue #3. |
|
Additional follow-up commits on the stacked branch:
Validation after these commits:
A test against the clean PTO-SPEC#188 artifact also confirmed that the old profile config family is no longer required. The default reference profile intentionally retains its configured memory bound; external/high-address execution remains the separate #190/#3 scope. |
|
This is the migration of the standalone prototype currently published at https://github.com/jiale-wangOwO/asl-model. It is intentionally based on #2 instead of replacing #2: the public C ABI and runner remain stable, while the richer runtime is folded into the same package. The personal prototype should not be treated as a second implementation after this stacked PR is reviewed. |
7c68fa5 to
e556a87
Compare
e785044 to
6814c9e
Compare
c4c5f83 to
9a98f2a
Compare
6814c9e to
0395ce7
Compare
Summary
This PR is stacked on #2 at its current head
0fcb5c6. Itkeeps #2 as the single hosted entry and preserves its verified ELF sidecars,
versioned C ABI, lock/identity checks, manifest, result handling, and
ExecuteNextPTOInstructionrunner.It adds the reusable runtime layer that was missing from #2:
ProgramImage/segment contracts and checked loader integration;and atomic instruction transactions;
serialization and hashes;
control-flow policies;
comparison;
checked smoke ELF fixture.
These modules do not implement a second PTO decoder or instruction handler.
The ASLRef backend remains the only semantic implementation; ASL continues to
define instruction legality, state changes, faults, and fetch/step behavior.
The existing
pto_model_run_elf()ABI from #2 remains the consumer-facing Centry.
Dependencies
PTO-ISA/pto-spec#188; this
PR does not modify
pto-spec.not restore a separate PTO semantic implementation.
Validation
external-environment tests skipped
-Wall -Wextra -Werror: passedpython3 -m compileall: passedgit diff --check: passedThe branch was rebased onto #2 head
0fcb5c6; nopto-specfiles are changed.