Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework Memory Prims #60

Draft
wants to merge 1 commit into
base: partial_eval
Choose a base branch
from
Draft

Rework Memory Prims #60

wants to merge 1 commit into from

Conversation

ncough
Copy link
Collaborator

@ncough ncough commented Mar 19, 2024

We replace existing memory primitives, Mem.read and Mem.set, with new primitives Memory.read and Memory.set. These new primitives decouple the generated ASL from the architecture specification, allowing us to configure the memory model precision via tests/override.asl. This is motivated by #49, which we resolve by inlining the existing (overridden) primitives to capture the semantics of 128-bit operations.

The new primitives are identical to the existing, with the only difference being a change in the function name. Consequently, this will require a minor modification to any downstream projects.

- Add Memory.[set,read] to represent primitive memory operations
- Override Mem.[set,read] to include desired atomicity behaviour & call new memory prims
- Begin moving arch specific details into a centralised config
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