OSDN Git Service

gdbstub: Introduce gdb_get_float32() to get 32-bit float registers
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Tue, 14 Apr 2020 20:06:27 +0000 (21:06 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Wed, 15 Apr 2020 10:38:23 +0000 (11:38 +0100)
commit377f8f08bebea7cd44617b0ac0a2baf307f5f055
treedb2279e9a4eacdb7978aa32eccbfc95df52c57ed
parent7b8c1527ae0a9ec96a9100a05c680b55eb3aa54f
gdbstub: Introduce gdb_get_float32() to get 32-bit float registers

Since we now use a GByteArray, we can not use stfl_p() directly.
Introduce the gdb_get_float32() helper to load a float32 register.

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>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20200414163853.12164-2-philmd@redhat.com>
Message-Id: <20200414200631.12799-14-alex.bennee@linaro.org>
include/exec/gdbstub.h
target/sh4/gdbstub.c