target/i386/hvf: use x86_segment in x86_decode.c
authorWei Liu <liuwe@linux.microsoft.com>
Fri, 21 Feb 2025 08:36:11 +0000 (00:36 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 25 Feb 2025 15:18:12 +0000 (16:18 +0100)
commitd54d3346b86d7c08b7fb2dac2d9a889854c7d3ba
treef3158affae4c2ec715a110496cc904a952754a7c
parentbc4fa8c3c9b5e2ad945617b667362b71b13495ad
target/i386/hvf: use x86_segment in x86_decode.c

Make the code to rely on the segment definition for checking cs.db.
This allows removing HVF specific VMX related definition from the
decoder.

Introduce a function for retrieving the CS descriptor.

No functional change intended.

Signed-off-by: Wei Liu <liuwe@linux.microsoft.com>
Link: https://lore.kernel.org/r/1740126987-8483-4-git-send-email-liuwe@linux.microsoft.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/hvf/x86_decode.c