Re: [PATCH] target/i386: implement undocumented "smsw r32" behavior

2020-07-02 Thread Paolo Bonzini
On 02/07/20 11:37, Roman Bolshakov wrote: > On Fri, Jun 26, 2020 at 06:44:19AM -0400, Paolo Bonzini wrote: >> In 32-bit mode, the higher 16 bits of the destination >> register are undefined. In practice CR0[31:0] is stored, >> just like in 64-bit mode, so just remove the "if" that >> currently dif

Re: [PATCH] target/i386: implement undocumented "smsw r32" behavior

2020-07-02 Thread Roman Bolshakov
On Fri, Jun 26, 2020 at 06:44:19AM -0400, Paolo Bonzini wrote: > In 32-bit mode, the higher 16 bits of the destination > register are undefined. In practice CR0[31:0] is stored, > just like in 64-bit mode, so just remove the "if" that > currently differentiates the behavior. > > Signed-off-by: Pa

Re: [PATCH] target/i386: implement undocumented "smsw r32" behavior

2020-07-01 Thread Richard Henderson
On 6/26/20 3:44 AM, Paolo Bonzini wrote: > In 32-bit mode, the higher 16 bits of the destination > register are undefined. In practice CR0[31:0] is stored, > just like in 64-bit mode, so just remove the "if" that > currently differentiates the behavior. > > Signed-off-by: Paolo Bonzini > --- >

[PATCH] target/i386: implement undocumented "smsw r32" behavior

2020-06-26 Thread Paolo Bonzini
In 32-bit mode, the higher 16 bits of the destination register are undefined. In practice CR0[31:0] is stored, just like in 64-bit mode, so just remove the "if" that currently differentiates the behavior. Signed-off-by: Paolo Bonzini --- target/i386/translate.c | 13 +++-- 1 file change