]> git.proxmox.com Git - mirror_qemu.git/commit
target/i386: Remove unused XMMReg, YMMReg types and CPUState fields
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 12 Apr 2022 11:00:47 +0000 (12:00 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 13 Apr 2022 17:00:31 +0000 (19:00 +0200)
commitc9e28ae7972a10fdf09b7ebd8046840d1101b8ce
tree9fda1547f9b40a14a548473207226066734539fd
parentd22697dde0944e5137a8315f4e1a88979fb0ada7
target/i386: Remove unused XMMReg, YMMReg types and CPUState fields

In commit b7711471f5 in 2014 we refactored the handling of the x86
vector registers so that instead of separate structs XMMReg, YMMReg
and ZMMReg for representing the 16-byte, 32-byte and 64-byte width
vector registers and multiple fields in the CPU state, we have a
single type (XMMReg, later renamed to ZMMReg) and a single struct
field (xmm_regs).  However, in 2017 in commit c97d6d2cdf97ed some of
the old struct types and CPU state fields got added back, when we
merged in the hvf support (which had developed in a separate fork
that had presumably not had the refactoring of b7711471f5), as part
of code handling xsave.  Commit f585195ec07 then almost immediately
dropped that xsave code again in favour of sharing the xsave handling
with KVM, but forgot to remove the now unused CPU state fields and
struct types.

Delete the unused types and CPUState fields.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <20220412110047.1497190-1-peter.maydell@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/cpu.h