Re: [Qemu-devel] [PATCH] i386: hvf: Fix register refs if REX is present

2018-10-18 Thread Paolo Bonzini
On 18/10/2018 15:44, Roman Bolshakov wrote: > According to Intel(R)64 and IA-32 Architectures Software Developer's > Manual, the following one-byte registers should be fetched when REX > prefix is present (sorted by reg encoding index): > AL, CL, DL, BL, SPL, BPL, SIL, DIL, R8L - R15L > > The firs

[Qemu-devel] [PATCH] i386: hvf: Fix register refs if REX is present

2018-10-18 Thread Roman Bolshakov
According to Intel(R)64 and IA-32 Architectures Software Developer's Manual, the following one-byte registers should be fetched when REX prefix is present (sorted by reg encoding index): AL, CL, DL, BL, SPL, BPL, SIL, DIL, R8L - R15L The first 8 are fetched if REX.R is zero, the last 8 if non-zero