summary refs log tree commit diff stats
path: root/results/classifier/zero-shot-user-mode/output/instruction/1828867
diff options
context:
space:
mode:
authorChristian Krinitsin <mail@krinitsin.com>2025-07-07 17:23:11 +0000
committerChristian Krinitsin <mail@krinitsin.com>2025-07-07 17:23:11 +0000
commitc50b0c4da17b6e83640e4ed2380fffb5f507c846 (patch)
treeb4f203fce1380e2ea3578a784bb8ee060fe42cbd /results/classifier/zero-shot-user-mode/output/instruction/1828867
parent61361f925d4914a6608a0076e64cc2399311ed5f (diff)
downloademulator-bug-study-c50b0c4da17b6e83640e4ed2380fffb5f507c846.tar.gz
emulator-bug-study-c50b0c4da17b6e83640e4ed2380fffb5f507c846.zip
add zero-shot results
Diffstat (limited to 'results/classifier/zero-shot-user-mode/output/instruction/1828867')
-rw-r--r--results/classifier/zero-shot-user-mode/output/instruction/182886714
1 files changed, 14 insertions, 0 deletions
diff --git a/results/classifier/zero-shot-user-mode/output/instruction/1828867 b/results/classifier/zero-shot-user-mode/output/instruction/1828867
new file mode 100644
index 00000000..4d25c0d7
--- /dev/null
+++ b/results/classifier/zero-shot-user-mode/output/instruction/1828867
@@ -0,0 +1,14 @@
+instruction: 0.915
+runtime: 0.048
+syscall: 0.037
+
+
+
+QEmu translation is incorrect when using REX in combination with LAHF/SAHF
+
+When translating code that is using LAHF and SAHF in combination with the REX prefix then qemu translates incorrectly.
+These two instructions only ever use the AH register. Contrary to other instructions where if you use REX + high bit offsets then it'll pull in rsp and a few other registers.
+On hardware the REX prefix doesn't effect behaviour of these instructions at all.
+QEMU incorrectly selects RSP as the register of choice here due to this combination of REX + AH register usage.
+
+I've attached a patch that is super terrible just so I can work around the issue locally and to sort of show off how it is to be "fixed"
\ No newline at end of file