| 1 | Thu Sep 19 10:30:22 1996 Michael Meissner <meissner@tiktok.cygnus.com> |
| 2 | |
| 3 | * simops.c (SIZE_{PC,LINE_NUMBER}): New default sizes for output. |
| 4 | (trace_input_func): Use them. |
| 5 | |
| 6 | * Makefile.in (run): Add dependencies on libbfd.a and |
| 7 | libiberity.a. |
| 8 | |
| 9 | Wed Sep 18 09:13:25 1996 Michael Meissner <meissner@tiktok.cygnus.com> |
| 10 | |
| 11 | * d10v_sim.h (DEBUG_INSTRUCTION): New debug value to include line |
| 12 | numbers and function names in debug trace. |
| 13 | (DEBUG): If not defined, set to DEBUG_TRACE, DEBUG_VALUES, and |
| 14 | DEBUG_LINE_NUMBER. |
| 15 | (SIG_D10V_{STOP,EXIT}): Values to represent the stop instruction |
| 16 | and exit system call trap being executed. |
| 17 | |
| 18 | * interp.c (sim_stop_reason): Set exit code correctly for stop |
| 19 | instruction and exit system call trap. |
| 20 | |
| 21 | * configure.in (--enable-sim-cflags): Remove trace case. |
| 22 | (--enable-sim-debug): New switch to set the debug values. |
| 23 | * configure: Regenerate. |
| 24 | |
| 25 | * simops.c (trace_{input,output}_func): Rename from |
| 26 | trace_{input,output}. |
| 27 | (trace_{input,output}): Call trace_{input,output}_func if |
| 28 | d10v_debug is non-zero. |
| 29 | (SIZE_INSTRUCTION): Cut down to 8. |
| 30 | (SIZE_OPERANDS): Cut down to 18. |
| 31 | (SIZE_LOCATION): New value for size of line number, function name |
| 32 | field. |
| 33 | (init_text_p,text{,_start,_end}): New static variables for |
| 34 | printing line number and function name. |
| 35 | (exec_bfd): New external that run.c sets. |
| 36 | (trace_input_func): Print line number and function name if |
| 37 | available and if desired. |
| 38 | (OP_4E09): Don't print out DBT message. |
| 39 | (OP_5FE0): Set exception field to SIG_D10V_STOP. |
| 40 | (OP_5F00): Set exception field to SIG_D10V_EXIT. |
| 41 | |
| 42 | Sat Sep 14 22:18:43 1996 Michael Meissner <meissner@tiktok.cygnus.com> |
| 43 | |
| 44 | * interp.c (do_2_short): If the instruction encodes jump->ins, |
| 45 | don't do the second instruction if the jump succeeds. |
| 46 | |
| 47 | Fri Sep 13 22:35:19 1996 Michael Meissner <meissner@tiktok.cygnus.com> |
| 48 | |
| 49 | * simops.c (OP_5F00): Use unknown traps to print all GPRs, |
| 50 | accumulators, PC, and F0/F1/C flags. |
| 51 | |
| 52 | Thu Sep 12 12:50:11 1996 Mark Alexander <marka@cygnus.com> |
| 53 | |
| 54 | * simops.c (OP_5F00): Fix problems with system calls. |
| 55 | |
| 56 | Thu Sep 12 12:19:28 1996 Michael Meissner <meissner@tiktok.cygnus.com> |
| 57 | |
| 58 | * simops.c (OP_5F00): Correct tracing information for trap. |
| 59 | |
| 60 | Wed Sep 11 18:55:50 1996 Michael Meissner <meissner@tiktok.cygnus.com> |
| 61 | |
| 62 | * Makefile.in (CSEARCH): Correctly find opcodes directory. |
| 63 | |
| 64 | Mon Sep 9 13:27:26 1996 Michael Meissner <meissner@tiktok.cygnus.com> |
| 65 | |
| 66 | * simops.c (trace_output): Properly align accumulator output. |
| 67 | (OP_3{0,2,4}00): Properly parenthesize test expression. Add error |
| 68 | if shift count is too high. |
| 69 | (OP_4E{00,02,04,20,22,40,42}): Make tests agree with book. |
| 70 | (OP_4E09): Make cpfg properly trace the input flags. |
| 71 | (op_types): Add OP_FLAG_OUTPUT. |
| 72 | (trace_{input,output}): Support OP_FLAG_OUTPUT. |
| 73 | (OP_31000000): This ld2w varient is a 16-bit memory reference, not |
| 74 | an 8-bit memory reference instruction for tracing purposes. |
| 75 | (OP_201): Addi needs to set the carry. |
| 76 | |
| 77 | Fri Sep 6 17:56:17 1996 Martin M. Hunt <hunt@pizza.cygnus.com> |
| 78 | |
| 79 | * simops.c (OP_2600, OP_2601): Changed min and max comparisons |
| 80 | to use signed register values. |
| 81 | |
| 82 | Wed Sep 4 11:35:17 1996 Michael Meissner <meissner@tiktok.cygnus.com> |
| 83 | |
| 84 | * d10v_sim.h (DEBUG_*): Add bit flags for controlling debug |
| 85 | output. |
| 86 | (_ins_type): New enumeration to specify which container an |
| 87 | instruction is in, and whether it is part of a parallel operation. |
| 88 | (_state): Add ins_type field. |
| 89 | ({,u}int{8,16,32,64}): Use limits.h to size the appropriate types. |
| 90 | (ins_type_counters): Counters for the various instruction types. |
| 91 | ({left,right}_nops): Counters for the number of nops in each |
| 92 | container. |
| 93 | (d10v_debug): New variable to indicate whether debugging is turned |
| 94 | on. |
| 95 | |
| 96 | * simops.c: (all functions): Change all #ifdef DEBUG code so that |
| 97 | the input and output values can be traced, along with the |
| 98 | instruction type. Make the -t option enable tracing. |
| 99 | (all functions): Change printf calls to use the printf_filtered |
| 100 | function in the callback table. |
| 101 | |
| 102 | * interp.c (_leftright): New enumeration to say whether 2 short |
| 103 | instructions are done left first or right first. |
| 104 | (do_{long,2_short,parallel}): Indicate in the machine state which |
| 105 | type of instruction this is. Count each of the types of |
| 106 | instructions executed. |
| 107 | (sim_size): Only print the memory sizes if DEBUG_MEMSIZE debug |
| 108 | flag is set. |
| 109 | (sim_resume): Pass left/right indication to do_2_short. |
| 110 | (all functions): Change printf calls to use the printf_filtered |
| 111 | function in the callback table. |
| 112 | (sim_trace): Turn on debug flag if DEBUG was defined, and call |
| 113 | sim_resume. |
| 114 | (sim_info): Print out statistics on instructions. |
| 115 | (sim_{trace,create_inferior}): Eliminate extraneous output unless |
| 116 | debugging. |
| 117 | (sim_open): If args == -t and DEBUG was defined, set d10v_debug. |
| 118 | Only initialize the hash table the first time sim_open is called. |
| 119 | |
| 120 | * Makefile.in: Make objects depend on d10v_sim.h. |
| 121 | ({,SIM_}CFLAGS): Include configure dependent switches. Setting |
| 122 | CFLAGS does not override host/target defines or SIM_CFLAGS. |
| 123 | (CC_FOR_BUILD,gencode): Use CC_FOR_BUILD to compile gencode. |
| 124 | (run): By default, the math library is not needed to be linked |
| 125 | in. |
| 126 | ({BFD,LIBIBERTY}_LIB): Define as variables so they can be |
| 127 | overridden. |
| 128 | (VPATH): Don't set to anything but @srcdir@ to work with non-GNU |
| 129 | makes. |
| 130 | ({run,callback}.o): Provide explicit paths to their appropriate |
| 131 | source directories. |
| 132 | (gencode{,.o},d10v-opc.o): Split compilation into creating object |
| 133 | and linking. Instead of linking in libopcodes.a, just compile |
| 134 | d10v-opc.o directly to handle canadian cross. |
| 135 | (CSEARCH): Add opcodes directory. |
| 136 | |
| 137 | * configure.in (--enable-sim-cflags): New switch to allow user to |
| 138 | set the defaults. |
| 139 | (CC_FOR_BUILD): Deal with canadian crosses. |
| 140 | * configure: Regenerate. |
| 141 | |
| 142 | Wed Sep 04 04:45:34 1996 Mark Alexander <marka@cygnus.com> |
| 143 | |
| 144 | * simops.c: Include correct syscall.h for d10v, not host's. |
| 145 | Fix #ifdef SYS_stat. |
| 146 | |
| 147 | Tue Sep 3 14:00:04 1996 Michael Meissner <meissner@tiktok.cygnus.com> |
| 148 | |
| 149 | * simops.c (OP_5F00): Wrap all SYS_xxx traps with #ifdef. |
| 150 | Add trap 2 to be printf and trap 3 to be putchar. |
| 151 | |
| 152 | Wed Aug 28 21:42:34 1996 Mark Alexander <marka@cygnus.com> |
| 153 | |
| 154 | * Makefile.in, d10v_sim.h, interp.c, simops.c: Add support |
| 155 | for low-level system calls. |
| 156 | |
| 157 | Wed Aug 28 17:33:19 1996 Martin M. Hunt <hunt@pizza.cygnus.com> |
| 158 | |
| 159 | * Makefile.in, d10v_sim.h, interp.c: Fix byte-order problems. |
| 160 | |
| 161 | Mon Aug 26 18:30:28 1996 Martin M. Hunt <hunt@pizza.cygnus.com> |
| 162 | |
| 163 | * d10v_sim.h (SEXT32): Added. |
| 164 | * interp.c: Commented out printfs. |
| 165 | * simops.c: Fixed error in sb and st2w. |
| 166 | |
| 167 | Thu Aug 15 13:30:03 1996 Martin M. Hunt <hunt@pizza.cygnus.com> |
| 168 | |
| 169 | * Makefile.in, d10v_sim.h, interp.c, simops.c: Added remaining |
| 170 | DSP instructions. Added modulo addressing. |
| 171 | |
| 172 | Sun Aug 11 12:57:15 1996 Martin M. Hunt <hunt@pizza.cygnus.com> |
| 173 | |
| 174 | * Makefile.in, d10v_sim.h, interp.c, simops.c: Snapshot. |
| 175 | |
| 176 | Fri Aug 2 17:44:24 1996 Martin M. Hunt <hunt@pizza.cygnus.com> |
| 177 | |
| 178 | * d10v_sim.h, simops.c: Snapshot. |
| 179 | |
| 180 | Thu Aug 1 17:05:24 1996 Martin M. Hunt <hunt@pizza.cygnus.com> |
| 181 | |
| 182 | * ChangeLog, Makefile.in, configure, configure.in, d10v_sim.h, |
| 183 | gencode.c, interp.c, simops.c: Created. |
| 184 | |