aboutsummaryrefslogtreecommitdiff
path: root/sim/h8300/compile.c
AgeCommit message (Collapse)AuthorFilesLines
2012-05-19 PR 14072Nick Clifton1-0/+1
* wrapper.c: Include config.h before system header files. * callback.c: Include config.h before system header files. * cgen-trace.c: Likewise. * cgen-utils.c: Likewise. * gentmap.c: Likewise. * sim-if.c: Include config.h before system header files. * compile.c: Include config.h before system header files. * sim-main.h: Likewise. * gdb-if.c: Include config.h before system header files. * load.c: Likewise. * syscalls.c: Likewise. * trace.c: Likewise. * interp.c: Include config.h before system header files.
2011-07-05sim: start a unified sim_do_commandMike Frysinger1-7/+0
Since sim_do_command for many people simply calls sim_args_command, start a unified version of it. For people who handle their own options, they could switch to this by using sim_add_option_table instead. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-01-11http://sourceware.org/ml/gdb-patches/2010-11/msg00112.htmlAndrew Burgess1-1/+1
gdb/ChangeLog * remote-sim.c (gdbsim_store_register): Update API to sim_store_register to check more error conditions. include/gdb/ChangeLog * remote-sim.h (sim_store_register): Update the API documentation for this function. sim/erc32/ChangeLog sim/h8300/ChangeLog sim/m32c/ChangeLog sim/mn10300/ChangeLog sim/ppc/ChangeLog sim/rx/ChangeLog sim/v850/ChangeLog * ???.c (sim_store_register): Update return value to match new API.
2010-04-14sim: constify sim_write source buffer (part 2)Mike Frysinger1-1/+1
As pointed out by Sandra Loosemore, a bunch of targets define sim_write themselves instead of using the common/ code. So constify them too. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-12-092009-12-09 Yoshinori Sato <ysato@users.sourceforge.jp>Yoshinori Sato1-42/+36
* compile.c(fetch_1): Fix pre-dec, pre-inc, post-dec and post-inc. Index registers not masked memory areas. Only simply increment or decrement. * compile.c(store_1): Ditto.
2008-12-012008-12-01 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill1-2/+2
* compile.c: Add const to remove warning.
2007-07-032007-07-03 Yoshinori Sato <ysato@users.sourceforge.jp>Daniel Jacobowitz1-1/+1
* compile.c (sim_resume): Fix the last byte of ARGV for SYS_CMDLINE.
2006-07-19compile.c (OBITOP): Bit address mask low three bit.Yoshinori Sato1-3/+3
compile.c (decode): Fix warning.
2004-06-28sim/h8300/ChangeLog:Alexandre Oliva1-55/+9
2003-07-23 Richard Sandiford <rsandifo@redhat.com> * compile.c (sim_resume): Make sure that dst.reg refers to the right register byte in mova/sz.l @(dd,RnL),ERn. 2003-07-21 Richard Sandiford <rsandifo@redhat.com> * compile.c (sim_resume): Zero-extend immediate to muls, mulsu, mulxs, divs and divxs. sim/testsuite/sim/h8300/ChangeLog: 2003-07-22 Michael Snyder <msnyder@redhat.com> * mul.s: Don't try to use negative immediate (it's always unsigned). * div.s: Ditto.
2004-06-28* compile.c (sim_load): Update sd->memory_size.Alexandre Oliva1-0/+1
2004-06-102004-06-10 Michael Snyder <msnyder@redhat.com>Michael Snyder1-1/+1
Patch submitted by Nitin Yewale <NitinY@KPITCummins.com>. * compile.c (sim_resume): Corrected ANDC operation on EXR for H8S.
2004-01-062004-01-05 Michael Snyder <msnyder@redhat.com>Michael Snyder1-1/+1
* compile.c (sim_load): Don't pass a type to bfd_openr.
2003-12-11 Fix GDB crash problem when object file of different H8 cpu is loadedDhananjay Deshpande1-0/+2
2003-10-172003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>Shrinivas Atre1-45/+67
* h8300/compile.c : Addition of extern variable h8300_normal_mode (SP) : Handle normal mode (bitfrom) : Use normal mode flag to return suitable value (lvalue) : Use normal mode flag to return command line location (decode) : Decode instruction correctly for normal mode (init_pointers) : Initialise memory correctly for normal mode (sim_resume) : Handle cases for normal mode using h8300_normal_mode flag (sim_store_register) : Handle 2 byte PC for normal mode (sim_fetch_register) : Handle 2 byte PC for normal mode (set_h8300h) : Set normal mode flag as per architechture (sim_load) : Allocate 64K for normal mode instead of bigger memory
2003-07-292003-07-18 Michael Snyder <msnyder@redhat.com>Michael Snyder1-36/+97
* compile.c (decode): Enhancements for mova. Initialize cst, reg, and rdisp inside the loop, for each new instruction. Defer correction of the disp2 values until later, and then adjust them by the size of the first operand, rather than the size of the instruction. (sim_resume): For mova, adjust the size of the second operand according to the type of the first operand (INDEXB vs. INDEXW). In cases where there is only one operand, the other two must both be composed on the fly.
2003-07-222003-07-22 Michael Snyder <msnyder@redhat.com>Michael Snyder1-0/+2
* compile.c (sim_resume): Revert 6-24 change, it does not work with gdb breakpoints.
2003-07-182003-07-17 Michael Snyder <msnyder@redhat.com>Michael Snyder1-9/+9
* compile.c (sim_resume): Handle shll reg, reg and shlr reg, reg.
2003-07-182003-07-17 Michael Snyder <msnyder@redhat.com>Michael Snyder1-1/+3
* compile.c (decode): IMM16 is always zero-extended.
2003-07-022003-06-24 Michael Snyder <msnyder@redhat.com>Michael Snyder1-0/+6
* sim-main.h (SIM_WIFSTOPPED, SIM_WSTOPSIG): Define. * compile.c (sim_resume): Use the above to return stop signal.
2003-06-192003-06-18 Michael Snyder <msnyder@redhat.com>Michael Snyder1-89/+153
* compile.c: Replace "Hitachi" with "Renesas". (decode): Distinguish AV_H8S from AV_H8H. (sim_resume): H8SX can use any register for TAS. (decode): Add support for VECIND. (sim_resume): Implement rte/l and rts/l. (GETSR): New macro (actually old macro reincarnated). (decode): Add handling for IMM2. (sim_resume): Drop extra block around jmp, jsr, rts. Add handling for trapa and rte. For divxu.b, change 0xffff mask to 0xff. (set_h8300h): Add bfd_mach_h8300sxn machine.
2003-06-192003-06-05 Michael Snyder <msnyder@redhat.com>Michael Snyder1-5/+27
* compile.c (sim_fetch_register): Handle SBR, VBR, MACH, MACL. (sim_store_register): Ditto.
2003-06-052003-06-04 Michael Snyder <msnyder@redhat.com>Michael Snyder1-12/+10
* compile.c (sim_info): Fix typo in output. * h8300/compile.c (set_h8300h): Replace 'flag' arguments with a bfd_machine argument, and decode it inline. Check for bfd_mach_h8300hn and bfd_mach_h8300sn.
2003-06-042003-06-04 Michael Snyder <msnyder@redhat.com>Michael Snyder1-1/+1
* compile.c (sim_info): Fix typo in output.
2003-06-032003-06-03 Michael Snyder <msnyder@redhat.com>Michael Snyder1-1018/+3210
* h8300/compile.c: Add h8300sx insns and addressing modes. * h8300/sim-main.h: Replaces h8300/inst.h. * h8300/Makefile.in: Tweak to bring in some sim/common stuff.
2003-04-132003-04-13 Michael Snyder <msnyder@redhat.com>Michael Snyder1-0/+51
* compile.c (sim_resume): Implement 'daa' and 'das' instructions.
2003-03-20Added Commandline Support.D.Venkatasubramanian1-0/+198
2003-03-20 D.Venkatasubramanian <dvenkat@noida.hcltech.com> * compile.c (cmdline_location): Added function to return the location of 8-bit (256 locations) where the Command Line arguments would be stored. (decode): Added a TRAP to 0xcc for Commandline processing using pseudo opcode O_SYS_CMDLINE. (sim_resume): Added handling of O_SYS_CMDLINE Trap. (sim_create_inferior): Setting a pointer to Commandline Args array. * inst.h: Added a new variable ptr_command_line for storing pointer to Commandline array.
2003-03-14File I/O Support added.D.Venkatasubramanian1-6/+307
2003-03-14 D.Venkatasubramanian <dvenkat@noida.hcltech.com> * compile.c (decode): Added code for some more magic traps. * compile.c (sim_resume): Added support for File I/O system calls through callback to host_system. System calls provided support for : open, read, write, lseek, close, stat, fstat Only basic support for stat and fstat.
2003-02-27Index: arm/ChangeLogAndrew Cagney1-2/+2
2003-02-27 Andrew Cagney <cagney@redhat.com> * wrapper.c (sim_create_inferior, sim_open): Rename _bfd to bfd. Index: common/ChangeLog 2003-02-27 Andrew Cagney <cagney@redhat.com> * sim-utils.h (sim_analyze_program, sim_load_file): Rename _bfd to bfd. * sim-hload.c (sim_load), sim-base.h (sim_state_base): Ditto. * nrun.c (main): Ditto. Index: d10v/ChangeLog 2003-02-27 Andrew Cagney <cagney@redhat.com> * interp.c (sim_open, sim_create_inferior): Rename _bfd to bfd. Index: erc32/ChangeLog 2003-02-27 Andrew Cagney <cagney@redhat.com> * interf.c (sim_open, sim_create_inferior): Rename _bfd to bfd. Index: h8300/ChangeLog 2003-02-27 Andrew Cagney <cagney@redhat.com> * compile.c (sim_open, sim_create_inferior): Rename _bfd to bfd. Index: h8500/ChangeLog 2003-02-27 Andrew Cagney <cagney@redhat.com> * compile.c (sim_open, sim_create_inferior): Rename _bfd to bfd. Index: i960/ChangeLog 2003-02-27 Andrew Cagney <cagney@redhat.com> * sim-if.c (sim_open, sim_create_inferior): Rename _bfd to bfd. Index: m32r/ChangeLog 2003-02-27 Andrew Cagney <cagney@redhat.com> * sim-if.c (sim_open, sim_create_inferior): Rename _bfd to bfd. Index: m68hc11/ChangeLog 2003-02-27 Andrew Cagney <cagney@redhat.com> * interp.c (sim_prepare_for_program, sim_open) (sim_create_inferior): Rename _bfd to bfd. Index: mcore/ChangeLog 2003-02-27 Andrew Cagney <cagney@redhat.com> * interp.c (sim_open, sim_create_inferior): Rename _bfd to bfd. Index: mips/ChangeLog 2003-02-27 Andrew Cagney <cagney@redhat.com> * interp.c (sim_open): (sim_create_inferior): Index: mn10200/ChangeLog 2003-02-27 Andrew Cagney <cagney@redhat.com> * interp.c (sim_open, sim_create_inferior): Rename _bfd to bfd. Index: mn10300/ChangeLog 2003-02-27 Andrew Cagney <cagney@redhat.com> * interp.c (sim_open, sim_create_inferior, sim_open) (sim_create_inferior): Rename _bfd to bfd. Index: ppc/ChangeLog 2003-02-27 Andrew Cagney <cagney@redhat.com> * sim_calls.c (sim_open, sim_create_inferior): Rename _bfd to bfd. Index: sh/ChangeLog 2003-02-27 Andrew Cagney <cagney@redhat.com> * interp.c (init_dsp, sim_open, sim_create_inferior): Rename _bfd to bfd. Index: v850/ChangeLog 2003-02-27 Andrew Cagney <cagney@redhat.com> * interp.c (sim_open, sim_create_inferior): Rename _bfd to bfd. Index: z8k/ChangeLog 2003-02-27 Andrew Cagney <cagney@redhat.com> * iface.c (sim_open, sim_create_inferior): Rename _bfd to bfd.
2003-02-05 * compile.c (init_pointers): Abort if wreg never gets initialized.Kazu Hirata1-2/+5
(sim_resume): Fix the handling of exts.w and extu.w.
2003-02-01 * compile.c (sim_resume): Fix the handling of bxor.Kazu Hirata1-1/+1
2003-01-16Missed one...Michael Snyder1-2/+1
2003-01-162003-01-16 Michael Snyder <msnyder@redhat.com>Michael Snyder1-85/+32
* compile.c: Change K&R function definitions to ISO. (fetch): Make static, and eliminate unused parameter 'n'.
2002-12-26 * compile.c: Fix formatting.Kazu Hirata1-35/+42
* inst.h: Likewise.
2002-07-29Add dependences to Makefile.in and include sim-h8300 in compile.cAndrey Volkov1-0/+1
2002-06-09Move include/callback.h and include/remote-sim.h to include/gdb/.Andrew Cagney1-2/+2
Update accordingly.
2002-05-19 * compile.c: Fix formatting.Kazu Hirata1-45/+45
2002-05-18 * compile.c: Fix formatting.Kazu Hirata1-94/+94
2002-05-17* compile.c: Add absented opcodes: LDC, STC, EEPMOV, TAS.Andrey Volkov1-23/+88
2002-05-17h8300: Add support of EXR registerAndrey Volkov1-5/+71
2002-05-17* h8300s now new target, not alias of h8300hAndrey Volkov1-7/+13
2002-05-17*compile.c: Add additional CCR flags (I,UI,H,U)Andrey Volkov1-3/+12
2002-05-17* compile.c: Change literal regnumbers to REGNUMS.Andrey Volkov1-13/+14
2001-12-20 * compile.c: Fix formatting.Kazu Hirata1-22/+25
2001-12-20 * compile.c: Fix comment typos.Kazu Hirata1-22/+21
2000-08-112000-08-10 Kazu Hirata <kazu@hxi.com>Kazu Hirata1-8/+6
* compile.c (decode): Clean up the code.
2000-07-27* compile.c (decode): Distinguish inc/dec.[wl] and adds/subsAndrew Cagney1-1/+6
correctly.
2000-06-20* build fixFrank Ch. Eigler1-21/+5
2000-06-20 Frank Ch. Eigler <fche@redhat.com> * compile.c: Don't include "wait.h". (sim_resume): Use local SIM_WIFEXITED and SIM_WIFSIGNALED macros instead of WIF* from host.
2000-06-13* "Dont" -> "Don't"Frank Ch. Eigler1-1/+1
2000-06-13 Frank Ch. Eigler <fche@redhat.com> * compile.c, writecode.c: Correct typo.
2000-06-132000-06-13 Kazu Hirata <kazu@hxi.com>Jeff Law1-47/+32
* compile.c: Fix formatting.
1999-04-26import gdb-19990422 snapshotStan Shebs1-1/+5