3 * simops.c (trace_output): Properly align accumulator output.
4 (OP_3{0,2,4}00): Properly parenthesize test expression. Add error
5 if shift count is too high.
6 (OP_4E{00,02,04,20,22,40,42}): Make tests agree with book.
7 (OP_4E09): Make cpfg properly trace the input flags.
8 (op_types): Add OP_FLAG_OUTPUT.
9 (trace_{input,output}): Support OP_FLAG_OUTPUT.
13 * simops.c (OP_2600, OP_2601): Changed min and max comparisons
14 to use signed register values.
18 * d10v_sim.h (DEBUG_*): Add bit flags for controlling debug
20 (_ins_type): New enumeration to specify which container an
21 instruction is in, and whether it is part of a parallel operation.
22 (_state): Add ins_type field.
23 ({,u}int{8,16,32,64}): Use limits.h to size the appropriate types.
24 (ins_type_counters): Counters for the various instruction types.
25 ({left,right}_nops): Counters for the number of nops in each
27 (d10v_debug): New variable to indicate whether debugging is turned
30 * simops.c: (all functions): Change all #ifdef DEBUG code so that
31 the input and output values can be traced, along with the
32 instruction type. Make the -t option enable tracing.
33 (all functions): Change printf calls to use the printf_filtered
34 function in the callback table.
36 * interp.c (_leftright): New enumeration to say whether 2 short
37 instructions are done left first or right first.
38 (do_{long,2_short,parallel}): Indicate in the machine state which
39 type of instruction this is. Count each of the types of
40 instructions executed.
41 (sim_size): Only print the memory sizes if DEBUG_MEMSIZE debug
43 (sim_resume): Pass left/right indication to do_2_short.
44 (all functions): Change printf calls to use the printf_filtered
45 function in the callback table.
46 (sim_trace): Turn on debug flag if DEBUG was defined, and call
48 (sim_info): Print out statistics on instructions.
49 (sim_{trace,create_inferior}): Eliminate extraneous output unless
51 (sim_open): If args == -t and DEBUG was defined, set d10v_debug.
52 Only initialize the hash table the first time sim_open is called.
54 * Makefile.in: Make objects depend on d10v_sim.h.
55 ({,SIM_}CFLAGS): Include configure dependent switches. Setting
56 CFLAGS does not override host/target defines or SIM_CFLAGS.
57 (CC_FOR_BUILD,gencode): Use CC_FOR_BUILD to compile gencode.
58 (run): By default, the math library is not needed to be linked
60 ({BFD,LIBIBERTY}_LIB): Define as variables so they can be
62 (VPATH): Don't set to anything but @srcdir@ to work with non-GNU
64 ({run,callback}.o): Provide explicit paths to their appropriate
66 (gencode{,.o},d10v-opc.o): Split compilation into creating object
67 and linking. Instead of linking in libopcodes.a, just compile
68 d10v-opc.o directly to handle canadian cross.
69 (CSEARCH): Add opcodes directory.
71 * configure.in (--enable-sim-cflags): New switch to allow user to
73 (CC_FOR_BUILD): Deal with canadian crosses.
74 * configure: Regenerate.
78 * simops.c: Include correct syscall.h for d10v, not host's.
83 * simops.c (OP_5F00): Wrap all SYS_xxx traps with #ifdef.
84 Add trap 2 to be printf and trap 3 to be putchar.
88 * Makefile.in, d10v_sim.h, interp.c, simops.c: Add support
89 for low-level system calls.
93 * Makefile.in, d10v_sim.h, interp.c: Fix byte-order problems.
97 * d10v_sim.h (SEXT32): Added.
98 * interp.c: Commented out printfs.
99 * simops.c: Fixed error in sb and st2w.
103 * Makefile.in, d10v_sim.h, interp.c, simops.c: Added remaining
104 DSP instructions. Added modulo addressing.
108 * Makefile.in, d10v_sim.h, interp.c, simops.c: Snapshot.
112 * d10v_sim.h, simops.c: Snapshot.
116 * ChangeLog, Makefile.in, configure, configure.in, d10v_sim.h,
117 gencode.c, interp.c, simops.c: Created.