[PATCH 1/1] target/i386: Generate an illegal opcode exception on cmp instructions with lock prefix

2024-02-15 Thread Ziqiao Kong
target/i386: As specified by Intel Manual Vol2 3-180, cmp instructions are not allowed to have lock prefix and a `UD` should be raised. Without this patch, s1->T0 will be uninitialized and used in the case OP_CMPL. Signed-off-by: Ziqiao Kong --- target/i386/tcg/translate.c | 11 ++- 1

Re: [PATCH 1/1] target/i386: Generate an illegal opcode exception on cmp instructions with lock prefix

2024-02-15 Thread Paolo Bonzini
On 2/15/24 10:50, Ziqiao Kong wrote: target/i386: As specified by Intel Manual Vol2 3-180, cmp instructions are not allowed to have lock prefix and a `UD` should be raised. Without this patch, s1->T0 will be uninitialized and used in the case OP_CMPL. Signed-off-by: Ziqiao Kong ---

[PATCH 1/1] target/i386: Generate an illegal opcode exception on cmp instructions with lock prefix

2024-02-15 Thread Ziqiao Kong
target/i386: As specified by Intel Manual Vol2 3-180, cmp instructions are not allowed to have lock prefix and a `UD` should be raised. Without this patch, s1->T0 will be uninitialized and used in the case OP_CMPL. Signed-off-by: Ziqiao Kong --- target/i386/tcg/translate.c | 11 ++- 1