Re: [PATCH] x86/emul: Simplify segment override prefix decoding

2024-04-18 Thread Jan Beulich
On 11.04.2024 17:23, Andrew Cooper wrote: > x86_seg_* uses architectural encodings. Therefore, we can fold the prefix > handling cases together and derive the segment from the prefix byte itself. > > No functional change. > > Signed-off-by: Andrew Cooper Reviewed-by: Jan Beulich I notice we

[PATCH] x86/emul: Simplify segment override prefix decoding

2024-04-11 Thread Andrew Cooper
x86_seg_* uses architectural encodings. Therefore, we can fold the prefix handling cases together and derive the segment from the prefix byte itself. No functional change. Signed-off-by: Andrew Cooper --- CC: Jan Beulich CC: Roger Pau Monné This makes a marginal saving of 47 bytes,