aboutsummaryrefslogtreecommitdiff
path: root/sim/common/sim-fpu.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>1998-04-04 12:33:11 +0000
committerAndrew Cagney <cagney@redhat.com>1998-04-04 12:33:11 +0000
commit278bda4050efd9f6e59a66f9d1f0972521ced67b (patch)
tree0d5665927e194812e1cce29888c3dfbce161cc00 /sim/common/sim-fpu.c
parent79cb0c8a2fc8df9735259b524c7a1f39f5518d1e (diff)
downloadgdb-278bda4050efd9f6e59a66f9d1f0972521ced67b.zip
gdb-278bda4050efd9f6e59a66f9d1f0972521ced67b.tar.gz
gdb-278bda4050efd9f6e59a66f9d1f0972521ced67b.tar.bz2
Cleanup INLINE support for simulators using common framework.
Make IGEN responsible for co-ordinating inlining of generated files. By default, aclocal.m4 disabled all inlining.
Diffstat (limited to 'sim/common/sim-fpu.c')
-rw-r--r--sim/common/sim-fpu.c26
1 files changed, 19 insertions, 7 deletions
diff --git a/sim/common/sim-fpu.c b/sim/common/sim-fpu.c
index efc9244..99e922c 100644
--- a/sim/common/sim-fpu.c
+++ b/sim/common/sim-fpu.c
@@ -139,7 +139,7 @@ typedef union {
#define PADMASK (is_double ? 0 : LSMASK64 (NR_PAD32 - 1, 0))
#define NR_GUARDS32 (7 + NR_PAD32)
-#define NR_GUARDS64 (8 + NR_PAD32)
+#define NR_GUARDS64 (8 + NR_PAD64)
#define NR_GUARDS (is_double ? NR_GUARDS64 : NR_GUARDS32)
#define GUARDMASK LSMASK64 (NR_GUARDS - 1, 0)
@@ -2401,12 +2401,24 @@ sim_fpu_gt (int *is,
/* A number of useful constants */
-const sim_fpu sim_fpu_zero = { sim_fpu_class_zero, };
-const sim_fpu sim_fpu_qnan = { sim_fpu_class_qnan, };
-const sim_fpu sim_fpu_one = { sim_fpu_class_number, 0, IMPLICIT_1, 1 };
-const sim_fpu sim_fpu_two = { sim_fpu_class_number, 0, IMPLICIT_1, 2 };
-const sim_fpu sim_fpu_max32 = { sim_fpu_class_number, 0, LSMASK64 (NR_FRAC_GUARD, NR_GUARDS32), NORMAL_EXPMAX32 };
-const sim_fpu sim_fpu_max64 = { sim_fpu_class_number, 0, LSMASK64 (NR_FRAC_GUARD, NR_GUARDS64), NORMAL_EXPMAX64 };
+EXTERN_SIM_FPU (const sim_fpu) sim_fpu_zero = {
+ sim_fpu_class_zero,
+};
+EXTERN_SIM_FPU (const sim_fpu) sim_fpu_qnan = {
+ sim_fpu_class_qnan,
+};
+EXTERN_SIM_FPU (const sim_fpu) sim_fpu_one = {
+ sim_fpu_class_number, 0, IMPLICIT_1, 1
+};
+EXTERN_SIM_FPU (const sim_fpu) sim_fpu_two = {
+ sim_fpu_class_number, 0, IMPLICIT_1, 2
+};
+EXTERN_SIM_FPU (const sim_fpu) sim_fpu_max32 = {
+ sim_fpu_class_number, 0, LSMASK64 (NR_FRAC_GUARD, NR_GUARDS32), NORMAL_EXPMAX32
+};
+EXTERN_SIM_FPU (const sim_fpu) sim_fpu_max64 = {
+ sim_fpu_class_number, 0, LSMASK64 (NR_FRAC_GUARD, NR_GUARDS64), NORMAL_EXPMAX64
+};
/* For debugging */