target/i386: fix byte swap issue with XMM register access
authorAlex Bennée <alex.bennee@linaro.org>
Tue, 19 Apr 2022 09:10:19 +0000 (10:10 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Wed, 20 Apr 2022 15:04:20 +0000 (16:04 +0100)
commite618e1f9b4cbb3803bbe70fae30a0fa4960f384d
tree8f4d5b856d8b844e878c7beee9666152c0b76d14
parentf9caa8feea9d5acd1a6dc02b626f82a149b4b94e
target/i386: fix byte swap issue with XMM register access

During the conversion to the gdb_get_reg128 helpers the high and low
parts of the XMM register where inadvertently swapped. This causes
reads of the register to report the incorrect value to gdb.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/971
Fixes: b7b8756a9c (target/i386: use gdb_get_reg helpers)
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Cc: qemu-stable@nongnu.org
Message-Id: <20220419091020.3008144-25-alex.bennee@linaro.org>
target/i386/gdbstub.c