ScarletNX / ScarletNX documentation / Cortex-A57 / AArch64 divergences · ← previous · next →
System and memory-model limitations
These are source-reviewed boundaries, not certified by single-instruction
Unicorn comparisons:
- Exclusive monitors: the runtime stores address/size/loaded values and
uses CAS. Ordinary stores do not participate in a full coherent reservation
model. Intervening writes, ABA and reservation-granule invalidation across
PEs are not faithfully modeled. Passing uncontended success/failure tests
does not prove architectural exclusivity.
- Ordering/barriers: the current implementation relies on x86-64 TSO,
compiler barriers for some DMB/DSB forms, and stronger host atomics/fences for
others. No multi-thread litmus or device-memory ordering proof was performed;
this must not be generalized to other hosts.
- Memory/access faults: flat translated memory is not an A57 MMU. Access
permissions, memory types, translation, SP/exclusive alignment checks and
architectural fault delivery are not comprehensively modeled or tested.
LDTR/STTR cannot be certified for their privilege-sensitive access behavior.
- System instructions: SVC/BRK and scheduling hints use runtime/HLE policy;
cache/TLB maintenance and SYS operations are partial proxies or no-ops.
DC ZVA has a 64-byte zeroing helper, but full permissions/fault behavior is not
established. Cache maintenance/ISB does not prove self-modifying AOT code is
correctly invalidated and regenerated.
- System registers: only a small subset is modeled. Unknown MRS reads
return zero and unknown MSR writes are ignored rather than applying the
architectural access/exception rules. IDs, counters and topology are partly
synthesized; their values are not evidence of a complete A57 configuration.
- Machine execution: exception levels, security state, debug, interrupt
delivery, ERET/DRPS/HVC/SMC/DCPS/HLT/SYSL and AArch32 are not a complete
processor implementation. Some of these instructions legitimately trap at
EL0; an undefined callback is not a model of the whole exception mechanism.
← previous · next →