aboutsummaryrefslogtreecommitdiff
path: root/sim/mn10300
AgeCommit message (Collapse)AuthorFilesLines
1997-04-02 * interp.c (sim_open): New arg `kind'.David Edelsohn1-0/+2
1997-04-02 * aclocal.m4: Check for stdlib.h, string.h, strings.h, unistd.h.David Edelsohn2-132/+281
(sim-debug): Allow arguments. Define WITH_DEBUG in addition to -DDEBUG. * configure: Regenerated to track ../common/aclocal.m4 changes.
1997-04-02New file common/sim-config.c sets/checks simulator configuration options.Andrew Cagney2-46/+44
Update common/aclocal.m4 to better work with sim-config.[hc].
1997-03-20 * simops.c: Fix register extraction for a two "movbu" variants.Jeff Law1-30/+75
Somewhat simplify "sub" instructions. Correctly sign extend operands for "mul". Put the correct half of the result in MDR for "mul" and "mulu". Implement remaining instructions. Tweak opcode for "syscall".
1997-03-18 * simops.c: Do syscall emulation in "syscall" instruction. AddJeff Law1-0/+7
dummy "trap" instruction. Cleanups for the beta release.
1997-03-18Move SIM_AC_OPTION_ macros out of SIM_AC_COMMON macro - was trashingAndrew Cagney1-0/+4
optional arguments. * Regenerate all configure scripts.
1997-03-17 * configure: Re-generate.Andrew Cagney2-191/+124
* Make-common.in (CSEARCH): Do not include the gdb directory in the search path. * Make-common.in (SIM_ENDIAN, SIM_HOSTENDIAN, SIM_INLINE, SIM_WARNING): Drop, requiring the simulator specific Makefile.in to explicitly incorporate these. * aclocal.m4 (--enable-sim-alignment); New option. Strongly specify the alignment restrictions of the target architecture - without this option all alignment restrictions are accomodated. (--enable-sim-assert): New option. Conditionally compile in assertion statements. (--enable-sim-float): New option. Strongly specify the target's floating point support. (--enable-sim-hardware): New option. Specify the hardware devices included in the simulation. (--enable-sim-packages): New option. Specify the hardware packages included in the simulation. (--enable-sim-regparm): New option. Specify that parameters be passed in registers instead of on the stack. (--enable-sim-reserved-bits): New option. Specify that reserved bits within an instruction are are correctly set. (--enable-sim-smp): New option. Specify the level of SMP support to be included in the simulator. (--enable-sim-stdcall): New option. Specify an alternative function call convention. (--enable-sim-xor-endian): New option. Configure xor-endian support used by some targets to implement bi-endian support.
1997-03-14Regenerate simulator configure scripts; Remove d10v traps 1-3, Make 15 the ↵Michael Meissner2-302/+63
system call trap, keeping 0 temporarily
1997-03-13 * interp.c (sim_open): New SIM_DESC result. Argument is nowDavid Edelsohn1-0/+6
in argv form. (other sim_*): New SIM_DESC argument.
1997-03-12 * simops.c: Fix carry bit computation for "add" instructions.Jeff Law2-11/+13
More bugs exposed by new mn10300 compiler optimizations.
1997-03-12 * simops.c: Fix typos in bset insns. Fix arguments to store_memJeff Law2-5/+24
for bset imm8,(d8,an) and bclr imm8,(d8,an). Bugs exposed by new compiler optimizations.
1997-03-05 * simops.c: Fix register references when computing Z and N bitsJeff Law1-3/+3
for lsr imm8,dn. Bug exposed by c-torture testing of the mn10300.
1997-02-04 * Makefile.in (@COMMON_MAKEFILE_FRAG): UseDavid Edelsohn1-1/+2
COMMON_{PRE,POST}_CONFIG_FRAG instead. * configure.in: sinclude ../common/aclocal.m4. * configure: Regenerated.
1997-01-24 * ../common/aclocal.m4 (COMMON_MAKEFILE_FRAG): Quote a couple of $'s inStu Grossman1-2/+2
comments and single quotes. Fixes a problem found on hpux.
1997-01-24 * interp.c (init_system): Allocate 2^19 bytes of space for theJeff Law1-0/+5
simulator. To match the linker.
1997-01-24 * configure: Remove targ-vals.def when doing distclean. (ChangeStu Grossman1-1/+1
is actually in ../common/aclocal.m4.)
1997-01-24 * configure: Remove Make-common.in from dependencies. (Actually inStu Grossman1-1/+1
../common/aclocal.m4).
1997-01-23 * configure configure.in Makefile.in: Update to new configureStu Grossman4-1/+1874
scheme which is more compatible with WinGDB builds. * configure.in: Improve comment on how to run autoconf. * configure: Re-run autoconf to get new ../common/aclocal.m4. * Makefile.in: Use autoconf substitution to install common makefile fragment.
1997-01-21 * simops.c: Undo last change to "rol" and "ror", original codeJeff Law2-2/+7
was correct!
1997-01-16 * simops.c: Fix "rol" and "ror".Jeff Law2-2/+10
Something I noticed while working on the mn10200.
1997-01-15 * simops.c: Fix typo in last change.Jeff Law1-1/+1
1997-01-13 * simops.c: Use REG macros in few places not using them yet.Jeff Law2-5/+9
Something I noticed while working on the mn10200 simulator.
1997-01-06 * mn10300_sim.h (struct _state): Fix number of registers!Jeff Law1-0/+4
Just something I noticed while working on the mn10200 simulator.
1996-12-31 * mn10300_sim.h (struct _state): Put all registers into a singleJeff Law3-53/+51
array to make gdb implementation easier. (REG_*): Add definitions for all registers in the state array. (SEXT32, SEXT40, SEXT44, SEXT60): Remove unused macros. * simops.c: Related changes.
1996-12-18 * interp.c (sim_resume): Handle 0xff as a single byte insn.Jeff Law2-12/+19
* simops.c: Fix overflow computation for "add" and "inc" instructions.
1996-12-16 * simops.c: Handle "break" instruction.Jeff Law2-0/+12
1996-12-16 * simops.c: Fix restoring the PC for "ret" and "retf" instructions.Jeff Law2-4/+23
1996-12-11 * gencode.c (write_opcodes): Also write out the format of theJeff Law1-3/+4
opcode. * mn10300_sim.h (simops): Add "format" field. * interp.c (sim_resume): Deal with endianness issues here.
1996-12-10 * simops.c (REG0_4): Define.Jeff Law2-8/+14
Use REG0_4 for indexed loads/stores. Fixes bugs exposed after minor codegen improvements in the compiler.
1996-12-07 * simops.c (REG0_16): Fix typo.Jeff Law2-1/+5
1996-12-07Add missing semicolons in last change.Jeff Law1-13/+13
1996-12-06 * simops.c: Call abort for any instruction that's not currentlyJeff Law2-0/+16
simulated.
1996-12-06 * simops.c: Define accessor macros to extract registerJeff Law2-368/+329
values from instructions. Use them consistently.
1996-12-06 * interp.c: Delete unused global variable "OP".Jeff Law3-31/+30
(sim_resume): Remove unused variable "opcode". * simops.c: Fix some uninitialized variable problems, add parens to fix various -Wall warnings. Fixing assorted -Wall problems.
1996-12-06Opps. Forgot something in last change.Jeff Law1-1/+1
1996-12-06 * gencode.c (write_header): Add "insn" and "extension" argumentsJeff Law5-248/+699
to the OP_* declarations. (write_template): Similarly for function templates. * interp.c (insn, extension): Remove global variables. Instead pass them as arguments to the OP_* functions. * mn10300_sim.h: Remove decls for "insn" and "extension". * simops.c (OP_*): Accept "insn" and "extension" as arguments instead of using globals. Starting to clean things up.
1996-12-06 * simops.c: Fix typos in "mov am,(d16,an)" and "mov am,(d32,an)"Jeff Law2-3/+5
Fixes remaining hangs while running c-torture execution tests. Only 12 c-torture execution failures left: * 920625-1.c fails all 6 execution tests. * 960521-1.c fails all 6 execution tests.
1996-12-06 * simops.c: Fix thinkos in last change to "inc dn".Jeff Law2-5/+11
1996-12-04 * simops.c: "add imm,sp" does not effect the condition codes.Jeff Law2-31/+20
"inc dn" does effect the condition codes. Just something I noticed.
1996-12-04 * simops.c: Treat both operands as signed values forJeff Law2-2/+13
"div" instruction. Fixes another dozen c-torture execution failures.
1996-12-04 * simops.c: Fix simulation of division instructions.Jeff Law1-12/+8
Fix typos/thinkos in several "cmp" and "sub" instructions. Another couple dozen c-torture failures fixed.
1996-12-02 * simomps.c: Fix carry bit handling in "sub" and "cmp"Jeff Law1-9/+9
instructions. Another dozen execution failures fixed.
1996-12-02 * simops.c: Fix "mov imm8,an" and "mov imm16,dn".Jeff Law2-2/+6
Fixes 80 or so c-torture execution failures. 400 to go.
1996-12-02 * simops.c: Fix overflow computation for many instructions.Jeff Law2-87/+89
Fixes several hangs in the c-torture execution tests. Also fixes about 40 failures.
1996-12-02 * simops.c: Fix "movdm, an", "movbu dm, (an)", and "movhu dm, (an)".Jeff Law2-5/+7
Along with some compiler, bfd, assembler changes this fixes 90 or so c-torture execution failures.
1996-12-02 * simops.c: Fix "mov am, dn".Jeff Law2-1/+3
Fixes more c-torture problems.
1996-12-01 * simops.c: Fix more bugs in "add imm,an" andJeff Law2-8/+13
"add imm,dn". Fixes a half-dozen (of several hundred :( c-torture failures.
1996-11-27 * simops.c: Fix bugs in "movm" and "add imm,an".Jeff Law2-17/+19
main(){write (0, "hello world\n", 13);} works!
1996-11-27 * simops.c: Don't lose the upper 24 bits of the returnJeff Law2-16/+154
pointer in "call" and "calls" instructions. Rough cut at emulated system calls.
1996-11-27 * simops.c: Implement the remaining 5, 6 and 7 byte instructions.Jeff Law2-50/+168
Everything except the extended instructions, the loop instructions, trap, rti, and rtm.