Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check misalignment of AMOs before address translation
This is optional according to the spec - you can check afterwards. However 1. it seems extremely unlikely that any real designs will do that for atomics, which (ignoring Zam which the model doesn't support yet), always have to be aligned, and 2. the LR and SC instructions already check before address translation, so this wasn't even consistent. Ideally in future this would be configurable. This also includes a minor refactor to reuse the existing alignment checking code.
- Loading branch information