diff options
| author | Jan Trencansky <jan.trencansky@protonmail.com> | 2026-11-24 20:11:33 -0500 |
|---|---|---|
| committer | Jan Trencansky <jan.trencansky@protonmail.com> | 2026-11-24 20:11:33 -0500 |
| commit | 709acc2fb39785f7006a2a7ce2442a6843cf5c40 (patch) | |
| tree | e465ffd1627fc7e2350b1a089b23ba8ede676422 /runtime/src/thread_stacks.cpp | |
| parent | 8b14fc1d22f8a067197920847bea81ee47914e81 (diff) | |
mem_diff.py: the reference model addresses memory as the translator now does
#984 changed how a buffer's device address is formed: the low 48 bits of the effective VA are sign-extended before the heap base is added (Gen.host_addr, the 'Heap-relative buffer device addresses' row in docs/design.md), because a V# base is device_address - heap_base in 48 bits and is negative for an import below the heap. The memory differential fuzzer's reference machine still put a base with bit 47 set at the zero-extended address, so every case with such a base read zeros on the translated side: tests/test_mem_diff.py failed in nine families (on #984's head too).
The fuzzer has one function for where a VA is in memory, host_address, used by the reference machine's reads and writes and by the generator's seeding. The cases, the seeds and the interpreter are unchanged.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/thread_stacks.cpp')
0 files changed, 0 insertions, 0 deletions