summary refs log tree commit diff stats
path: root/results/classifier/zero-shot-user-mode/instruction/1828867
diff options
context:
space:
mode:
authorChristian Krinitsin <mail@krinitsin.com>2025-07-08 13:28:15 +0200
committerChristian Krinitsin <mail@krinitsin.com>2025-07-08 13:28:28 +0200
commit5aa276efcbd67f4300ca1a7f809c6e00aadb03da (patch)
tree9b8f0e074014cda8d42f5a97a95bc25082d8b764 /results/classifier/zero-shot-user-mode/instruction/1828867
parent1a3c4faf4e0a25ed0b86e8739d5319a634cb9112 (diff)
downloadqemu-analysis-5aa276efcbd67f4300ca1a7f809c6e00aadb03da.tar.gz
qemu-analysis-5aa276efcbd67f4300ca1a7f809c6e00aadb03da.zip
restructure results
Diffstat (limited to 'results/classifier/zero-shot-user-mode/instruction/1828867')
-rw-r--r--results/classifier/zero-shot-user-mode/instruction/182886714
1 files changed, 14 insertions, 0 deletions
diff --git a/results/classifier/zero-shot-user-mode/instruction/1828867 b/results/classifier/zero-shot-user-mode/instruction/1828867
new file mode 100644
index 000000000..4d25c0d79
--- /dev/null
+++ b/results/classifier/zero-shot-user-mode/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