public inbox for gdb-cvs@sourceware.org help / color / mirror / Atom feed
From: Michael Frysinger <vapier@sourceware.org> To: gdb-cvs@sourceware.org Subject: [binutils-gdb] sim: mips: simplify fpu configure logic Date: Thu, 3 Nov 2022 18:38:34 +0000 (GMT) [thread overview] Message-ID: <20221103183834.5AAD83858423@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=ccc4ba59596635f08a6f96a12c72462445447d70 commit ccc4ba59596635f08a6f96a12c72462445447d70 Author: Mike Frysinger <vapier@gentoo.org> Date: Fri Nov 4 01:28:09 2022 +0700 sim: mips: simplify fpu configure logic The configure code always defaults to HARD_FLOATING_POINT, so inline that value and drop redundant target checks as a result. Diff: --- sim/mips/configure | 18 +++++++----------- sim/mips/configure.ac | 18 +++++++----------- 2 files changed, 14 insertions(+), 22 deletions(-) diff --git a/sim/mips/configure b/sim/mips/configure index 14d7e0ce52e..b0ba7ba7470 100755 --- a/sim/mips/configure +++ b/sim/mips/configure @@ -1941,21 +1941,17 @@ fi # # Select the floating hardware support of the target # -mips_fpu=HARDWARE_FLOATING_POINT mips_fpu_bitsize= case "${target}" in - mips*tx39*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=32 ;; - mips*-sde-elf*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;; - mips*-mti-elf*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;; - mips64*-*-*) mips_fpu=HARD_FLOATING_POINT ;; - mips16*-*-*) mips_fpu=HARD_FLOATING_POINT ;; - mipsisa32*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;; - mipsisa64*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;; - mips*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=32 ;; - *) mips_fpu=HARD_FLOATING_POINT ;; + mips*tx39*) mips_fpu_bitsize=32 ;; + mips*-sde-elf*) mips_fpu_bitsize=64 ;; + mips*-mti-elf*) mips_fpu_bitsize=64 ;; + mipsisa32*-*-*) mips_fpu_bitsize=64 ;; + mipsisa64*-*-*) mips_fpu_bitsize=64 ;; + mips*-*-*) mips_fpu_bitsize=32 ;; esac -default_sim_float="$mips_fpu" +default_sim_float="HARD_FLOATING_POINT" default_sim_float_bitsize="$mips_fpu_bitsize" # Check whether --enable-sim-float was given. if test "${enable_sim_float+set}" = set; then : diff --git a/sim/mips/configure.ac b/sim/mips/configure.ac index bdc675842d3..f1d9f3d2410 100644 --- a/sim/mips/configure.ac +++ b/sim/mips/configure.ac @@ -45,20 +45,16 @@ SIM_AC_OPTION_BITSIZE($mips_bitsize,$mips_msb) # # Select the floating hardware support of the target # -mips_fpu=HARDWARE_FLOATING_POINT mips_fpu_bitsize= case "${target}" in - mips*tx39*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=32 ;; - mips*-sde-elf*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;; - mips*-mti-elf*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;; - mips64*-*-*) mips_fpu=HARD_FLOATING_POINT ;; - mips16*-*-*) mips_fpu=HARD_FLOATING_POINT ;; - mipsisa32*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;; - mipsisa64*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;; - mips*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=32 ;; - *) mips_fpu=HARD_FLOATING_POINT ;; + mips*tx39*) mips_fpu_bitsize=32 ;; + mips*-sde-elf*) mips_fpu_bitsize=64 ;; + mips*-mti-elf*) mips_fpu_bitsize=64 ;; + mipsisa32*-*-*) mips_fpu_bitsize=64 ;; + mipsisa64*-*-*) mips_fpu_bitsize=64 ;; + mips*-*-*) mips_fpu_bitsize=32 ;; esac -SIM_AC_OPTION_FLOAT($mips_fpu,$mips_fpu_bitsize) +SIM_AC_OPTION_FLOAT(HARD_FLOATING_POINT,$mips_fpu_bitsize)
reply other threads:[~2022-11-03 18:38 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20221103183834.5AAD83858423@sourceware.org \ --to=vapier@sourceware.org \ --cc=gdb-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).