gdbstub: Introduce gdb_get_float64() to get 64-bit float registers
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Thu, 30 Apr 2020 19:01:15 +0000 (20:01 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Wed, 6 May 2020 08:29:26 +0000 (09:29 +0100)
commit38c1c09839c90317314be48f8758e9001ee40b91
tree93d09b8680bc5e1b89530906cfa0ab210d0e261c
parentf2385398b2f02eec9ea78ea4aa88c5ee66cd1ded
gdbstub: Introduce gdb_get_float64() to get 64-bit float registers

When converted to use GByteArray in commits 462474d760c and
a010bdbe719, the call to stfq_p() was removed. This call
serialize a float.
Since we now use a GByteArray, we can not use stfq_p() directly.
Introduce the gdb_get_float64() helper to load a float64 register.

Fixes: 462474d760c ("target/m68k: use gdb_get_reg helpers")
Fixes: a010bdbe719 ("extend GByteArray to read register helpers")
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20200414163853.12164-3-philmd@redhat.com>
Message-Id: <20200430190122.4592-3-alex.bennee@linaro.org>
include/exec/gdbstub.h
target/m68k/helper.c
target/ppc/gdbstub.c
target/ppc/translate_init.inc.c