summary refs log tree commit diff stats
path: root/results/classifier/deepseek-r1:32b/output/instruction/1574346
diff options
context:
space:
mode:
authorChristian Krinitsin <mail@krinitsin.com>2025-07-06 16:43:19 +0000
committerChristian Krinitsin <mail@krinitsin.com>2025-07-06 16:43:19 +0000
commit238ec2b7cc1557d6f34c33cc482e4d0cd3e266dd (patch)
treecd8a1b75ba7b3543eb7fe6857f408e7be4d9fd0b /results/classifier/deepseek-r1:32b/output/instruction/1574346
parent96049c939b1916d80532630d63c14e04d5244f1d (diff)
downloademulator-bug-study-238ec2b7cc1557d6f34c33cc482e4d0cd3e266dd.tar.gz
emulator-bug-study-238ec2b7cc1557d6f34c33cc482e4d0cd3e266dd.zip
add results
Diffstat (limited to 'results/classifier/deepseek-r1:32b/output/instruction/1574346')
-rw-r--r--results/classifier/deepseek-r1:32b/output/instruction/157434615
1 files changed, 15 insertions, 0 deletions
diff --git a/results/classifier/deepseek-r1:32b/output/instruction/1574346 b/results/classifier/deepseek-r1:32b/output/instruction/1574346
new file mode 100644
index 00000000..59fce0e2
--- /dev/null
+++ b/results/classifier/deepseek-r1:32b/output/instruction/1574346
@@ -0,0 +1,15 @@
+
+
+
+TCG: mov to segment register is incorrectly emulated for AMD CPUs
+
+In TCG mode, the effect of:
+
+xorl %eax, %eax
+movl %eax, %gs
+
+is to mark the GS segment unusable and set its base to zero.  After doing this, reading MSR_GS_BASE will return zero and using a GS prefix in long mode will treat the GS base as zero.
+
+This is correct for Intel CPUs but is incorrect for AMD CPUs.  On an AMD CPU, writing 0 to %gs using mov, pop, or (I think) lgs will leave the base unchanged.
+
+To make it easier to use TCG to validate behavior on different CPUs, please consider changing the TCG behavior to match actual CPU behavior when emulating an AMD CPU.
\ No newline at end of file