Hans-Peter Nilsson
9538c15c36
* sim/cris/asm/testutils.inc (test_move_cc): Add missing call to
...
test_cc.
* sim/cris/asm/asr.ms: Correct expected condition code flags.
* sim/cris/asm/boundr.ms: Ditto.
* sim/cris/asm/dstep.ms: Ditto.
* sim/cris/asm/lsr.ms: Ditto.
* sim/cris/asm/movecr.ms: Ditto.
* sim/cris/asm/mover.ms: Ditto.
* sim/cris/asm/neg.ms: Ditto. Use test_cc, not test_move_cc.
* sim/cris/asm/op3.ms: Check the condition code flags after the insn
under test.
* sim/cris/asm/movecrt10.ms: Update expected number of simulated
cycles.
* sim/cris/asm/movecrt32.ms: Ditto.
* sim/cris/asm/jsr.ms: Don't use local label 8.
* sim/cris/asm/nonvcv32.ms: New test.
2007-10-22 16:49:25 +00:00
Hans-Peter Nilsson
c9b3544ace
* cris/arch.c, cris/arch.h, cris/cpuall.h, cris/cpuv10.c,
...
cris/cpuv10.h, cris/cpuv32.c, cris/cpuv32.h, cris/cris-desc.c,
cris/cris-desc.h, cris/cris-opc.h, cris/decodev10.c,
cris/decodev10.h, cris/decodev32.c, cris/decodev32.h,
cris/modelv10.c, cris/modelv32.c, cris/semcrisv10f-switch.c,
cris/semcrisv32f-switch.c: Regenerate.
2007-10-22 16:06:38 +00:00
Daniel Jacobowitz
7cc46491b1
* NEWS: Document target described register support for PowerPC.
...
* ppc-tdep.h: Remove ppc_spr constants.
(struct gdbarch_tdep): Remove regs, ppc_sr0_regnum, and
ppc_builtin_type_vec128 members.
(PPC_R0_REGNUM, PPC_F0_REGNUM, PPC_PC_REGNUM, PPC_MSR_REGNUM)
(PPC_CR_REGNUM, PPC_LR_REGNUM, PPC_CTR_REGNUM, PPC_XER_REGNUM)
(PPC_FPSCR_REGNUM, PPC_MQ_REGNUM, PPC_SPE_UPPER_GP0_REGNUM)
(PPC_SPE_ACC_REGNUM, PPC_SPE_FSCR_REGNUM, PPC_VR0_REGNUM)
(PPC_VSCR_REGNUM, PPC_VRSAVE_REGNUM, PPC_NUM_REGS): New constants.
* rs6000-tdep.c: Include preparsed descriptions.
(init_sim_regno_table): Do not iterate over pseudo registers.
Look up segment registers by name. Use sim_spr_register_name
for SPRs.
(rs6000_register_sim_regno): Call init_sim_regno_table here.
(rs6000_builtin_type_vec128): Delete.
(rs6000_register_name): Only handle SPE pseudo registers and upper
halves. Call tdesc_register_name for everything else.
(rs6000_register_type): Delete. Replace with...
(rs6000_pseudo_register_type): ...this new function. Only handle
SPE pseudo registers.
(rs6000_register_reggroup_p): Delete. Replace with...
(rs6000_pseudo_register_reggroup_p): ...this new function. Only
handle SPE pseudo registers.
(rs6000_convert_register_p): Use ppc_fp0_regnum instead of
"struct reg".
(rs6000_register_to_value, rs6000_value_to_register): Remove check
of reg->fpr.
(e500_register_reggroup_p): Delete.
(STR, R, R4, R8, R16, F, P8, R32, R64, R0, A4, S, S4, SN4, S64)
(COMMON_UISA_REGS, PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS)
(PPC_SEGMENT_REGS, PPC_OEA_SPRS, PPC_ALTIVEC_REGS, PPC_SPE_GP_REGS)
(PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): Delete macros.
(registers_powerpc, registers_403, registers_403GC, registers_505)
(registers_860, registers_601, registers_602, registers_603)
(registers_604, registers_750, registers_7400, registers_e500): Delete
variables.
(struct variant): Delete nregs, npregs, num_tot_regs, and regs. Add
tdesc.
(tot_num_registers, num_registers, num_pseudo_registers): Delete.
(variants): Delete outdated comment. Use standard target descriptions
instead of "struct reg" arrays.
(init_variants): Delete.
(rs6000_gdbarch_init): Do not guess word size from the BFD
architecture if we have a target description. Select a variant
before creating a new architecture. Use the variant's target
description if the target did not define a register layout.
Validate target-supplied registers. Reject mismatches. Use
fixed register numbers and new constants instead of magic
numbers. Call set_gdbarch_ps_regnum. Call tdesc_use_registers.
(_initialize_rs6000_tdep): Initialize the preparsed target
descriptions.
* target-descriptions.c (tdesc_predefined_types): Add int128 and
uint128.
(tdesc_find_register_early): New function.
(tdesc_numbered_register): Use it.
(tdesc_register_size): New function.
(tdesc_use_registers): Take a target_desc argument. Do not use
gdbarch_target_desc.
* target-descriptions.h (tdesc_use_registers): Update prototype
and comment.
(tdesc_register_size): New prototype.
* Makefile.in (powerpc_32_c, powerpc_403_c, powerpc_403gc_c)
(powerpc_505_c, powerpc_601_c, powerpc_602_c, powerpc_603_c)
(powerpc_604_c, powerpc_64_c, powerpc_7400_c, powerpc_750_c)
(powerpc_860_c, powerpc_e500_c, rs6000_c): New macros.
(rs6000-tdep.o): Update.
* arm-tdep.c (arm_gdbarch_init): Update call to tdesc_use_registers.
* m68k-tdep.c (m68k_gdbarch_init): Likewise.
* mips-tdep.c (mips_gdbarch_init): Likewise.
* gdb.texinfo (Predefined Target Types): Add int128
and uint128.
(Standard Target Features): Add PowerPC features.
* gdb.xml/tdesc-regs.exp: Add PowerPC support.
* sim-ppc.h (sim_spr_register_name): New prototype.
* gdb-sim.c (regnum2spr): Rename to...
(sim_spr_register_name): ... this. Make global.
2007-10-15 19:45:31 +00:00
Daniel Jacobowitz
eb639c5004
2007-10-11 Jesper Nilsson <jesper.nilsson@axis.com>
...
* callback.c (cb_is_stdin, cb_is_stdout, cb_is_stderr): Add functions.
* syscall.c (cb_syscall): Test for stdin/out/err, not just fd 0/1/2.
2007-10-11 Jesper Nilsson <jesper.nilsson@axis.com>
* callback.h (cb_is_stdin, cb_is_stdout, cb_is_stderr): Add prototypes.
2007-10-11 Jesper Nilsson <jesper.nilsson@axis.com>
* sim/cris/c/freopen2.c: Added testcase.
2007-10-11 18:44:07 +00:00
Daniel Jacobowitz
b981d70963
2007-10-11 Jesper Nilsson <jesper.nilsson@axis.com>
...
* callback.c (cb_is_stdin): Add.
* syscall.c (cb_syscall): Test for stdin, not just fd 0.
2007-10-11 Jesper Nilsson <jesper.nilsson@axis.com>
* callback.h (cb_is_stdin): Add prototype.
2007-10-11 18:40:29 +00:00
Denis Pilat
4d43927194
2007-09-24 Andrew Stubbs <andrew.stubbs@st.com>
...
* gencode.c (tab): Add RAISE_EXCEPTION_IF_IN_DELAY_SLOT to the
definition of PC relative 'mov.l'/'mov.w' and also 'mova'.
2007-10-08 11:51:31 +00:00
Richard Sandiford
599ca73e2c
sim/mips/
...
* mips.igen (ll): Fix mask for WITH_TARGET_WORD_BITSIZE == 32.
(sc, swxc1): Likewise. Also fix big-endian and reverse-endian
shifts for that case.
2007-10-07 09:04:43 +00:00
Nick Clifton
2525df0347
* interp.c (options enum): Add OPTION_INFO_MEMORY.
...
(display_mem_info): New static variable.
(mips_option_handler): Handle OPTION_INFO_MEMORY.
(mips_options): Add info-memory and memory-info.
(sim_open): After processing the command line and board specification, check display_mem_info.
If it is set then call the real handler for the --memory-info command line switch.
2007-09-04 14:33:18 +00:00
Jerome Guitton
0ad36c846a
* sim/ppc/emul_bugapi.c (emul_bugapi_create): quote the file
...
name property before parsing it.
2007-09-04 09:45:06 +00:00
Joel Brobecker
d5ce5596bf
* compare_igen_models: Change license to GPL version 3.
2007-08-28 16:08:00 +00:00
Joel Brobecker
35ee6e1e05
* configure.ac: Change license of multi-run.c to GPL version 3.
...
* configure: Regenerate.
2007-08-28 00:10:54 +00:00
Joel Brobecker
dfee3164ef
* lf.c (lf_print__gnu_copyleft): Change license to GPL version 3.
2007-08-28 00:09:36 +00:00
Joel Brobecker
db95e31282
* testutils.inc: Change license to GPL version 3.
...
* utils-dsp.inc: Change license to GPL version 3.
* utils-fpu.inc: Change license to GPL version 3.
* utils-mdmx.inc: Change license to GPL version 3.
2007-08-28 00:01:52 +00:00
Joel Brobecker
4744ac1bb0
Switch the license of all files explicitly copyright the FSF
...
to GPLv3.
2007-08-24 14:30:15 +00:00
Nick Clifton
f40f1a01c5
* sim-memopt.c (memory_options): Mention that the memory-size switch accepts suffixes.
...
(parse_size): Handle a suffix on the size value.
* sim-options.c (standard_options): Mention that the mem-size switch accepts suffixes.
(standard_option_handler): Handle a suffix on the size value.
2007-08-10 14:26:33 +00:00
Daniel Jacobowitz
917c78f962
2007-07-03 Yoshinori Sato <ysato@users.sourceforge.jp>
...
* compile.c (sim_resume): Fix the last byte of ARGV for
SYS_CMDLINE.
2007-07-03 17:19:38 +00:00
Richard Sandiford
d5fb0879a5
sim/mips/
...
* configure.ac, configure: Revert last patch.
2007-06-28 06:00:52 +00:00
Richard Sandiford
2a2ce21ba2
sim/mips/
...
* configure.ac (sim_mipsisa3264_configs): New variable.
(mipsis32*-*-, mipsisa32r2*-*-*, mips64*-*-*, mips64r2*-*-*): Make
every configuration support all four targets, using the triplet to
determine the default.
* configure: Regenerate.
2007-06-26 12:16:53 +00:00
Daniel Jacobowitz
0a7692b27d
Changelog typo fix.
2007-06-25 12:24:52 +00:00
Richard Sandiford
efdcccc981
sim/mips/
...
* Makefile.in (m16_run.o): New rule.
2007-06-25 11:21:53 +00:00
Thiemo Seufer
f532a3561c
* mips3264r2.igen (DSHD): Fix compile warning.
2007-05-15 12:20:32 +00:00
Thiemo Seufer
bfe9c90b9a
* mips.igen (ALNV.PS, CEIL.L.fmt, CVT.L.fmt, CVT.PS.S, CVT.S.PL,
...
CVT.S.PU, FLOOR.L.fmt, LDXC1, LUXC1, LWXC1, MADD.fmt, MSUB.fmt,
NMADD.fmt, NMSUB.fmt, PLL.PS, PLU.PS, PREFX, PUL.PS, PUU.PS,
RECIP.fmt, ROUND.L.fmt, RSQRT.fmt, SWXC1, TRUNC.L.fmt): Add support
for mips32r2.
2007-05-14 16:24:25 +00:00
Daniel Jacobowitz
9453113a8d
Add "make pdf" and "make install-pdf", from Brooks Moses
...
<brooks.moses@codesourcery.com>.
2007-03-27 18:09:36 +00:00
Daniel Jacobowitz
6a1754a359
2007-03-02 Andrew Stubbs <andrew.stubbs@st.com>
...
* gencode.c (tab): Correct pre-decrement instructions when m == n.
2007-03-02 12:15:01 +00:00
Thiemo Seufer
53f4826b00
* mips.igen (MFHI, MFLO, MTHI, MTLO): Restore support for mips32
...
and mips64.
2007-03-01 14:29:26 +00:00
Mark Mitchell
e1c9b6f16a
* armos.c (SWIflen): Do not treate file descriptor zero as
...
special.
2007-02-27 18:51:57 +00:00
Thiemo Seufer
8bf3ddc83e
* dsp.igen: Update copyright notice.
...
* dsp2.igen: Fix copyright notice.
2007-02-20 13:53:48 +00:00
Thiemo Seufer
8b082fb134
[ gas/ChangeLog ]
...
* config/tc-mips.c (mips_set_options, mips_opts, file_ase_dspr2,
ISA_SUPPORTS_DSPR2_ASE, MIPS_CPU_ASE_DSPR2): Add DSP R2 ASE support.
(macro_build): Add case '2'.
(macro): Expand M_BALIGN to nop, packrl.ph or balign.
(validate_mips_insn): Add support for balign instruction.
(mips_ip): Handle DSP R2 instructions. Support balign instruction.
(OPTION_DSPR2, OPTION_NO_DSPR2, OPTION_COMPAT_ARCH_BASE,
md_parse_option, mips_after_parse_args): Add -mdspr2 and -mno-dspr2
command line options.
(s_mipsset): Add support for .set dspr2 and .set nodspr2 directives.
(md_show_usage): Add -mdspr2 and -mno-dspr2 help output.
* doc/c-mips.texi, doc/as.texinfo: Document -mdspr2, -mno-dspr2,
.set dspr2, .set nodspr2.
[ gas/testsuite/ChangeLog ]
* gas/mips/mips32-dspr2.s, gas/mips/mips32-dspr2.d: New test for
DSP R2.
* gas/mips/mips.exp: Run new test.
[ include/opcode/Changelog ]
* mips.h (OP_SH_BP, OP_MASK_BP): Add support for balign instruction.
(INSN_DSPR2): Add flag for DSP R2 instructions.
(M_BALIGN): New macro.
[ opcodes/ChangeLog ]
* mips-dis.c (mips_arch_choices): Add DSP R2 support.
(print_insn_args): Add support for balign instruction.
* mips-opc.c (D33): New shortcut for DSP R2 instructions.
(mips_builtin_opcodes): Add DSP R2 instructions.
[ sim/mips/ChangeLog ]
* Makefile.in (IGEN_INCLUDE): Add dsp2.igen.
* configure.ac (mips*-sde-elf*, mipsisa32r2*-*-*, mipsisa64r2*-*-*):
Add dsp2 to sim_igen_machine.
* configure: Regenerate.
* dsp.igen (do_ph_op): Add MUL support when op = 2.
(do_ph_mulq): New function to support mulq_rs.ph and mulq_s.ph.
(mulq_rs.ph): Use do_ph_mulq.
(MFHI, MFLO, MTHI, MTLO): Move these instructions to mips.igen.
* mips.igen: Add dsp2 model and include dsp2.igen.
(MFHI, MFLO, MTHI, MTLO): Extend these instructions for
for *mips32r2, *mips64r2, *dsp.
(MADD, MADDU, MSUB, MSUBU, MULT, MULTU): Extend these instructions
for *mips32r2, *mips64r2, *dsp2.
* dsp2.igen: New file for MIPS DSP REV 2 ASE.
[ sim/testsuite/sim/mips/ChangeLog ]
* basic.exp: Run the dsp2 test.
* utils-dsp.inc (dspckacc_astio, dspck_tsimm): New macro.
* mips32-dsp2.s: New test.
2007-02-20 13:28:56 +00:00
Daniel Jacobowitz
cb5c8c3989
gdb/
...
* MAINTAINERS: Disable -Werror for cris simulator. Build
sparc64-solaris2.10 instead of the broken sparc-elf.
* solib-frv.c: Include "solib.h".
* Makefile.in (solib-frv.o): Update.
* mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
* xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
(xtensa_frame_this_id, xtensa_frame_prev_register)
(xtensa_push_dummy_call): Use %p.
sim/v850/
* Makefile.in (interp.o): Uncomment and update.
2007-02-20 12:45:06 +00:00
Hans-Peter Nilsson
6a4669ea53
* cris/traps.c (dump_statistics): Change format for cycle numbers
...
to %llu and cast parameters to unsigned long long.
2007-02-20 00:14:11 +00:00
Thiemo Seufer
b100487538
* mips.igen (jalr.hb, jr.hb): Add decoder for mip32r2/mips64r2
...
jumps with hazard barrier.
2007-02-19 17:53:29 +00:00
Thiemo Seufer
f8df4c7704
* interp.c (sim_monitor): Flush stdout and stderr file descriptors
...
after each call to sim_io_write.
2007-02-19 17:46:53 +00:00
Thiemo Seufer
07802d9880
(ColdReset): Set CP0 Config0 to reflect the address size supported
...
by this simulator.
(decode_coproc): Recognise additional CP0 Config registers
correctly.
2007-02-19 17:34:18 +00:00
Thiemo Seufer
14fb6c5a50
* cp1.c (value_fpr): Don't inherit existing FPR_STATE for
...
uninterpreted formats. If fmt is one of the uninterpreted types
don't update the FPR_STATE. Handle fmt_uninterpreted_32 like
fmt_word, and fmt_uninterpreted_64 like fmt_long.
(store_fpr): When writing an invalid odd register, set the
matching even register to fmt_unknown, not the following register.
* interp.c (sim_open): If STATE_MEM_SIZE isn't set then set it to
the the memory window at offset 0 set by --memory-size command
line option.
(sim_store_register): Handle storing 4 bytes to an 8 byte floating
point register.
(sim_fetch_register): Likewise for reading 4 bytes from an 8 byte
register.
(sim_monitor): When returning the memory size to the MIPS
application, use the value in STATE_MEM_SIZE, not an arbitrary
hardcoded value.
(cop_lw): Don' mess around with FPR_STATE, just pass
fmt_uninterpreted_32 to StoreFPR.
(cop_sw): Similarly.
(cop_ld): Pass fmt_uninterpreted_64 not fmt_uninterpreted.
(cop_sd): Similarly.
* mips.igen (not_word_value): Single version for mips32, mips64
and mips16.
2007-02-19 17:31:08 +00:00
Thiemo Seufer
c88471452a
* interp.c (MEM_SIZE): Increase default memory size from 2 to 8
...
MBytes.
2007-02-19 12:27:02 +00:00
Thiemo Seufer
4b5d35eef6
* configure.ac (mips*-sde-elf*): Move in front of generic machine
...
configuration.
* configure: Regenerate.
2007-02-17 16:36:32 +00:00
Thiemo Seufer
3669427c8e
2007-02-17 Thiemo Seufer <ths@mips.com>
...
[ sim/mips/ChangeLog ]
* configure.ac (mips*-sde-elf*, mipsisa32r2*-*-*, mipsisa64r2*-*-*):
Add mdmx to sim_igen_machine.
(mipsisa64*-*-*): Likewise. Remove dsp.
(mipsisa32*-*-*): Remove dsp.
* configure: Regenerate.
[ sim/testsuite/sim/mips/ChangeLog ]
* basic.exp: Add case for mips*-sde-elf*.
(mdmxmodels): Run mdmx tests only on mdmx capable configurations.
2007-02-17 01:26:48 +00:00
Thiemo Seufer
792fe9c928
* Makefile.in (FLAGS_TO_PASS, TARGET_FLAGS_TO_PASS): Add RUNTEST.
2007-02-16 18:13:53 +00:00
Nick Clifton
1306df90a9
* armemu.c (handle_v6_insn): Fix typo in sign extension test of the sext and sxtah instructions.
2007-02-15 10:32:06 +00:00
Thiemo Seufer
109ad08573
* configure.ac: Add mips*-sde-elf* target.
...
* configure: Regenerate.
2007-02-13 20:20:54 +00:00
Thiemo Seufer
495f536a34
* mips32-dsp.s: Run DSP testcase only for release 2 architecture.
2007-02-13 19:12:28 +00:00
Thiemo Seufer
f0a0d3b5e7
* mdmx-ob.s: Delete extraneous include.
2007-02-13 19:07:36 +00:00
Daniel Jacobowitz
8944021f76
Reported by timeless@gmail.com:
...
* gdb/target.c (target_flash_erase): Do not return void value.
(target_flash_done): Likewise.
* gdb/cli/cli-cmds.c (source_command): Likewise.
Reported by timeless@gmail.com:
* wrapper.c (sim_target_parse_arg_array): Do not return void value.
2007-02-08 16:31:57 +00:00
Mike Frysinger
cecb04b70c
2007-01-28 Manuel Lauss <slauss@resi.at>
...
* configure.ac (sh64-*-*): Change to sh64*-*-*.
(sh-*-*): Change to sh*-*-*.
* configure: Regenerated.
2007-01-29 16:41:14 +00:00
Daniel Jacobowitz
20ac050494
Add changelog entries for copyright updates.
2007-01-10 04:33:06 +00:00
Daniel Jacobowitz
6aba47ca06
Copyright updates for 2007.
2007-01-09 17:59:20 +00:00
Hans-Peter Nilsson
570ee7f0b6
* Makefile.in (autoconf-common autoheader-common): Only run
...
autoheader on subdirs with a file config.in.
2006-12-21 04:46:52 +00:00
Hans-Peter Nilsson
edc5d9ec58
* acconfig.h: Remove.
...
* config.in: Regenerate.
2006-12-21 04:43:53 +00:00
Hans-Peter Nilsson
81963b26f2
* config.in, configure: Regenerate.
2006-12-21 04:43:16 +00:00
Hans-Peter Nilsson
921d7ad333
* acconfig.h: Remove.
...
* config.in, configure: Regenerate.
2006-12-21 04:41:09 +00:00
Hans-Peter Nilsson
b1bfc0531c
* config.in: Regenerate.
2006-12-21 04:40:12 +00:00
Hans-Peter Nilsson
c4d800aeba
* configure.ac (common): Make the default "yes" for all targets
...
with sim subdirs.
* configure: Regenerate.
2006-12-21 02:37:17 +00:00
Hans-Peter Nilsson
70a9be6357
* configure.ac: Add test for readline, substitute READLINE.
...
* Makefile.in (READLINE_LIB): New substituted-contents variable.
(SIM_EXTRA_LIBDEPS): Don't set.
(SIM_EXTRA_LIBS): Use $(READLINE_LIB) instead of
../../readline/libreadline.a.
* configure: Regenerate.
2006-12-20 22:35:51 +00:00
Hans-Peter Nilsson
e80204fc86
* Makefile.in (autoconf-common autoheader-common): In documented
...
usage, say SHELL=/bin/sh.
(.PHONY): Add autoheader-common.
2006-12-20 12:35:07 +00:00
Hans-Peter Nilsson
49cbcfe9c9
* MAINTAINERS: Add self as authorized committer for *.
2006-12-20 12:34:46 +00:00
Andrew Cagney
6a58c676a9
2006-11-22 Tom Marn <tom.marn@telargo.com>
...
Committed by Andrew Cagney.
* ppc-instructions: Implement optional PowerPC stfiwx instruction.
2006-11-29 15:20:55 +00:00
Thiemo Seufer
a5e3001a40
* basic.exp: Fix spelling in comment. Use canonical form of target
...
patterns. Run DSP test only for DSP-capable ISAs. Check also mips32r2
and mips64r2 if supported by the target.
2006-11-08 12:00:11 +00:00
Thiemo Seufer
09d969392e
* gentmap.c: Fix compile time warning.
2006-11-07 19:29:59 +00:00
Thiemo Seufer
7e12978101
* sim-base.h (text_start, text_end, start_addr): Use bfd_vma type
...
for bfd text addresses.
2006-11-07 19:07:41 +00:00
Thiemo Seufer
02f97da761
* dsp.igen (do_w_op): Fix compiler warning.
2006-11-07 14:59:49 +00:00
Dave Brolley
c7e628df2e
2006-10-18 Dave Brolley <brolley@redhat.com>
...
* Contribute the following changes:
2006-06-14 Dave Brolley <brolley@redhat.com>
* sh64-sim.h (sh64_fipr,sh64_fiprs,sh64_fldp,sh64_fstp,sh64_ftrv)
(sh64_fpref): New functions.
* sh64.c (sh64_fipr,sh64_fiprs,sh64_fldp,sh64_fstp,sh64_ftrv)
(sh64_fpref): New functions.
(sh_models): Add sh2e, sh2a, sh2a_nofpu, sh4_nofpu, sh4a,
sh4a_nofpu and sh4al.
(sh2e_mach): New MACH.
(sh2a_fpu_mach): New MACH.
(sh2a_nofpu_mach): New MACH.
(sh4_nofpu): New MACH.
(sh4a_mach): New MACH.
(sh4a_nofpu_mach): New MACH.
(sh4al_mach): New MACH.
* Makefile.in (stamp-*): Depend on $(CGEN_CPU_DIR)/sh-sim.cpu. Pass
archfile to CGEN script.
* arch.c: Regenerated.
* arch.h: Regenerated.
* cpu.c: Regenerated.
* cpu.h: Regenerated.
* cpuall.h: Regenerated.
* decode-compact.c: Regenerated.
* decode-compact.h: Regenerated.
* decode-media.c: Regenerated.
* decode-media.h: Regenerated.
* defs-compact.h: Regenerated.
* defs-media.h: Regenerated.
* sem-compact-switch.c: Regenerated.
* sem-compact.c: Regenerated.
* sem-media-switch.c: Regenerated.
* sem-media.c: Regenerated.
* sh-desc.c: Regenerated.
* sh-desc.h: Regenerated.
* sh-opc.h: Regenerated.
2006-10-18 18:13:22 +00:00
Hans-Peter Nilsson
466b1d3308
* cris/cris-sim.h (enum cris_unknown_syscall_action_type)
...
(cris_unknown_syscall_action): Declare.
* cris/sim-if.c (cris_unknown_syscall_action): Define.
(cris_options): Add cris-unknown-syscall option.
(cris_option_handler): Correct comment about and error message for
invalid --cris-cycles argument. Handle --cris-unknown-syscall.
* cris/traps.c: Include stdarg.h
(cris_unknown_syscall): New function.
(cris_break_13_handler): Instead of sim_io_eprintf and
sim_engine_halt, call cris_unknown_syscall to handle more or less
unknown syscalls. Adjust code as necessary to handle return
value.
2006-10-02 03:21:28 +00:00
Hans-Peter Nilsson
1654a6f728
* sim/cris/c/clone5.c, sim/cris/c/mprotect1.c,
...
sim/cris/c/rtsigprocmask1.c, sim/cris/c/rtsigsuspend1.c,
sim/cris/c/sig7.c, sim/cris/c/sigreturn1.c,
sim/cris/c/sigreturn2.c, sim/cris/c/syscall1.c,
sim/cris/c/syscall2.c, sim/cris/c/sysctl2.c, sim/cris/c/fcntl1.c,
sim/cris/c/readlink2.c: Add code to print ENOSYS if syscall being
tested returns ENOSYS. Add early exit where needed. Change any
existing code to print "xyzzy", not "pass".
* sim/cris/asm/option3.ms, sim/cris/asm/option4.ms,
sim/cris/c/clone6.c, sim/cris/c/fcntl2.c,
sim/cris/c/mprotect2.c, sim/cris/c/readlink11.c,
sim/cris/c/rtsigprocmask2.c, sim/cris/c/rtsigsuspend2.c,
sim/cris/c/sig13.c, sim/cris/c/sigreturn3.c,
sim/cris/c/sigreturn4.c, sim/cris/c/syscall3.c,
sim/cris/c/syscall4.c, sim/cris/c/syscall5.c,
sim/cris/c/syscall6.c, sim/cris/c/syscall7.c,
sim/cris/c/syscall8.c, sim/cris/c/sysctl3.c: New tests.
2006-10-02 03:18:51 +00:00
Daniel Jacobowitz
bac25e5b7a
* MAINTAINERS: Add Dave Brolley for sh64.
2006-10-01 04:00:30 +00:00
Hans-Peter Nilsson
eccd787e25
* cris/traps.c (TARGET_PIPE_BUF): New macro.
...
(cris_pipe_empty): Correct initialization of "remaining". Only
adjust the "write" return value if more than TARGET_PIPE_BUF bytes
are written.
2006-09-30 02:38:06 +00:00
Hans-Peter Nilsson
539a52558f
* sim/cris/c/pipe2.c: Adjust expected output.
...
(process): Don't write as much to the pipe as to trig the
inordinate-amount test in the sim pipe machinery. Correct test of
write return-value; check only that pipemax bytes were
successfully written. For error-case, emit strerror as well.
(main): Add a second read.
2006-09-30 02:34:43 +00:00
Hans-Peter Nilsson
3ca4d560ef
* cris/configure.ac: Check for limits.h and sys/param.h.
...
* cris/configure, cris/config.in: Rebuild.
* cris/traps.c (SIM_PATHMAX): New macro.
(cris_break_13_handler): Use SIM_PATHMAX, not MAXPATHLEN.
2006-09-29 02:45:48 +00:00
Thiemo Seufer
3ae2e9a36f
* sim-fpu.c (pack_fpu): Handle QUIET_NAN correctly for
...
SIM_QUIET_NAN_NEGATED.
2006-08-29 13:18:27 +00:00
Thiemo Seufer
41ec9f205e
* sim-profile.c (profile_pc_init): Initialise default profiling
...
frequency to a prime number.
(profile_print_pc): Convert gmon.out sample data into target
byte order.
2006-08-29 13:16:19 +00:00
Thiemo Seufer
2d2733fc96
* configure.ac (mipsisa32r2*-*-*, mipsisa32*-*-*): Add smartmips to
...
sim_igen_machine.
* configure: Regenerate.
* mips.igen (model): Add smartmips.
(MADDU): Increment ACX if carry.
(do_mult): Clear ACX.
(ROR,RORV): Add smartmips.
(include): Include smartmips.igen.
* sim-main.h (ACX): Set to REGISTERS[89].
* smartmips.igen: New file.
2006-08-29 12:45:26 +00:00
Thiemo Seufer
d85c3a10ae
* Makefile.in (IGEN_INCLUDE): Add missing includes for m16e.igen and
...
mips3264r2.igen. Add missing dependency rules.
* m16e.igen: Support for mips16e save/restore instructions.
2006-08-29 12:38:45 +00:00
Thiemo Seufer
6b637da758
* testutils.inc (setup): __start is also a valid start symbol.
2006-08-29 12:18:43 +00:00
Thiemo Seufer
afddf9e98c
Add myself as mips maintainer.
2006-08-25 18:06:21 +00:00
Daniel Jacobowitz
ce928021ab
gdb/
...
* config/sparc/embed.mt: New file.
* configure.tgt (sparc-*-rtems*): Use embed.mt.
sim/
* configure.ac (sparc-*-rtems*|sparc-*-elf*): Enable erc32 simulator.
* Makefile.in (FLAGS_TO_PASS): Include libdir.
* configure: Regenerated.
sim/erc32/
* Makefile.in (func.o, help.o): Correct dependencies.
* Makefile.in (install-sis): Honor DESTDIR.
2006-08-08 18:57:25 +00:00
Yoshinori Sato
b86015eaa5
compile.c (OBITOP): Bit address mask low three bit.
...
compile.c (decode): Fix warning.
2006-07-19 06:27:04 +00:00
Fred Fish
08f7d065a6
Patch reviewed and approved by Daniel Jacobowitz <drow@false.org>.
...
2006-07-12 Fred Fish <fnf@specifix.com>
* sim-endian.h (asm/byteorder.h): Don't include private kernel
header.
2006-07-12 21:37:21 +00:00
DJ Delorie
f4f21c206a
* r8c.opc (decode_r8c): Don't bother reading the destination
...
before moving a constant into it. Fix borrow comparison for SUB.
2006-06-26 20:31:43 +00:00
Richard Earnshaw
e85e320515
* common/aclocal.m4: Pass ../../intl to ZW_GNU_GETTEXT_SISTER_DIR.
...
* common/common.m4: Likewise.
* */configure: Regenerate.
2006-06-13 08:06:50 +00:00
Daniel Jacobowitz
2f0122dcdf
common/
...
* aclocal.m4: Use ZW_GNU_GETTEXT_SISTER_DIR.
most subdirs/
* configure: Regenerated.
2006-06-05 14:21:13 +00:00
Daniel Jacobowitz
20e95c23ab
Configury changes: update src repository (binutils, gdb, and rda) to use
...
config/gettext-sister.m4 instead of the old gettext.m4. Regenerate all
affected autotools files. Include intl in gdb releases again.
2006-05-31 15:14:46 +00:00
Chao-ying Fu
dc6641a558
* mips32-dsp.s: Add some tests for shra_r.ph, shrav_r.ph, shra_r.w,
...
shrav_r.w.
2006-05-15 20:34:56 +00:00
Chao-ying Fu
69088b1706
* dsp.igen (do_ph_shift, do_w_shra): Fix bugs for rounding instructions.
2006-05-15 20:34:18 +00:00
Andreas Schwab
4b164edfca
sim/:
...
* configure.ac (CFLAGS_FOR_BUILD): Set and substitute.
* configure: Regenerate.
* Makefile.in (CFLAGS_FOR_BUILD): Define.
(CC_FOR_BUILD): Don't override.
(FLAGS_TO_PASS): Pass CFLAGS_FOR_BUILD.
sim/ppc/:
* configure.ac (CFLAGS_FOR_BUILD): Set and substitute.
* configure: Regenerate.
* Makefile.in (CFLAGS_FOR_BUILD): Define.
(BUILD_CFLAGS): Use it instead of hardcoding "-g -O".
(gentmap): Fix typo BUILD_FLAGS -> BUILD_CFLAGS.
2006-05-05 17:11:19 +00:00
Daniel Jacobowitz
8b2f7496cc
* MAINTAINERS: Add an "Authorized committers" section, and list
...
DJ Delorie for v850.
2006-05-04 15:39:19 +00:00
Andreas Schwab
d8006e0592
* Makefile.in (tmp-ld-decode): Fix dependencies.
...
(tmp-ld-cache): Likewise.
(tmp-ld-insn): Likewise.
2006-04-23 14:54:42 +00:00
Nick Clifton
0275de4ee1
* dv-tx3904tmr.c (deliver_tx3904tmr_tick): Add missing break statement.
2006-04-18 09:19:28 +00:00
Nick Clifton
9517c9780f
ooops - omitted from previous delta
2006-04-18 09:16:01 +00:00
Nick Clifton
95bd752a6c
* interp.c (sim_stop_reason): Fix typo.
2006-04-18 09:15:29 +00:00
Hans-Peter Nilsson
5cf3f6e292
* cris/crisv32f.c (MY (deliver_interrupt)): Set CCS to new_ccs.
2006-04-08 17:37:56 +00:00
Hans-Peter Nilsson
c466736ab1
* sim/cris/hw/rv-n-cris/irq6.ms: New test.
2006-04-08 17:37:23 +00:00
Hans-Peter Nilsson
26d01138dd
* sim/cris/hw: New directory for subdirectories with tests.
...
* sim/cris/hw/rv-n-cris: New directory with tests.
2006-04-03 03:05:00 +00:00
Hans-Peter Nilsson
aad3b3cbc1
* cris/dv-cris.c, cris/dv-rv.c, cris/rvdummy.c: New files.
...
* cris/Makefile.in (CONFIG_DEVICES): Remove redundant setting.
(dv-cris.o, dv-rv.o rvdummy$(EXEEXT), rvdummy.o): New rules.
(all): Depend on rvdummy$(EXEEXT).
* cris/configure.ac: Call SIM_AC_OPTION_WARNINGS. Check for
sys/socket.h and sys/select.h. Call SIM_AC_OPTION_HARDWARE,
default off.
* cris/configure: Regenerate.
* cris/cris-sim.h (cris_have_900000xxif): Declare here.
(enum cris_interrupt_type, crisv10deliver_interrupt)
(crisv32deliver_interrupt: New declarations.
* cris/cris-tmpl.c [WITH_HW] (MY (f_model_insn_after)): Call
sim_events_tickn and set state-events member work_pending when it's
time for the next event.
[WITH_HW] (MY (f_specific_init)): Set CPU-model-specific
interrupt-delivery function.
* cris/crisv10f.c (MY (deliver_interrupt)): New function.
* cris/crisv32f.c (MY (deliver_interrupt)): New function.
* cris/devices.c: Include hw-device.h.
(device_io_read_buffer) [WITH_HW]: Call hw_io_read_buffer.
(device_io_write_buffer): Only perform 0x900000xx-functions if
cris_have_900000xxif is nonzero. Else if WITH_HW defined,
call hw_io_write_buffer. Add return 0 last in function.
* cris/sim-if.c (cris_have_900000xxif): Now global.
(sim_open) [WITH_HW]: Clear deliver_interrupt cpu member.
Force "-model" option, effectively.
* cris/sim-main.h (cris_interrupt_delivery_fn): New type.
(struct _sim_cpu) [WITH_HW]: New member deliver_interrupt.
2006-04-03 03:01:45 +00:00
Hans-Peter Nilsson
530d581366
* cris/Makefile.in (CRISV10F_OBJS): Remove semcrisv10f-switch.o.
...
(CRISV32F_OBJS): Remove semcrisv32f-switch.o.
(semcrisv10f-switch.o, semcrisv32f-switch.o: Remove dependency rules.
2006-04-02 12:46:42 +00:00
Hans-Peter Nilsson
ef6affe12f
* sim/cris/asm/testutils.inc (test_h_mem): Use register prefix.
...
(testr_h_dr, test_h_dr, ldmem_h_gr, mvr_h_mem): Ditto. Correct
syntax.
2006-04-02 11:43:44 +00:00
Hans-Peter Nilsson
4369b6eb6e
* sim/cris/asm/x0-v10.ms, sim/cris/asm/x0-v32.ms: Widen regexp for
...
stack pointer values.
2006-04-02 11:31:41 +00:00
Hans-Peter Nilsson
b3a3ffefce
* configure: Regenerate.
2006-03-29 03:42:03 +00:00
Hans-Peter Nilsson
ea696909f3
* aclocal.m4 (SIM_AC_OPTION_HARDWARE): Correct duplicate-
...
option-contents test.
2006-03-29 03:40:25 +00:00
DJ Delorie
727b6b4b41
* mem.c (mem_put_byte): Hook simulated UART to stdout.
...
(mem_put_hi): Hook in simulated trace port.
(mem_get_byte): Hook in simulated uart control port.
* opc2c: Be more picky about matching special comments.
* r8c.opc (shift_op): Limit shift counts to -16..16.
(BMcnd): Map conditional codes.
* reg.c (condition_true): Mask condition code to 4 bits.
* syscalls.c: Include local syscall.h.
* syscall.h: New, copied from libgloss.
2006-03-14 03:34:28 +00:00
DJ Delorie
1f810f7808
* MAINTAINERS: Add self as m32c sim maintainer.
2006-03-14 02:37:35 +00:00
Paul Brook
4b1d9c5854
2006-03-07 Paul Brook <paul@codesourcery.com>
...
* elfos.c (ARMul_OSHandleSWI): Call correct function for IsTTY.
2006-03-07 19:55:55 +00:00