diff options
| author | Philippe Mathieu-Daudé | 2020-04-30 21:01:15 +0200 |
|---|---|---|
| committer | Alex Bennée | 2020-05-06 10:29:26 +0200 |
| commit | 38c1c09839c90317314be48f8758e9001ee40b91 (patch) | |
| tree | 93d09b8680bc5e1b89530906cfa0ab210d0e261c /target/m68k | |
| parent | configure: favour gdb-multiarch if we have it (diff) | |
| download | qemu-38c1c09839c90317314be48f8758e9001ee40b91.tar.gz qemu-38c1c09839c90317314be48f8758e9001ee40b91.tar.xz qemu-38c1c09839c90317314be48f8758e9001ee40b91.zip | |
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>
Diffstat (limited to 'target/m68k')
| -rw-r--r-- | target/m68k/helper.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/target/m68k/helper.c b/target/m68k/helper.c index cad4083895..79b0b10ea9 100644 --- a/target/m68k/helper.c +++ b/target/m68k/helper.c @@ -72,7 +72,8 @@ static int cf_fpu_gdb_get_reg(CPUM68KState *env, GByteArray *mem_buf, int n) { if (n < 8) { float_status s; - return gdb_get_reg64(mem_buf, floatx80_to_float64(env->fregs[n].d, &s)); + return gdb_get_float64(mem_buf, + floatx80_to_float64(env->fregs[n].d, &s)); } switch (n) { case 8: /* fpcontrol */ |
