From 247fccdeb54a09a14287b2e829511803ad9d7cc1 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Mon, 25 Aug 1997 23:14:25 +0000 Subject: Add ABFD argument to sim_open call. Pass through to sim_config so that image properties such as endianness can be checked. More strongly document the expected behavour of each of the sim_* interfaces. Add default endian argument to simulator config macro SIM_AC_OPTION_ENDIAN. Use in sim_config. --- sim/ppc/ChangeLog | 41 ++++++++++++++++++++++++++++++++++++++++- sim/ppc/sim_calls.c | 15 +++++---------- 2 files changed, 45 insertions(+), 11 deletions(-) (limited to 'sim/ppc') diff --git a/sim/ppc/ChangeLog b/sim/ppc/ChangeLog index 67b5217..eb7cfa6 100644 --- a/sim/ppc/ChangeLog +++ b/sim/ppc/ChangeLog @@ -1,7 +1,46 @@ +Mon Aug 25 16:17:06 1997 Andrew Cagney + + * sim_calls.c (sim_open): Add ABFD argument. + +Thu Jul 3 10:18:06 1997 Andrew Cagney + + * ppc-instructions (PPC_INSN_INT): From Michael Thies - Monitoring + CR register updates dependant on RC value had logic backwards. + + * ppc-instructions (Load String Word Immediate): From Brad Parker + - sense of wrap test in check for overwriting RA wrong. + (Load String Word Indexed): Ditto. + + * configure.in: From Erik Landry - set sim_default_model not + sim_model for sim-default-model option. + * configure: Regenerate. + + * interrupts.c (check_masked_interrupts): Schedule a hardware + interrupt delivery when FP interrupts get enabled. + (program_interrupt): Generate FP exceptions instead of aborting. + (deliver_hardware_interrupt): Deliver a FP exception if so + enabled. + + * registers.h: Add definition of fpscr_vx_bits. + + * idecode_expression.h (FPSCR_END): Always update FEX and VX bits + in FPSCR. + (FPSCR_END): Explicitly check for possible floating point + exception conditions. + (FPSCR_BEGIN): Simplify. + + * ppc-instructions (Move From FPSCR): Enable. + (Move To FPSCR Bit 1): Ditto. + (Move To FPSCR Bit 0): Ditto. + (Move To FPSCR Field Immediate): Ditto. + (Move to Condition Register from FPSCR): Simplify. + (invalid_arithemetic_operation): Generate a QNaN when invalid + operation exception disabled. + Tue May 20 10:22:50 1997 Andrew Cagney * sim_calls.c (sim_open): Add callback argument. - (sim_set_callbacks): Delete SIM_DESC argument. + (sim_set_callbacks): Delete. Tue Apr 22 22:36:57 1997 Mike Meissner diff --git a/sim/ppc/sim_calls.c b/sim/ppc/sim_calls.c index f7d8803..1bee0df 100644 --- a/sim/ppc/sim_calls.c +++ b/sim/ppc/sim_calls.c @@ -51,13 +51,17 @@ static psim *simulator; static device *root_device; static const char *register_names[] = REGISTER_NAMES; +static host_callback *callbacks; /* For communication between sim_load and sim_create_inferior. This can be made to go away, please do. */ static unsigned_word entry_point; SIM_DESC -sim_open (SIM_OPEN_KIND kind, host_callback *callback, char **argv) +sim_open (SIM_OPEN_KIND kind, + host_callback *callback, + struct _bfd *abfd, + char **argv) { callbacks = callback; @@ -295,8 +299,6 @@ sim_do_command (SIM_DESC sd, char *cmd) advanced operations (such as dup or write) must either be mapped to one of the below calls or handled internally */ -static host_callback *callbacks; - int sim_io_read_stdin(char *buf, int sizeof_buf) @@ -384,13 +386,6 @@ sim_io_flush_stdoutput(void) } } -void -sim_set_callbacks (host_callback *callback) -{ - callbacks = callback; - TRACE(trace_gdb, ("sim_set_callbacks called\n")); -} - /****/ void * -- cgit v1.1