forked from Imagelibrary/binutils-gdb
import gdb-1999-07-07 pre reformat
This commit is contained in:
@@ -1,3 +1,16 @@
|
||||
Wed Jul 7 19:56:03 1999 Andrew Cagney <cagney@b1.cygnus.com>
|
||||
|
||||
* dv-sockser.c (connected_p): Initialize addrlen.
|
||||
|
||||
1999-07-06 Dave Brolley <brolley@cygnus.com>
|
||||
|
||||
* cgen-accfp.c (floatsidf): New function.
|
||||
(fixdfsi): New function.
|
||||
|
||||
1999-07-06 Doug Evans <devans@casey.cygnus.com>
|
||||
|
||||
* sim-model.c (sim_model_init): Issue error if machine is unsupported.
|
||||
|
||||
1999-07-05 Doug Evans <devans@casey.cygnus.com>
|
||||
|
||||
* Make-common.in (CGEN_MAIN_CPU_DEPS): Add cgen-fpu.h.
|
||||
|
||||
@@ -268,6 +268,17 @@ floatsisf (CGEN_FPU* fpu, SI x)
|
||||
return res;
|
||||
}
|
||||
|
||||
static DF
|
||||
floatsidf (CGEN_FPU* fpu, SI x)
|
||||
{
|
||||
sim_fpu ans;
|
||||
unsigned64 res;
|
||||
|
||||
sim_fpu_i32to (&ans, x, sim_fpu_round_near);
|
||||
sim_fpu_to64 (&res, &ans);
|
||||
return res;
|
||||
}
|
||||
|
||||
static SF
|
||||
ufloatsisf (CGEN_FPU* fpu, USI x)
|
||||
{
|
||||
@@ -290,6 +301,17 @@ fixsfsi (CGEN_FPU* fpu, SF x)
|
||||
return res;
|
||||
}
|
||||
|
||||
static SI
|
||||
fixdfsi (CGEN_FPU* fpu, DF x)
|
||||
{
|
||||
sim_fpu op1;
|
||||
unsigned32 res;
|
||||
|
||||
sim_fpu_64to (&op1, x);
|
||||
sim_fpu_to32i (&res, &op1, sim_fpu_round_near);
|
||||
return res;
|
||||
}
|
||||
|
||||
static USI
|
||||
ufixsfsi (CGEN_FPU* fpu, SF x)
|
||||
{
|
||||
@@ -596,7 +618,9 @@ cgen_init_accurate_fpu (SIM_CPU* cpu, CGEN_FPU* fpu, CGEN_FPU_ERROR_FN* error)
|
||||
o->gtdf = gtdf;
|
||||
o->gedf = gedf;
|
||||
o->floatsisf = floatsisf;
|
||||
o->floatsidf = floatsidf;
|
||||
o->ufloatsisf = ufloatsisf;
|
||||
o->fixsfsi = fixsfsi;
|
||||
o->fixdfsi = fixdfsi;
|
||||
o->ufixsfsi = ufixsfsi;
|
||||
}
|
||||
|
||||
@@ -268,6 +268,7 @@ connected_p (SIM_DESC sd)
|
||||
if (numfds <= 0)
|
||||
return 0;
|
||||
|
||||
addrlen = sizeof (sockaddr);
|
||||
sockser_fd = accept (sockser_listen_fd, &sockaddr, &addrlen);
|
||||
if (sockser_fd < 0)
|
||||
return 0;
|
||||
|
||||
@@ -197,6 +197,13 @@ sim_model_init (SIM_DESC sd)
|
||||
/* Use the default model for the selected machine.
|
||||
The default model is the first one in the list. */
|
||||
const MACH *mach = sim_mach_lookup_bfd_name (STATE_ARCHITECTURE (sd)->printable_name);
|
||||
|
||||
if (mach == NULL)
|
||||
{
|
||||
sim_io_eprintf (sd, "unsupported machine `%s'\n",
|
||||
STATE_ARCHITECTURE (sd)->printable_name);
|
||||
return SIM_RC_FAIL;
|
||||
}
|
||||
sim_model_set (sd, NULL, MACH_MODELS (mach));
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user