From patchwork Tue Sep 5 18:21:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulrich Weigand X-Patchwork-Id: 22645 Received: (qmail 60354 invoked by alias); 5 Sep 2017 18:22:00 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 60254 invoked by uid 89); 5 Sep 2017 18:22:00 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-11.8 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_2, GIT_PATCH_3, KAM_ASCII_DIVIDERS, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mx0a-001b2d01.pphosted.com Received: from mx0a-001b2d01.pphosted.com (HELO mx0a-001b2d01.pphosted.com) (148.163.156.1) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 05 Sep 2017 18:21:53 +0000 Received: from pps.filterd (m0098393.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id v85IJ59k060749 for ; Tue, 5 Sep 2017 14:21:51 -0400 Received: from e06smtp15.uk.ibm.com (e06smtp15.uk.ibm.com [195.75.94.111]) by mx0a-001b2d01.pphosted.com with ESMTP id 2csyqvv43x-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Tue, 05 Sep 2017 14:21:50 -0400 Received: from localhost by e06smtp15.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 5 Sep 2017 19:21:47 +0100 Received: from b06cxnps3074.portsmouth.uk.ibm.com (9.149.109.194) by e06smtp15.uk.ibm.com (192.168.101.145) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 5 Sep 2017 19:21:46 +0100 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id v85ILkQc20840576 for ; Tue, 5 Sep 2017 18:21:46 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6CAA14C044 for ; Tue, 5 Sep 2017 19:18:29 +0100 (BST) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4E1344C040 for ; Tue, 5 Sep 2017 19:18:29 +0100 (BST) Received: from oc3748833570.ibm.com (unknown [9.164.150.234]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTP for ; Tue, 5 Sep 2017 19:18:29 +0100 (BST) Received: by oc3748833570.ibm.com (Postfix, from userid 1000) id 791F0D8086F; Tue, 5 Sep 2017 20:21:45 +0200 (CEST) Subject: [RFC][15/19] Target FP: Remove convert_typed_floating from tdep files To: gdb-patches@sourceware.org Date: Tue, 5 Sep 2017 20:21:45 +0200 (CEST) From: "Ulrich Weigand" MIME-Version: 1.0 X-TM-AS-GCONF: 00 x-cbid: 17090518-0020-0000-0000-000003B3CDAB X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17090518-0021-0000-0000-00004244383A Message-Id: <20170905182145.791F0D8086F@oc3748833570.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2017-09-05_07:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=1 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1707230000 definitions=main-1709050267 [RFC][15/19] Target FP: Remove convert_typed_floating from tdep files This patch mechanically replaces convert_typed_floating with the equivalent target_float_convert throughout tdep files, to prepare for the removal of doublest.{c,h}. No functional change intended. Bye, Ulrich ChangeLog: * i386-tdep.c: Include "target-float.h". Do not include "doublest.h". (i386_extract_return_value): Use target_float_convert. (i386_store_return_value): Likewise. * i387-tdep.c: Include "target-float.h". (i387_register_to_value): Use target_float_convert. (i387_value_to_register): Likewise. * ia64-tdep.c: Include "target-float.h". Do not include "doublest.h". (ia64_register_to_value): Use target_float_convert. (ia64_value_to_register): Likewise. (ia64_extract_return_value): Likewise. (ia64_store_return_value): Likewise. (ia64_push_dummy_call): Likewise. * m68k-tdep.c: Include "target-float.h". (m68k_register_to_value): Use target_float_convert. (m68k_value_to_register): Likewise. (m68k_svr4_extract_return_value): Likewise. (m68k_svr4_store_return_value): Likewise. * ppc-sysv-tdep.c: Include "target-float.h". (ppc_sysv_abi_push_dummy_call): Use target_float_convert. (do_ppc_sysv_return_value): Likewise. (ppc64_sysv_abi_push_freg): Likewise. (ppc64_sysv_abi_return_value_base): Likewise. * rs6000-aix-tdep.c: Include "target-float.h". (rs6000_push_dummy_call): Use target_float_convert. (rs6000_return_value): Likewise. * rs6000-lynx178-tdep.c: Include "target-float.h". (rs6000_lynx178_push_dummy_call): Use target_float_convert. (rs6000_lynx178_return_value): Likewise. * rs6000-tdep.c: Include "target-float.h". Do not include "doublest.h". (rs6000_register_to_value): Use target_float_convert. (rs6000_value_to_register): Likewise. * arm-tdep.c: Include "target-float.h". Do not include "doublest.h". (arm_extract_return_value): Use target_float_convert. (arm_store_return_value): Likewise. * sh-tdep.c: Include "target-float.h". Do not include "doublest.h". (sh_register_convert_to_virtual): Use target_float_convert. (sh_register_convert_to_raw): Likewise. * sh64-tdep.c: Include "target-float.h". (sh64_extract_return_value): Use target_float_convert. (sh64_register_convert_to_virtual): Likewise. (sh64_register_convert_to_raw): Likewise. Fix argument types. Index: binutils-gdb/gdb/i386-tdep.c =================================================================== --- binutils-gdb.orig/gdb/i386-tdep.c +++ binutils-gdb/gdb/i386-tdep.c @@ -23,7 +23,6 @@ #include "command.h" #include "dummy-frame.h" #include "dwarf2-frame.h" -#include "doublest.h" #include "frame.h" #include "frame-base.h" #include "frame-unwind.h" @@ -40,6 +39,7 @@ #include "symfile.h" #include "symtab.h" #include "target.h" +#include "target-float.h" #include "value.h" #include "dis-asm.h" #include "disasm.h" @@ -2802,7 +2802,7 @@ i386_extract_return_value (struct gdbarc exactly how it would happen on the target itself, but it is the best we can do. */ regcache_raw_read (regcache, I386_ST0_REGNUM, buf); - convert_typed_floating (buf, i387_ext_type (gdbarch), valbuf, type); + target_float_convert (buf, i387_ext_type (gdbarch), valbuf, type); } else { @@ -2857,7 +2857,7 @@ i386_store_return_value (struct gdbarch floating-point format used by the FPU. This is probably not exactly how it would happen on the target itself, but it is the best we can do. */ - convert_typed_floating (valbuf, type, buf, i387_ext_type (gdbarch)); + target_float_convert (valbuf, type, buf, i387_ext_type (gdbarch)); regcache_raw_write (regcache, I386_ST0_REGNUM, buf); /* Set the top of the floating-point register stack to 7. The Index: binutils-gdb/gdb/i387-tdep.c =================================================================== --- binutils-gdb.orig/gdb/i387-tdep.c +++ binutils-gdb/gdb/i387-tdep.c @@ -23,6 +23,7 @@ #include "inferior.h" #include "language.h" #include "regcache.h" +#include "target-float.h" #include "value.h" #include "i386-tdep.h" @@ -357,7 +358,7 @@ i387_register_to_value (struct frame_inf from, optimizedp, unavailablep)) return 0; - convert_typed_floating (from, i387_ext_type (gdbarch), to, type); + target_float_convert (from, i387_ext_type (gdbarch), to, type); *optimizedp = *unavailablep = 0; return 1; } @@ -383,7 +384,7 @@ i387_value_to_register (struct frame_inf } /* Convert from TYPE. */ - convert_typed_floating (from, type, to, i387_ext_type (gdbarch)); + target_float_convert (from, type, to, i387_ext_type (gdbarch)); put_frame_register (frame, regnum, to); } Index: binutils-gdb/gdb/ia64-tdep.c =================================================================== --- binutils-gdb.orig/gdb/ia64-tdep.c +++ binutils-gdb/gdb/ia64-tdep.c @@ -28,7 +28,7 @@ #include "frame.h" #include "frame-base.h" #include "frame-unwind.h" -#include "doublest.h" +#include "target-float.h" #include "value.h" #include "objfiles.h" #include "elf/common.h" /* for DT_PLTGOT value */ @@ -1239,7 +1239,7 @@ ia64_register_to_value (struct frame_inf in, optimizedp, unavailablep)) return 0; - convert_typed_floating (in, ia64_ext_type (gdbarch), out, valtype); + target_float_convert (in, ia64_ext_type (gdbarch), out, valtype); *optimizedp = *unavailablep = 0; return 1; } @@ -1250,7 +1250,7 @@ ia64_value_to_register (struct frame_inf { struct gdbarch *gdbarch = get_frame_arch (frame); gdb_byte out[IA64_FP_REGISTER_SIZE]; - convert_typed_floating (in, valtype, out, ia64_ext_type (gdbarch)); + target_float_convert (in, valtype, out, ia64_ext_type (gdbarch)); put_frame_register (frame, regnum, out); } @@ -3220,8 +3220,8 @@ ia64_extract_return_value (struct type * while (n-- > 0) { regcache_cooked_read (regcache, regnum, from); - convert_typed_floating (from, ia64_ext_type (gdbarch), - (char *)valbuf + offset, float_elt_type); + target_float_convert (from, ia64_ext_type (gdbarch), + valbuf + offset, float_elt_type); offset += TYPE_LENGTH (float_elt_type); regnum++; } @@ -3284,8 +3284,8 @@ ia64_store_return_value (struct type *ty while (n-- > 0) { - convert_typed_floating ((char *)valbuf + offset, float_elt_type, - to, ia64_ext_type (gdbarch)); + target_float_convert (valbuf + offset, float_elt_type, + to, ia64_ext_type (gdbarch)); regcache_cooked_write (regcache, regnum, to); offset += TYPE_LENGTH (float_elt_type); regnum++; @@ -3840,9 +3840,9 @@ ia64_push_dummy_call (struct gdbarch *gd while (len > 0 && floatreg < IA64_FR16_REGNUM) { gdb_byte to[IA64_FP_REGISTER_SIZE]; - convert_typed_floating (value_contents (arg) + argoffset, - float_elt_type, to, - ia64_ext_type (gdbarch)); + target_float_convert (value_contents (arg) + argoffset, + float_elt_type, to, + ia64_ext_type (gdbarch)); regcache_cooked_write (regcache, floatreg, to); floatreg++; argoffset += TYPE_LENGTH (float_elt_type); Index: binutils-gdb/gdb/m68k-tdep.c =================================================================== --- binutils-gdb.orig/gdb/m68k-tdep.c +++ binutils-gdb/gdb/m68k-tdep.c @@ -33,6 +33,7 @@ #include "dis-asm.h" #include "target-descriptions.h" #include "floatformat.h" +#include "target-float.h" #include "m68k-tdep.h" @@ -214,7 +215,7 @@ m68k_register_to_value (struct frame_inf from, optimizedp, unavailablep)) return 0; - convert_typed_floating (from, fpreg_type, to, type); + target_float_convert (from, fpreg_type, to, type); *optimizedp = *unavailablep = 0; return 1; } @@ -239,7 +240,7 @@ m68k_value_to_register (struct frame_inf } /* Convert from TYPE. */ - convert_typed_floating (from, type, to, fpreg_type); + target_float_convert (from, type, to, fpreg_type); put_frame_register (frame, regnum, to); } @@ -311,7 +312,7 @@ m68k_svr4_extract_return_value (struct t { struct type *fpreg_type = register_type (gdbarch, M68K_FP0_REGNUM); regcache_raw_read (regcache, M68K_FP0_REGNUM, buf); - convert_typed_floating (buf, fpreg_type, valbuf, type); + target_float_convert (buf, fpreg_type, valbuf, type); } else if (TYPE_CODE (type) == TYPE_CODE_PTR && TYPE_LENGTH (type) == 4) regcache_raw_read (regcache, M68K_A0_REGNUM, valbuf); @@ -351,7 +352,7 @@ m68k_svr4_store_return_value (struct typ { struct type *fpreg_type = register_type (gdbarch, M68K_FP0_REGNUM); gdb_byte buf[M68K_MAX_REGISTER_SIZE]; - convert_typed_floating (valbuf, type, buf, fpreg_type); + target_float_convert (valbuf, type, buf, fpreg_type); regcache_raw_write (regcache, M68K_FP0_REGNUM, buf); } else if (TYPE_CODE (type) == TYPE_CODE_PTR && TYPE_LENGTH (type) == 4) Index: binutils-gdb/gdb/ppc-sysv-tdep.c =================================================================== --- binutils-gdb.orig/gdb/ppc-sysv-tdep.c +++ binutils-gdb/gdb/ppc-sysv-tdep.c @@ -28,6 +28,7 @@ #include "objfiles.h" #include "infcall.h" #include "dwarf2.h" +#include "target-float.h" #include @@ -137,7 +138,7 @@ ppc_sysv_abi_push_dummy_call (struct gdb gdb_byte regval[PPC_MAX_REGISTER_SIZE]; struct type *regtype = register_type (gdbarch, tdep->ppc_fp0_regnum + freg); - convert_typed_floating (val, type, regval, regtype); + target_float_convert (val, type, regval, regtype); regcache_cooked_write (regcache, tdep->ppc_fp0_regnum + freg, regval); @@ -367,8 +368,8 @@ ppc_sysv_abi_push_dummy_call (struct gdb gdb_byte regval[PPC_MAX_REGISTER_SIZE]; struct type *regtype = register_type (gdbarch, regnum); - convert_typed_floating (elval, eltype, - regval, regtype); + target_float_convert (elval, eltype, + regval, regtype); regcache_cooked_write (regcache, regnum, regval); } freg++; @@ -710,7 +711,7 @@ do_ppc_sysv_return_value (struct gdbarch struct type *regtype = register_type (gdbarch, tdep->ppc_fp0_regnum + 1); regcache_cooked_read (regcache, tdep->ppc_fp0_regnum + 1, regval); - convert_typed_floating (regval, regtype, readbuf, type); + target_float_convert (regval, regtype, readbuf, type); } if (writebuf) { @@ -718,7 +719,7 @@ do_ppc_sysv_return_value (struct gdbarch the register's "double" type. */ gdb_byte regval[PPC_MAX_REGISTER_SIZE]; struct type *regtype = register_type (gdbarch, tdep->ppc_fp0_regnum); - convert_typed_floating (writebuf, type, regval, regtype); + target_float_convert (writebuf, type, regval, regtype); regcache_cooked_write (regcache, tdep->ppc_fp0_regnum + 1, regval); } return RETURN_VALUE_REGISTER_CONVENTION; @@ -852,15 +853,15 @@ do_ppc_sysv_return_value (struct gdbarch if (writebuf != NULL) { - convert_typed_floating (writebuf + offset, eltype, - regval, regtype); + target_float_convert (writebuf + offset, eltype, + regval, regtype); regcache_cooked_write (regcache, regnum, regval); } if (readbuf != NULL) { regcache_cooked_read (regcache, regnum, regval); - convert_typed_floating (regval, regtype, - readbuf + offset, eltype); + target_float_convert (regval, regtype, + readbuf + offset, eltype); } } else @@ -1371,7 +1372,7 @@ ppc64_sysv_abi_push_freg (struct gdbarch struct type *regtype = register_type (gdbarch, regnum); gdb_byte regval[PPC_MAX_REGISTER_SIZE]; - convert_typed_floating (val, type, regval, regtype); + target_float_convert (val, type, regval, regtype); regcache_cooked_write (argpos->regcache, regnum, regval); } @@ -1818,13 +1819,13 @@ ppc64_sysv_abi_return_value_base (struct if (writebuf != NULL) { - convert_typed_floating (writebuf, valtype, regval, regtype); + target_float_convert (writebuf, valtype, regval, regtype); regcache_cooked_write (regcache, regnum, regval); } if (readbuf != NULL) { regcache_cooked_read (regcache, regnum, regval); - convert_typed_floating (regval, regtype, readbuf, valtype); + target_float_convert (regval, regtype, readbuf, valtype); } return 1; } Index: binutils-gdb/gdb/rs6000-aix-tdep.c =================================================================== --- binutils-gdb.orig/gdb/rs6000-aix-tdep.c +++ binutils-gdb/gdb/rs6000-aix-tdep.c @@ -36,6 +36,7 @@ #include "xcoffread.h" #include "solib.h" #include "solib-aix.h" +#include "target-float.h" #include "xml-utils.h" /* If the kernel has to deliver a signal, it pushes a sigcontext @@ -258,8 +259,7 @@ rs6000_push_dummy_call (struct gdbarch * gdb_assert (len <= 8); - convert_typed_floating (value_contents (arg), type, - reg_val, reg_type); + target_float_convert (value_contents (arg), type, reg_val, reg_type); regcache_cooked_write (regcache, fp_regnum, reg_val); ++f_argno; } @@ -463,11 +463,11 @@ rs6000_return_value (struct gdbarch *gdb if (readbuf) { regcache_cooked_read (regcache, tdep->ppc_fp0_regnum + 1, regval); - convert_typed_floating (regval, regtype, readbuf, valtype); + target_float_convert (regval, regtype, readbuf, valtype); } if (writebuf) { - convert_typed_floating (writebuf, valtype, regval, regtype); + target_float_convert (writebuf, valtype, regval, regtype); regcache_cooked_write (regcache, tdep->ppc_fp0_regnum + 1, regval); } Index: binutils-gdb/gdb/rs6000-lynx178-tdep.c =================================================================== --- binutils-gdb.orig/gdb/rs6000-lynx178-tdep.c +++ binutils-gdb/gdb/rs6000-lynx178-tdep.c @@ -22,6 +22,7 @@ #include "gdbtypes.h" #include "infcall.h" #include "ppc-tdep.h" +#include "target-float.h" #include "value.h" #include "xcoffread.h" @@ -110,8 +111,7 @@ rs6000_lynx178_push_dummy_call (struct g gdb_assert (len <= 8); - convert_typed_floating (value_contents (arg), type, - reg_val, reg_type); + target_float_convert (value_contents (arg), type, reg_val, reg_type); regcache_cooked_write (regcache, fp_regnum, reg_val); ++f_argno; } @@ -314,11 +314,11 @@ rs6000_lynx178_return_value (struct gdba if (readbuf) { regcache_cooked_read (regcache, tdep->ppc_fp0_regnum + 1, regval); - convert_typed_floating (regval, regtype, readbuf, valtype); + target_float_convert (regval, regtype, readbuf, valtype); } if (writebuf) { - convert_typed_floating (writebuf, valtype, regval, regtype); + target_float_convert (writebuf, valtype, regval, regtype); regcache_cooked_write (regcache, tdep->ppc_fp0_regnum + 1, regval); } Index: binutils-gdb/gdb/rs6000-tdep.c =================================================================== --- binutils-gdb.orig/gdb/rs6000-tdep.c +++ binutils-gdb/gdb/rs6000-tdep.c @@ -29,7 +29,7 @@ #include "arch-utils.h" #include "regcache.h" #include "regset.h" -#include "doublest.h" +#include "target-float.h" #include "value.h" #include "parser-defs.h" #include "osabi.h" @@ -2620,8 +2620,8 @@ rs6000_register_to_value (struct frame_i from, optimizedp, unavailablep)) return 0; - convert_typed_floating (from, builtin_type (gdbarch)->builtin_double, - to, type); + target_float_convert (from, builtin_type (gdbarch)->builtin_double, + to, type); *optimizedp = *unavailablep = 0; return 1; } @@ -2637,8 +2637,8 @@ rs6000_value_to_register (struct frame_i gdb_assert (TYPE_CODE (type) == TYPE_CODE_FLT); - convert_typed_floating (from, type, - to, builtin_type (gdbarch)->builtin_double); + target_float_convert (from, type, + to, builtin_type (gdbarch)->builtin_double); put_frame_register (frame, regnum, to); } Index: binutils-gdb/gdb/arm-tdep.c =================================================================== --- binutils-gdb.orig/gdb/arm-tdep.c +++ binutils-gdb/gdb/arm-tdep.c @@ -30,7 +30,7 @@ #include "disasm.h" #include "regcache.h" #include "reggroups.h" -#include "doublest.h" +#include "target-float.h" #include "value.h" #include "arch-utils.h" #include "osabi.h" @@ -7910,8 +7910,8 @@ arm_extract_return_value (struct type *t bfd_byte tmpbuf[FP_REGISTER_SIZE]; regcache_cooked_read (regs, ARM_F0_REGNUM, tmpbuf); - convert_typed_floating (tmpbuf, arm_ext_type (gdbarch), - valbuf, type); + target_float_convert (tmpbuf, arm_ext_type (gdbarch), + valbuf, type); } break; @@ -8115,7 +8115,7 @@ arm_store_return_value (struct type *typ { case ARM_FLOAT_FPA: - convert_typed_floating (valbuf, type, buf, arm_ext_type (gdbarch)); + target_float_convert (valbuf, type, buf, arm_ext_type (gdbarch)); regcache_cooked_write (regs, ARM_F0_REGNUM, buf); break; Index: binutils-gdb/gdb/sh-tdep.c =================================================================== --- binutils-gdb.orig/gdb/sh-tdep.c +++ binutils-gdb/gdb/sh-tdep.c @@ -34,7 +34,7 @@ #include "inferior.h" #include "arch-utils.h" #include "regcache.h" -#include "doublest.h" +#include "target-float.h" #include "osabi.h" #include "reggroups.h" #include "regset.h" @@ -1576,8 +1576,8 @@ sh_register_convert_to_virtual (struct g } if (regnum >= DR0_REGNUM && regnum <= DR_LAST_REGNUM) - convert_typed_floating (from, sh_littlebyte_bigword_type (gdbarch), - to, type); + target_float_convert (from, sh_littlebyte_bigword_type (gdbarch), + to, type); else error ("sh_register_convert_to_virtual called with non DR register number"); @@ -1595,8 +1595,8 @@ sh_register_convert_to_raw (struct gdbar } if (regnum >= DR0_REGNUM && regnum <= DR_LAST_REGNUM) - convert_typed_floating (from, type, - to, sh_littlebyte_bigword_type (gdbarch)); + target_float_convert (from, type, + to, sh_littlebyte_bigword_type (gdbarch)); else error (_("sh_register_convert_to_raw called with non DR register number")); } Index: binutils-gdb/gdb/sh64-tdep.c =================================================================== --- binutils-gdb.orig/gdb/sh64-tdep.c +++ binutils-gdb/gdb/sh64-tdep.c @@ -36,6 +36,7 @@ #include "regcache.h" #include "osabi.h" #include "valprint.h" +#include "target-float.h" #include "elf-bfd.h" @@ -1258,8 +1259,8 @@ sh64_extract_return_value (struct type * gdb_byte buf[8]; regcache_cooked_read (regcache, DR0_REGNUM, buf); - convert_typed_floating (buf, sh64_littlebyte_bigword_type (gdbarch), - valbuf, type); + target_float_convert (buf, sh64_littlebyte_bigword_type (gdbarch), + valbuf, type); } } else @@ -1468,8 +1469,8 @@ sh64_register_convert_to_virtual (struct && regnum <= DR_LAST_REGNUM) || (regnum >= DR0_C_REGNUM && regnum <= DR_LAST_C_REGNUM)) - convert_typed_floating (from, sh64_littlebyte_bigword_type (gdbarch), - to, type); + target_float_convert (from, sh64_littlebyte_bigword_type (gdbarch), + to, type); else error (_("sh64_register_convert_to_virtual " "called with non DR register number")); @@ -1477,7 +1478,7 @@ sh64_register_convert_to_virtual (struct static void sh64_register_convert_to_raw (struct gdbarch *gdbarch, struct type *type, - int regnum, const void *from, void *to) + int regnum, const gdb_byte *from, gdb_byte *to) { if (gdbarch_byte_order (gdbarch) != BFD_ENDIAN_LITTLE) { @@ -1490,8 +1491,8 @@ sh64_register_convert_to_raw (struct gdb && regnum <= DR_LAST_REGNUM) || (regnum >= DR0_C_REGNUM && regnum <= DR_LAST_C_REGNUM)) - convert_typed_floating (from, type, - to, sh64_littlebyte_bigword_type (gdbarch)); + target_float_convert (from, type, + to, sh64_littlebyte_bigword_type (gdbarch)); else error (_("sh64_register_convert_to_raw called " "with non DR register number"));