<feed xmlns='http://www.w3.org/2005/Atom'>
<title>npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/runtime/src/cpu_emulation.h, branch docs/pso-cache-scope-note</title>
<subtitle>[no description]</subtitle>
<id>https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/atom?h=docs%2Fpso-cache-scope-note</id>
<link rel='self' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/atom?h=docs%2Fpso-cache-scope-note'/>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/'/>
<updated>2026-11-24T06:25:21+00:00</updated>
<entry>
<title>cpu_emulation: update CMP flags on partial CLZERO batches and post-prefix faults</title>
<updated>2026-11-24T06:25:21+00:00</updated>
<author>
<name>oscarlosu-lab</name>
<email>251827664+oscarlosu-lab@users.noreply.github.com</email>
</author>
<published>2026-11-24T06:25:21+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=3b8c1555d8d375762e907927417bbaca96accbbf'/>
<id>urn:sha1:3b8c1555d8d375762e907927417bbaca96accbbf</id>
<content type='text'>
</content>
</entry>
<entry>
<title>cpu_emulation: run a whole CLZERO zeroing loop in one emulated step</title>
<updated>2026-11-24T04:54:10+00:00</updated>
<author>
<name>oscarlosu-lab</name>
<email>251827664+oscarlosu-lab@users.noreply.github.com</email>
</author>
<published>2026-11-24T04:54:10+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=361e8455a20aa6606fb542d86e39b552da2e60e6'/>
<id>urn:sha1:361e8455a20aa6606fb542d86e39b552da2e60e6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>cpu_emulation: INSERTQ register form reads len from xmm2[69:64]; zero xmm1[127:64]; AMD prefix forms; no SEH</title>
<updated>2026-11-23T16:41:46+00:00</updated>
<author>
<name>Krashgamer</name>
<email>64923888+Krashgamer@users.noreply.github.com</email>
</author>
<published>2026-11-23T16:41:46+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=978d525d99413cce232efde07efbf392d1e782a5'/>
<id>urn:sha1:978d525d99413cce232efde07efbf392d1e782a5</id>
<content type='text'>
- INSERTQ xmm, xmm took the length and index from swapped fields. The APM (vol. 4) has the length in
  xmm2[69:64] and the index in xmm2[77:72]; a Ryzen 9800X3D and a Ryzen 5700X agree (TheHoracio,
  Mayzkl on #7111). The measured 0x0810 case is a unit check now.
- INSERTQ/EXTRQ zero xmm1[127:64], as the Zen 3 measured in the same review does in all four forms.
- Decode REX bytes among the legacy prefixes (a non-final REX is ignored) and accept F2/F3 on CLZERO,
  as Zen 3 runs them (#7055's reviews); F2/F3 stay #UD on MONITORX/MWAITX.
- Check the CLZERO line's page and the instruction bytes' readability with VirtualQuery instead of
  catching a fault in a local __try, which clang-cl without /EHa does not cover for inline stores
  (venetanji on #7111).

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>cpu_emulation: CLZERO on an unwritable line raises the CPU's write fault; accept 66 on 0F 01 FC/FA/FB</title>
<updated>2026-11-23T16:07:09+00:00</updated>
<author>
<name>Krashgamer</name>
<email>64923888+Krashgamer@users.noreply.github.com</email>
</author>
<published>2026-11-23T16:07:09+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=3fe388b39daccee1e8ff1b595be3889260552518'/>
<id>urn:sha1:3fe388b39daccee1e8ff1b595be3889260552518</id>
<content type='text'>
A line CLZERO cannot write now reaches the next handlers as the access violation (or guard-page
violation) the instruction raises, with the write flag and the line address, instead of the #UD.
The 66 prefix and segment overrides are accepted on CLZERO/MONITORX/MWAITX; F2/F3 (other
instructions there, F3 0F 01 FA is MCOMMIT) and LOCK stay #UD. Points raised by SirKingg on #7055.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>gta6rt: emulate the Zen 2 instructions a desktop CPU may lack (INSERTQ/EXTRQ, CLZERO, MONITORX/MWAITX, CLWB)</title>
<updated>2026-11-23T15:57:59+00:00</updated>
<author>
<name>Krashgamer</name>
<email>64923888+Krashgamer@users.noreply.github.com</email>
</author>
<published>2026-11-23T15:56:57+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=62b410e75640c12a672f73552c754ca7945bf265'/>
<id>urn:sha1:62b410e75640c12a672f73552c754ca7945bf265</id>
<content type='text'>
The executable uses SSE4a INSERTQ, CLZERO and MONITORX/MWAITX (AMD only) and CLWB (Intel since Ice Lake)
without asking CPUID (docs/cpu_features.md). A host without one raises #UD there. src/cpu_emulation.h adds
a vectored handler that recognises those encodings at the faulting RIP, does the same work on the CONTEXT
and steps past the instruction; gta6rt installs it before any image code runs, after the startup trace's
handler so it runs first. One [rt] line names what the host lacks, one more per instruction on first use.

cpu_emulation_test checks the decoder on hand-written encodings, the bit-field helpers and apply() on a
synthetic CONTEXT, then runs every form for real from an executable buffer: natively on a Zen host,
through the handler on an Intel one, with the same expected values.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
</content>
</entry>
</feed>
