mirror_qemu/target/m68k
KONRAD Frederic a976ed3ffd target/m68k: fix gdb for m68xxx
Currently "cf-core.xml" is sent to GDB when using any m68k flavor.  Thing is
it uses the "org.gnu.gdb.coldfire.core" feature name and gdb 8.3 then expects
a coldfire FPU instead of the default m68881 FPU.

This is not OK because the m68881 floats registers are 96 bits wide so it
crashes GDB with the following error message:

(gdb) target remote localhost:7960
Remote debugging using localhost:7960
warning: Register "fp0" has an unsupported size (96 bits)
warning: Register "fp1" has an unsupported size (96 bits)
...
Remote 'g' packet reply is too long (expected 148 bytes, got 180 bytes):    \
  00000000000[...]0000

With this patch: qemu-system-m68k -M none -cpu m68020 -s -S

(gdb) tar rem :1234
Remote debugging using :1234
warning: No executable has been specified and target does not support
determining executable automatically.  Try using the "file" command.
0x00000000 in ?? ()
(gdb) p $fp0
$1 = nan(0xffffffffffffffff)

Signed-off-by: KONRAD Frederic <frederic.konrad@adacore.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <1588094279-17913-3-git-send-email-frederic.konrad@adacore.com>
Message-Id: <20200430190122.4592-10-alex.bennee@linaro.org>
2020-05-06 09:29:26 +01:00
..
Makefile.objs target/m68k: add fmod/frem 2018-03-04 17:27:06 +01:00
cpu-param.h tcg: Split out target/arch/cpu-param.h 2019-06-10 07:03:34 -07:00
cpu-qom.h cpu: Use DeviceClass reset instead of a special CPUClass reset 2020-03-17 19:48:10 -04:00
cpu.c target/m68k: fix gdb for m68xxx 2020-05-06 09:29:26 +01:00
cpu.h gdbstub: extend GByteArray to read register helpers 2020-03-17 17:38:38 +00:00
fpu_helper.c target/m68k/fpu_helper.c: rename the access arguments 2019-09-19 12:12:19 +02:00
gdbstub.c gdbstub: extend GByteArray to read register helpers 2020-03-17 17:38:38 +00:00
helper.c gdbstub: Introduce gdb_get_float64() to get 64-bit float registers 2020-05-06 09:29:26 +01:00
helper.h target/m68k: implement fcosh 2018-03-13 16:35:05 +01:00
m68k-semi.c Clean up inclusion of sysemu/sysemu.h 2019-08-16 13:31:53 +02:00
monitor.c target: Clean up how the dump_mmu() print 2019-04-18 22:18:59 +02:00
op_helper.c target/m68k: Use cpu_*_mmuidx_ra instead of MMU_MODE{0,1}_SUFFIX 2020-01-15 15:13:10 -10:00
qregs.def target-m68k: use floatx80 internally 2017-06-21 22:10:29 +02:00
softfloat.c target/m68k: replace LIT64 with UINT64_C macros 2019-08-19 12:07:13 +01:00
softfloat.h m68k comments break patch submission due to being incorrectly formatted 2019-06-26 17:14:39 +02:00
softfloat_fpsp_tables.h m68k comments break patch submission due to being incorrectly formatted 2019-06-26 17:14:39 +02:00
translate.c m68k: Fix regression causing Single-Step via GDB/RSP to not single step 2020-01-21 13:05:45 +01:00