aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc
AgeCommit message (Collapse)AuthorFilesLines
2002-03-252002-03-24 David O'Brien <obrien@FreeBSD.org>David O'Brien2-0/+7
* ppc/hw_disk.c: Export a disk device property. This is needed by the FreeBSD/powerpc porting effort.
2002-03-23From 2001-12-09 Julien Ducourthial <jducourt@noos.fr>:Andrew Cagney2-7/+14
* ppc-instructions (lswx): Do the register control with the register count. Initialize the right register in the loop. (mtfsfi) : Correct prefix for the instruction.
2002-02-25Fix PR gdb/287. From wiz at danbala. Then->than and typos.Andrew Cagney2-2/+8
2002-01-12* Makefile.in (tmp-igen): Pass -I $(srcdir) to igen.Matthew Green8-27/+211
* igen.c (main): Change -I to add include paths for :include: files. Implement -G as per sim/igen, with just gen-icache=N support. Call load_insn_table() with the built include path. * ld-insn.c (parse_include_entry): New. Load an :include: file. (load_insn_table): New `includes' argument. Look for :include: entries and call parse_include_entry() for them. (main): Adjust load_insn_table() call. * ld-insn.h (model_include_fields): New enum. (load_insn_table): Update prototype. * table.c (struct _open_table, struct _table): Rework structures to handle included files. (table_push): Move the guts of table_open() here. * table.c (struct _open table, struct table): Make table object an indirect ptr to the current table file. (current_line, new_table_entry, next_line): Make file arg type open_table. (table_open): Use table_push. (table_entry_read): Point variable file at current table, at eof, pop last open table. * misc.h (NZALLOC): New macro. From sim/igen. * table.h, table.c (table_push): New function.
2002-01-04* bits.c (LSMASKED64): New inline function.Matthew Green5-4/+63
(LSEXTRACTED64): Likewise. * bits.h (_LSB_POS, _LSMASKn, LSMASK64): New macros from sim/common/sim-bits.h (LSMASKED64, LSEXTRACTED64): New functions definitions. * Makefile.in (sim-bits.o): Remove target. * main.c (zalloc): Fix typo in error message.
2001-12-16Don't try to link in sim-bits.o.Andrew Cagney3-3/+8
2001-12-15 * main.c: Include "defs.h", "bfd.h", "callback.h" and "remote-sim.h".Matthew Green3-0/+36
(sim_io_error): New function. * sim_calls.c: (sim_io_error): New function.
2001-12-14* support sim-fpu.c for correct FP emulation.Matthew Green16-122/+228
* Makefile.in (LIB_OBJ): Add @sim_fpu@. (ICACHE_CFLAGS, SEMANTICS_CFLAGS): New variables. (icache.o, semantics.o): Add new ICACHE_FLAGS & SEMANTICS_FLAGS. (sim-fpu.o, sim-bits.o, tconfig.h): New targets. * configure.in: Rename INLINE_LOCALS to PSIM_INLINE_LOCALS. Add a check for sim/common/sim-fpu.c. Output sim_fpu and sim_fpu_cflags. * configure: Regenerate. * device.h (device_find_integer_array_property): Match function definition. * gen-icache.c (print_icache_internal_function_declaration): Rename INLINE_ICACHE to PSIM_INLINE_ICACHE. * gen-idecode.c (print_idecode_run_function_header): Rename INLINE_IDECODE to PSIM_INLINE_IDECODE. * gen-semantics.c (print_semantic_function_header): Rename EXTERN_SEMANTICS to PSIM_EXTERN_SEMANTICS. * gen-support.c (print_support_function_name): Rename INLINE_SUPPORT to PSIM_INLINE_SUPPORT. * igen.c (print_function_name): Also escape `(' and `)'. (gen_semantics_h): Rename EXTERN_SEMANTICS to PSIM_EXTERN_SEMANTICS. (gen_semantics_c): Likewise. Also output includes for "sim-fpu.h" * inline.h (INLINE_SIM_ENDIAN): Renamed INLINE_PSIM_ENDIAN. (EXTERN_SIM_ENDIAN): Renamed EXTERN_PSIM_ENDIAN. (STATIC_INLINE_SIM_ENDIAN): Renamed STATIC_INLINE_PSIM_ENDIAN. (INLINE_LOCALS): Renamed PSIM_INLINE_LOCALS. (EXTERN_SUPPORT): Renamed PSIM_EXTERN_SUPPORT. (INLINE_SUPPORT): Renamed PSIM_INLINE_SUPPORT. (EXTERN_SEMANTICS): Renamed PSIM_EXTERN_SEMANTICS. (INLINE_SEMANTICS): Renamed PSIM_INLINE_SEMANTICS. (EXTERN_IDECODE): Renamed PSIM_EXTERN_IDECODE. (INLINE_IDECODE): Renamed PSIM_INLINE_IDECODE. (EXTERN_ICACHE): Renamed PSIM_EXTERN_ICACHE. (INLINE_ICACHE): Renamed PSIM_INLINE_ICACHE. * options.c (options_inline): Fix names. * sim-endian-n.h: Change INLINE_SIM_ENDIAN to INLINE_PSIM_ENDIAN. * sim-endian.h: Likewise. * sim-main.h: New file. * std-config.h: Rename INLINE_LOCALS to PSIM_INLINE_LOCALS.
2001-12-01From Mark Peek.Andrew Cagney2-1/+7
* ppc-spr-table: Add SDA and PIR.
2001-11-14when #size-cells is zero, don't expect a size.Andrew Cagney2-5/+17
2001-10-26Chirp fixes:Andrew Cagney3-5/+28
* hw_htab.c (htab_map_binary): Don't try to map the text section when it is empty. * emul_chirp.c (map_over_chirp_note): Default load-base to -1 not CHIRP_LOAD_BASE. (emul_chirp_create): Map in the interrupt table.
2001-07-16Makefile.in: Add dependencies on $(CPU_H).Daniel Jacobowitz2-3/+7
2001-05-10Don't loose last block during a dma.Andrew Cagney2-1/+6
2001-03-05Fixes for NetBSD 1.5. NetBSD has been renumbering/renaming itsAndrew Cagney2-0/+22
SYS_* interfaces.
2001-01-15 * emul_netbsd.c (do_open): Translate the flag parameter to theGeoffrey Keating2-1/+24
open syscall to the numbers supported by the host.
2000-12-12In sim/common:Geoffrey Keating2-49/+55
* sim-endian.h: Don't have parameters on macro definitions which are simply renaming functions, to permit use of XCONCAT2 in both the macro name and the arguments in a use of such a definition. In sim/ppc: * sim-endian.h: Don't have parameters on macro definitions which are simply renaming functions, to permit use of XCONCAT2 in both the macro name and the arguments in a use of such a definition.
2000-12-082000-11-15 Jim Blandy <jimb@redhat.com>Michael Chastain2-24/+37
* sim_calls.c: Doc fix. (sim_fetch_register, sim_store_register): Call gdbarch_register_name directly, instead of going through REGISTER_NAME macro.
2000-10-24 * ppc-instructions (lfsux): Correct XO field of lfsux instruction.Geoffrey Keating2-1/+5
2000-05-24Change profiling so that it is enabled by default. Re-generate everything.Andrew Cagney2-195/+210
2000-04-28Fix event insertion when processing more than one event for the current time.Andrew Cagney2-3/+12
2000-04-28Cleanup tracing.Andrew Cagney3-2/+28
2000-03-25* ppc-instructions (Disabled_Exponent_Underflow): IncrementGeoffrey Keating2-1/+6
the exponent when denormalizing.
1999-09-09import gdb-1999-09-08 snapshotStan Shebs2-207/+202
1999-05-11import gdb-1999-05-10Stan Shebs3-229/+325
1999-04-26import gdb-19990422 snapshotStan Shebs8-31/+41
1999-04-16Initial creation of sourceware repositorygdb-4_18-branchpointStan Shebs137-0/+64494
1999-04-16Initial creation of sourceware repositoryStan Shebs132-58818/+0
1999-01-22Initial implementation of fixes for MPC860 version C0 & earlier.James Lemke1-5/+28
1998-11-20Fix problem where qnan was treated like an infinityMichael Meissner1-0/+6
1998-10-28For cygwin hosts, we need to use the return value from the readDrew Moseley1-0/+24
routine as the number of bytes to process. This apparently is due to text-mode vs binary-mode. If the mounts are done text-mode, then the size returnedby fstat() may be different than the number of bytes "read" in text mode.
1998-06-26Do not try to include sys/mount.h anymoreMichael Meissner2-1/+21
1998-04-29Wed Apr 29 15:44:52 1998 Geoffrey Noer <noer@cygnus.com>Geoffrey Noer5-179/+284
* aclocal.m4: new file for AM_EXEEXT macro * configure.in: call AM_EXEEXT * configure: regenerate with autoconf 2.12.1. * Makefile.in: add EXEEXT support
1998-04-26 * configure: Regenerated to track ../common/aclocal.m4 changes.Tom Tromey5-12/+39
* config.in: Ditto. * acconfig.h: New file. * configure.in: Reverted change of Apr 24; use sinclude again. Don't call AC_C_CROSS.
1998-04-24 * configure: Regenerated to track ../common/aclocal.m4 changes.Tom Tromey4-278/+2030
* config.in: Ditto. * Makefile.in (top_builddir): New macro. (INTLLIBS): New macro. (INTLDEPS): Likewise. (psim): Depend on INTLDEPS; link against INTLLIBS. * configure.in: Call CY_GNU_GETTEXT.
1998-04-22Regenerate configureMichael Meissner2-119/+195
1997-10-02Fix typo, WITH_TARGET_WORD_BITSIZE not WITH_TARGET_BITSIZE.Andrew Cagney2-2/+23
1997-08-27Add MSBIT* and LSBIT* macro's to sim-bits.hAndrew Cagney1-0/+3
Add more macro's for extracting sub word quantites to sim-endian.h
1997-08-27Add ABFD argument to sim_create_inferior. Document.Andrew Cagney2-9/+14
Add file sim-hload.c - generic load for hardware only simulators. Review each simulators sim_open, sim_load, sim_create_inferior so that they more closely match required behavour.
1997-08-27 * idecode_expression.h (ALU_END): From Charles Lefurgy - ExtractAndrew Cagney2-3/+13
sign bit using 64 bit and not a 32 bit mask. * sim_calls.c (sim_load): From Ian Lance Taylor - free argv after it has been used, not before.
1997-08-26Flush defunct sim_kill.Andrew Cagney2-8/+4
1997-08-25Add ABFD argument to sim_open call. Pass through to sim_config soAndrew Cagney2-11/+45
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.
1997-07-03Sync powerpc simulator with public version. Enable FPSCR and stringAndrew Cagney1-1/+1
instructions.
1997-05-20Part II of adding callback argument to sim_open(). Update all theAndrew Cagney2-46/+35
other simulators; remove SIM_DESC from depreciated function sim_set_callbacks().
1997-04-18Ref gdb/11763 - can't stop a running simulator:Andrew Cagney2-1/+43
o Provide poll_quit callback to simulators so that they can poll for SIGINT on clueless OS's. o Add sim_stop to simulators so that clients can request a halt (eg gdbtk's STOP button) Works for PPC! o Re-arange remote-sim.c so that the hard work is moved from gdbsim_resume() to gdbsim_wait() (where it should be).
1997-04-17 * psim.c (psim_options): Ignore -E option (sets endianness).David Edelsohn3-62/+162
* sim_calls.c: #include bfd.h. (entry_point): New static local. (sim_load): Return SIM_RC. New arg abfd. Set start address from bfd. (sim_create_inferior): Return SIM_RC. Delete arg start_address.
1997-04-15 * Makefile.in (INSTALL): Set to @INSTALL@.Ian Lance Taylor1-0/+8
(INSTALL_XFORM, INSTALL_XFORM1): Remove. (install): Depend upon installdirs. Use $(program_transform_name) directly, rather than using $(INSTALL_XFORM). (installdirs): New target.
1997-04-15From Jim Wilson <wilson@cygnus.com>Andrew Cagney2-11/+49
* Makefile.in (tmp-hw, tmp-pk): Use for loop to eliminate duplicates rather than the non-portable cat -n.
1997-04-03From Jim Wilson, fix typo in instruction nameAndrew Cagney1-0/+4
1997-04-02 * sim_calls.c (sim_open): New arg `kind'.David Edelsohn1-0/+4
1997-04-02 * COPYING: Update FSF address.Ian Lance Taylor1-0/+9