summary refs log tree commit diff stats
path: root/gitlab/issues/target_i386/host_missing/accel_TCG/1374.toml
diff options
context:
space:
mode:
Diffstat (limited to 'gitlab/issues/target_i386/host_missing/accel_TCG/1374.toml')
-rw-r--r--gitlab/issues/target_i386/host_missing/accel_TCG/1374.toml30
1 files changed, 30 insertions, 0 deletions
diff --git a/gitlab/issues/target_i386/host_missing/accel_TCG/1374.toml b/gitlab/issues/target_i386/host_missing/accel_TCG/1374.toml
new file mode 100644
index 000000000..e3ff9a193
--- /dev/null
+++ b/gitlab/issues/target_i386/host_missing/accel_TCG/1374.toml
@@ -0,0 +1,30 @@
+id = 1374
+title = "x86 BZHI semantic bug"
+state = "closed"
+created_at = "2022-12-16T07:33:54.303Z"
+closed_at = "2023-02-28T15:08:49.405Z"
+labels = ["Closed::Fixed", "accel: TCG", "target: i386"]
+url = "https://gitlab.com/qemu-project/qemu/-/issues/1374"
+host-os = "Windows 10 20H2"
+host-arch = "x86"
+qemu-version = "7.1.90 (v7.2.0-rc0)"
+guest-os = "None"
+guest-arch = "x86"
+description = """The result of instruction BZHI is different from the CPU. The value of destination register and SF of EFLAGS are different."""
+reproduce = """1. Compile this code
+```
+void main() {
+    asm("mov rax, 0xb1aa9da2fe33fe3");
+    asm("mov rbx, 0x80000000ffffffff");
+    asm("mov rcx, 0xf3fce8829b99a5c6");
+    asm("bzhi rax, rbx, rcx");
+}
+```
+2. Execute and compare the result with the CPU.
+    - CPU
+        - RAX = 0x0x80000000ffffffff
+        - SF = 1
+    - QEMU
+        - RAX = 0xffffffff
+        - SF = 0"""
+additional = """This bug is discovered by research conducted by KAIST SoftSec."""