Commit | Line | Data |
---|---|---|
57bc1a72 MM |
1 | Tue Oct 15 10:57:50 1996 Michael Meissner <meissner@tiktok.cygnus.com> |
2 | ||
3 | * simops.c (OP_5F00): Add support for getpid, kill system calls. | |
4 | ||
5 | * interp.c (do_{2_short,parallel}): If an exception is raised, | |
6 | don't execute the second instruction. | |
7 | ||
8918b3a7 MM |
8 | Sat Oct 12 22:17:43 1996 Michael Meissner <meissner@tiktok.cygnus.com> |
9 | ||
10 | * simops.c (OP_{31000000,6601,6201,6200}): Store address in a | |
11 | temporary in case the register is overriden when loading. | |
12 | (OP_6200): Output type is OP_DREG for tracing. | |
13 | ||
14 | Fri Oct 4 23:46:18 1996 Michael Meissner <meissner@tiktok.cygnus.com> | |
15 | ||
16 | * d10v_sim.h (struct _state): Add mem_{min,max} fields. | |
17 | ||
18 | * interp.c (sim_size): Initialize mem_{min,max} fields. | |
19 | (sim_write): Update mem_{min,max} fields. | |
20 | (sim_resume): If PC is not in the minimum/maximum memory range, | |
21 | abort. | |
22 | (sim_create_inferior): Preserve mem_{min,max} fields. | |
23 | ||
24 | Fri Sep 27 13:11:58 1996 Mark Alexander <marka@cygnus.com> | |
25 | ||
26 | * simops.c (OP_5F00): Add support for time() system call. | |
27 | ||
a18cb100 MM |
28 | Wed Sep 25 16:31:41 1996 Michael Meissner <meissner@tiktok.cygnus.com> |
29 | ||
30 | * simops.c (OP_{6E01,6A01,6E1F,6A00}): Print both words being | |
31 | stored if tracing. | |
8918b3a7 MM |
32 | (OP_5F00,trace_{in,out}put_func): Add finer grain tracing for |
33 | system calls. | |
a18cb100 MM |
34 | |
35 | Mon Sep 23 17:55:30 1996 Michael Meissner <meissner@tiktok.cygnus.com> | |
36 | ||
37 | * simops.c (op_types): Add OP_{CONSTANT8,R2,R3}. | |
38 | (trace_input_func): Add support for OP_{CONSTANT8,R2,R3}. | |
39 | (OP_{4900,24800000,4800,4A00,4B00,4D00,4C00}): Add OP_R2 and OP_R3 | |
40 | to call/subroutine returns to trace the first two arguments and | |
41 | the return value. For small jumps, use CONSTANT8, not CONSTANT16. | |
42 | ||
c58a1ec2 MH |
43 | Fri Sep 20 15:36:45 1996 Martin M. Hunt <hunt@pizza.cygnus.com> |
44 | ||
45 | * interp.c (sim_create_inferior): Reinitialize State every time | |
46 | sim_create_inferior() is called. | |
47 | ||
c12f5c67 MM |
48 | Thu Sep 19 21:38:20 1996 Michael Meissner <meissner@wogglebug.ziplink.net> |
49 | ||
50 | * simops.c (OP_{401,2000000,601,3000000,23000000}): Get sign right | |
51 | on comparisons. | |
52 | (OP_401): Fix tracing information. | |
53 | ||
74473ea1 MM |
54 | Thu Sep 19 10:30:22 1996 Michael Meissner <meissner@tiktok.cygnus.com> |
55 | ||
891513ee MM |
56 | * simops.c (SIZE_{PC,LINE_NUMBER}): New default sizes for output. |
57 | (trace_input_func): Use them. | |
f061ddf6 MM |
58 | (trace_input_func): Make sure there is a trailing space after the |
59 | instruction. | |
addb61a5 | 60 | (OP_6200): Fix tracing info. |
891513ee | 61 | |
74473ea1 MM |
62 | * Makefile.in (run): Add dependencies on libbfd.a and |
63 | libiberity.a. | |
64 | ||
a49a15ad MM |
65 | Wed Sep 18 09:13:25 1996 Michael Meissner <meissner@tiktok.cygnus.com> |
66 | ||
67 | * d10v_sim.h (DEBUG_INSTRUCTION): New debug value to include line | |
68 | numbers and function names in debug trace. | |
69 | (DEBUG): If not defined, set to DEBUG_TRACE, DEBUG_VALUES, and | |
70 | DEBUG_LINE_NUMBER. | |
71 | (SIG_D10V_{STOP,EXIT}): Values to represent the stop instruction | |
72 | and exit system call trap being executed. | |
73 | ||
74 | * interp.c (sim_stop_reason): Set exit code correctly for stop | |
75 | instruction and exit system call trap. | |
76 | ||
77 | * configure.in (--enable-sim-cflags): Remove trace case. | |
78 | (--enable-sim-debug): New switch to set the debug values. | |
79 | * configure: Regenerate. | |
80 | ||
81 | * simops.c (trace_{input,output}_func): Rename from | |
82 | trace_{input,output}. | |
83 | (trace_{input,output}): Call trace_{input,output}_func if | |
84 | d10v_debug is non-zero. | |
85 | (SIZE_INSTRUCTION): Cut down to 8. | |
86 | (SIZE_OPERANDS): Cut down to 18. | |
87 | (SIZE_LOCATION): New value for size of line number, function name | |
88 | field. | |
89 | (init_text_p,text{,_start,_end}): New static variables for | |
90 | printing line number and function name. | |
0535fa1a | 91 | (exec_bfd): New external that run.c sets. |
a49a15ad MM |
92 | (trace_input_func): Print line number and function name if |
93 | available and if desired. | |
94 | (OP_4E09): Don't print out DBT message. | |
95 | (OP_5FE0): Set exception field to SIG_D10V_STOP. | |
96 | (OP_5F00): Set exception field to SIG_D10V_EXIT. | |
97 | ||
215ac953 MM |
98 | Sat Sep 14 22:18:43 1996 Michael Meissner <meissner@tiktok.cygnus.com> |
99 | ||
100 | * interp.c (do_2_short): If the instruction encodes jump->ins, | |
101 | don't do the second instruction if the jump succeeds. | |
102 | ||
19d44375 MM |
103 | Fri Sep 13 22:35:19 1996 Michael Meissner <meissner@tiktok.cygnus.com> |
104 | ||
105 | * simops.c (OP_5F00): Use unknown traps to print all GPRs, | |
106 | accumulators, PC, and F0/F1/C flags. | |
107 | ||
65c0d7de MA |
108 | Thu Sep 12 12:50:11 1996 Mark Alexander <marka@cygnus.com> |
109 | ||
110 | * simops.c (OP_5F00): Fix problems with system calls. | |
111 | ||
a5719092 MM |
112 | Thu Sep 12 12:19:28 1996 Michael Meissner <meissner@tiktok.cygnus.com> |
113 | ||
114 | * simops.c (OP_5F00): Correct tracing information for trap. | |
115 | ||
5ceef1b5 MM |
116 | Wed Sep 11 18:55:50 1996 Michael Meissner <meissner@tiktok.cygnus.com> |
117 | ||
118 | * Makefile.in (CSEARCH): Correctly find opcodes directory. | |
119 | ||
069398aa MM |
120 | Mon Sep 9 13:27:26 1996 Michael Meissner <meissner@tiktok.cygnus.com> |
121 | ||
122 | * simops.c (trace_output): Properly align accumulator output. | |
123 | (OP_3{0,2,4}00): Properly parenthesize test expression. Add error | |
124 | if shift count is too high. | |
293c76a3 | 125 | (OP_4E{00,02,04,20,22,40,42}): Make tests agree with book. |
60fc5b72 MM |
126 | (OP_4E09): Make cpfg properly trace the input flags. |
127 | (op_types): Add OP_FLAG_OUTPUT. | |
128 | (trace_{input,output}): Support OP_FLAG_OUTPUT. | |
308f64d3 MM |
129 | (OP_31000000): This ld2w varient is a 16-bit memory reference, not |
130 | an 8-bit memory reference instruction for tracing purposes. | |
2254cd90 | 131 | (OP_201): Addi needs to set the carry. |
069398aa | 132 | |
ea2155e8 MH |
133 | Fri Sep 6 17:56:17 1996 Martin M. Hunt <hunt@pizza.cygnus.com> |
134 | ||
135 | * simops.c (OP_2600, OP_2601): Changed min and max comparisons | |
136 | to use signed register values. | |
137 | ||
87178dbd MM |
138 | Wed Sep 4 11:35:17 1996 Michael Meissner <meissner@tiktok.cygnus.com> |
139 | ||
140 | * d10v_sim.h (DEBUG_*): Add bit flags for controlling debug | |
141 | output. | |
142 | (_ins_type): New enumeration to specify which container an | |
143 | instruction is in, and whether it is part of a parallel operation. | |
144 | (_state): Add ins_type field. | |
7eebfc62 MM |
145 | ({,u}int{8,16,32,64}): Use limits.h to size the appropriate types. |
146 | (ins_type_counters): Counters for the various instruction types. | |
147 | ({left,right}_nops): Counters for the number of nops in each | |
148 | container. | |
149 | (d10v_debug): New variable to indicate whether debugging is turned | |
150 | on. | |
151 | ||
152 | * simops.c: (all functions): Change all #ifdef DEBUG code so that | |
153 | the input and output values can be traced, along with the | |
154 | instruction type. Make the -t option enable tracing. | |
155 | (all functions): Change printf calls to use the printf_filtered | |
156 | function in the callback table. | |
87178dbd MM |
157 | |
158 | * interp.c (_leftright): New enumeration to say whether 2 short | |
159 | instructions are done left first or right first. | |
160 | (do_{long,2_short,parallel}): Indicate in the machine state which | |
7eebfc62 MM |
161 | type of instruction this is. Count each of the types of |
162 | instructions executed. | |
87178dbd MM |
163 | (sim_size): Only print the memory sizes if DEBUG_MEMSIZE debug |
164 | flag is set. | |
165 | (sim_resume): Pass left/right indication to do_2_short. | |
7eebfc62 MM |
166 | (all functions): Change printf calls to use the printf_filtered |
167 | function in the callback table. | |
168 | (sim_trace): Turn on debug flag if DEBUG was defined, and call | |
169 | sim_resume. | |
170 | (sim_info): Print out statistics on instructions. | |
171 | (sim_{trace,create_inferior}): Eliminate extraneous output unless | |
172 | debugging. | |
1eaaf305 MM |
173 | (sim_open): If args == -t and DEBUG was defined, set d10v_debug. |
174 | Only initialize the hash table the first time sim_open is called. | |
7eebfc62 MM |
175 | |
176 | * Makefile.in: Make objects depend on d10v_sim.h. | |
1eaaf305 MM |
177 | ({,SIM_}CFLAGS): Include configure dependent switches. Setting |
178 | CFLAGS does not override host/target defines or SIM_CFLAGS. | |
179 | (CC_FOR_BUILD,gencode): Use CC_FOR_BUILD to compile gencode. | |
180 | (run): By default, the math library is not needed to be linked | |
181 | in. | |
9b86c7e2 | 182 | ({BFD,LIBIBERTY}_LIB): Define as variables so they can be |
1eaaf305 | 183 | overridden. |
9b86c7e2 MM |
184 | (VPATH): Don't set to anything but @srcdir@ to work with non-GNU |
185 | makes. | |
186 | ({run,callback}.o): Provide explicit paths to their appropriate | |
187 | source directories. | |
188 | (gencode{,.o},d10v-opc.o): Split compilation into creating object | |
189 | and linking. Instead of linking in libopcodes.a, just compile | |
190 | d10v-opc.o directly to handle canadian cross. | |
191 | (CSEARCH): Add opcodes directory. | |
7eebfc62 MM |
192 | |
193 | * configure.in (--enable-sim-cflags): New switch to allow user to | |
194 | set the defaults. | |
1eaaf305 | 195 | (CC_FOR_BUILD): Deal with canadian crosses. |
7eebfc62 | 196 | * configure: Regenerate. |
87178dbd | 197 | |
8719be26 MA |
198 | Wed Sep 04 04:45:34 1996 Mark Alexander <marka@cygnus.com> |
199 | ||
200 | * simops.c: Include correct syscall.h for d10v, not host's. | |
201 | Fix #ifdef SYS_stat. | |
202 | ||
203 | Tue Sep 3 14:00:04 1996 Michael Meissner <meissner@tiktok.cygnus.com> | |
204 | ||
205 | * simops.c (OP_5F00): Wrap all SYS_xxx traps with #ifdef. | |
206 | Add trap 2 to be printf and trap 3 to be putchar. | |
207 | ||
208 | Wed Aug 28 21:42:34 1996 Mark Alexander <marka@cygnus.com> | |
209 | ||
210 | * Makefile.in, d10v_sim.h, interp.c, simops.c: Add support | |
211 | for low-level system calls. | |
212 | ||
d70b4d42 MH |
213 | Wed Aug 28 17:33:19 1996 Martin M. Hunt <hunt@pizza.cygnus.com> |
214 | ||
215 | * Makefile.in, d10v_sim.h, interp.c: Fix byte-order problems. | |
216 | ||
217 | Mon Aug 26 18:30:28 1996 Martin M. Hunt <hunt@pizza.cygnus.com> | |
218 | ||
219 | * d10v_sim.h (SEXT32): Added. | |
220 | * interp.c: Commented out printfs. | |
221 | * simops.c: Fixed error in sb and st2w. | |
222 | ||
223 | Thu Aug 15 13:30:03 1996 Martin M. Hunt <hunt@pizza.cygnus.com> | |
224 | ||
225 | * Makefile.in, d10v_sim.h, interp.c, simops.c: Added remaining | |
226 | DSP instructions. Added modulo addressing. | |
227 | ||
228 | Sun Aug 11 12:57:15 1996 Martin M. Hunt <hunt@pizza.cygnus.com> | |
229 | ||
230 | * Makefile.in, d10v_sim.h, interp.c, simops.c: Snapshot. | |
231 | ||
4c38885c MH |
232 | Fri Aug 2 17:44:24 1996 Martin M. Hunt <hunt@pizza.cygnus.com> |
233 | ||
234 | * d10v_sim.h, simops.c: Snapshot. | |
235 | ||
2934d1c9 MH |
236 | Thu Aug 1 17:05:24 1996 Martin M. Hunt <hunt@pizza.cygnus.com> |
237 | ||
238 | * ChangeLog, Makefile.in, configure, configure.in, d10v_sim.h, | |
239 | gencode.c, interp.c, simops.c: Created. | |
240 |