public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] sim: mips: simplify fpu configure logic
@ 2022-11-03 18:38 Mike Frysinger
  0 siblings, 0 replies; 2+ messages in thread
From: Mike Frysinger @ 2022-11-03 18:38 UTC (permalink / raw)
  To: gdb-patches

The configure code always defaults to HARD_FLOATING_POINT, so inline
that value and drop redundant target checks as a result.
---
 sim/mips/configure    | 18 +++++++-----------
 sim/mips/configure.ac | 18 +++++++-----------
 2 files changed, 14 insertions(+), 22 deletions(-)

diff --git a/sim/mips/configure.ac b/sim/mips/configure.ac
index bdc675842d38..f1d9f3d24100 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)
 
 
 
-- 
2.38.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH] sim: mips: simplify fpu configure logic
@ 2022-11-03 18:37 Mike Frysinger
  0 siblings, 0 replies; 2+ messages in thread
From: Mike Frysinger @ 2022-11-03 18:37 UTC (permalink / raw)
  To: gdb-patches

The configure code always defaults to HARD_FLOATING_POINT, so inline
that value and drop redundant target checks as a result.
---
 sim/mips/configure    | 18 +++++++-----------
 sim/mips/configure.ac | 18 +++++++-----------
 2 files changed, 14 insertions(+), 22 deletions(-)

diff --git a/sim/mips/configure.ac b/sim/mips/configure.ac
index bdc675842d38..f1d9f3d24100 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)
 
 
 
-- 
2.38.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-11-03 18:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-03 18:38 [PATCH] sim: mips: simplify fpu configure logic Mike Frysinger
  -- strict thread matches above, loose matches on Subject: below --
2022-11-03 18:37 Mike Frysinger

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).