Commit | Line | Data |
---|---|---|
b45caf05 AC |
1 | Fri Sep 19 17:45:25 1997 Andrew Cagney <cagney@b1.cygnus.com> |
2 | ||
3 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
4 | ||
2001e533 FL |
5 | Tue Sep 16 23:10:03 1997 Felix Lee <flee@cygnus.com> |
6 | ||
7 | * sim-main.h (kill): macro was missing args. | |
8 | (SIGTRAP): define for MSVC. | |
9 | ||
a2ab5e65 AC |
10 | Mon Sep 15 17:36:15 1997 Andrew Cagney <cagney@b1.cygnus.com> |
11 | ||
12 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
13 | ||
70c8abdb AC |
14 | Mon Sep 8 20:10:43 1997 Andrew Cagney <cagney@b1.cygnus.com> |
15 | ||
16 | * cpu.h (CPU_CIA): Define. | |
17 | ||
18 | * sim-main.h (struct sim_state): Delete halt_ok, path_to_halt, | |
19 | restart_ok, path_to_restart members. | |
20 | (struct sim_state): Delete reason, siggnal members. | |
21 | ||
6fea4763 DE |
22 | Thu Sep 4 17:21:23 1997 Doug Evans <dje@seba> |
23 | ||
24 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
25 | ||
6dbaff8f AC |
26 | Thu Sep 4 17:45:14 1997 Andrew Cagney <cagney@b1.cygnus.com> |
27 | ||
28 | * sim-calls.c (sim_open): Add memory before parsing arguments. | |
29 | (sim_read): Delete, replace with sim-hrw. | |
30 | (sim_write): Delete, replace with sim-hrw. | |
31 | ||
a34abff8 AC |
32 | Thu Sep 4 10:48:57 1997 Andrew Cagney <cagney@b1.cygnus.com> |
33 | ||
34 | * sim-calls.c (sim_open): Use sim_do_command to add memory, only | |
35 | add memory if none already present. | |
36 | (sim_open): Move init of registers from here. | |
37 | (sim_create_inferior): To here. Init modules. | |
38 | ||
39 | * Makefile.in (SIM_OBJS): Add sim-memopt.o module. | |
40 | ||
41 | * sim-calls.c (sim_open): Add zero modulo arg to sim_core_attach. | |
42 | ||
4b2a6aed AC |
43 | Mon Sep 1 11:06:30 1997 Andrew Cagney <cagney@b1.cygnus.com> |
44 | ||
45 | * sim-calls.c (sim_open): Use sim_state_alloc | |
46 | (simulation): Delete. | |
47 | ||
4113ba4c AC |
48 | Sat Aug 30 09:40:47 1997 Andrew Cagney <cagney@b1.cygnus.com> |
49 | ||
50 | * insns (do_trap): Unsigned `i' for unsigned iterator. | |
51 | (do_trap): Ditto for comparison with getpid. | |
52 | ||
88117054 AC |
53 | Wed Aug 27 18:13:22 1997 Andrew Cagney <cagney@b1.cygnus.com> |
54 | ||
55 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
56 | * config.in: Ditto. | |
57 | ||
fafce69a AC |
58 | Wed Aug 27 13:41:24 1997 Andrew Cagney <cagney@b1.cygnus.com> |
59 | ||
d6fea803 AC |
60 | * insns (do_st): Use U8_4 instead of V4_L8. |
61 | ||
fafce69a AC |
62 | * sim-calls.c (sim_open): Add call to sim_analyze_program, update |
63 | call to sim_config. | |
7230ff0f AC |
64 | |
65 | * sim-calls.c (sim_kill): Delete. | |
fafce69a AC |
66 | (sim_create_inferior): Add ABFD argument. Initialize PC from ABFD |
67 | and not SD. | |
68 | (sim_load): Delete, use sim-hload.c. | |
69 | ||
70 | * Makefile.in (SIM_OBJS): Add sim-hload.o module. | |
7230ff0f | 71 | |
247fccde AC |
72 | Mon Aug 25 17:50:22 1997 Andrew Cagney <cagney@b1.cygnus.com> |
73 | ||
74 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
75 | * config.in: Ditto. | |
76 | ||
77 | Mon Aug 25 16:33:29 1997 Andrew Cagney <cagney@b1.cygnus.com> | |
78 | ||
79 | * sim-calls.c (sim_open): Add ABFD argument. | |
80 | (sim_open): Move sim_config call to just after argument | |
81 | parsing. Check return status. | |
82 | ||
9e61ae7d MA |
83 | Fri Aug 8 21:52:27 1997 Mark Alexander <marka@cygnus.com> |
84 | ||
85 | * sim-calls.c (sim_store_register): Allow accumulators | |
86 | other than A0 to be modified. Correct error message. | |
87 | ||
128b5154 AC |
88 | Thu May 29 14:02:40 1997 Andrew Cagney <cagney@b1.cygnus.com> |
89 | ||
90 | * misc.c (tic80_trace_fpu3, tic80_trace_fpu2, tic80_trace_fpu1, | |
91 | tic80_trace_fpu2i): Pass in function prefix. | |
92 | (tic80_trace_ldst): Rewrite so it calls print_one_insn directly. | |
93 | ||
94 | * Makefile.in (SIM_OBJS): Include sim-watch.o module. | |
95 | ||
96 | * sim-main.h (WITH_WATCHPOINTS): Enable watchpoints. | |
97 | ||
98 | * ic (bitnum): Compute bitnum from BITNUM. | |
99 | * insn (bbo, bbz): Use. | |
100 | ||
101 | * insn: Convert long immediate instructions to igen long immediate | |
102 | form. | |
103 | * insn: Add disasembler information. | |
104 | ||
4e95b94e AC |
105 | Thu May 29 12:09:13 1997 Andrew Cagney <cagney@b2.cygnus.com> |
106 | ||
107 | * alu.h (IMEM_IMMED): New macro, fetch 32bit immediate operand N. | |
108 | ||
109 | * insns (subu i): Immediate is signed not unsigned. | |
110 | ||
2f2e6c5d AC |
111 | Tue May 27 13:22:13 1997 Andrew Cagney <cagney@b1.cygnus.com> |
112 | ||
113 | * sim-calls.c (sim_read): Pass NULL cpu to sim_core_read_buffer. | |
114 | (sim_write): Ditto for write. | |
115 | ||
24aa2b57 AC |
116 | Tue May 20 09:33:31 1997 Andrew Cagney <cagney@b1.cygnus.com> |
117 | ||
50a2a691 AC |
118 | * sim-calls.c (sim_load): Set STATE_LOADED_P. |
119 | ||
ff82f214 AC |
120 | * sim-main.h: Include <unistd.h>. |
121 | ||
24aa2b57 AC |
122 | * sim-calls.c (sim_set_callback): Delete. |
123 | (sim_open): Add/install callback argument. | |
ff82f214 AC |
124 | (sim_size): Delete. |
125 | ||
8c5b6ead MM |
126 | Mon May 19 18:59:33 1997 Mike Meissner <meissner@cygnus.com> |
127 | ||
128 | * configure.in: Check for getpid, kill functions. | |
129 | * config{.in,ure}: Regenerate. | |
130 | ||
131 | * insns (do_trap): Add support for kill, getpid system calls. | |
132 | ||
133 | * sim-main.h (errno.h): Include. | |
134 | (getpid,kill): Define as NOPs if the host doesn't have them. | |
135 | ||
fd76456b AC |
136 | Mon May 19 14:58:47 1997 Andrew Cagney <cagney@b1.cygnus.com> |
137 | ||
138 | * sim-calls.c (sim_open): Set the simulator base magic number. | |
2e61a3ad AC |
139 | (sim_load): Delete prototype of sim_load_file. |
140 | (sim_open): Define sd to be &simulation. | |
fd76456b | 141 | |
f03b093c AC |
142 | Fri May 16 14:35:30 1997 Andrew Cagney <cagney@b1.cygnus.com> |
143 | ||
144 | * insns (illegal, fp_unavailable): Halt instead of abort the | |
145 | simulator. | |
146 | ||
147 | * insns: Replace calls to engine_error with sim_engine_abort. | |
148 | Ditto for engine_halt V sim_engine_halt. | |
149 | ||
150 | Tue May 13 15:24:12 1997 Andrew Cagney <cagney@b2.cygnus.com> | |
151 | ||
152 | * interp.c (engine_run_until_stop): Delete. Moved to common. | |
153 | (engine_step): Ditto. | |
154 | (engine_step): Ditto. | |
155 | (engine_halt): Ditto. | |
156 | (engine_restart): Ditto. | |
157 | (engine_halt): Ditto. | |
158 | (engine_error): Ditto. | |
159 | ||
160 | * sim-calls.c (sim_stop): Delete. Moved to common. | |
161 | (sim_stop_reason): Ditto. | |
162 | (sim_resume): Ditto. | |
163 | ||
164 | * Makefile.in (SIM_OBJS): Link in generic sim-engine, sim-run, | |
165 | sim-resume, sim-reason, sim-stop modules. | |
166 | ||
37a684b8 AC |
167 | Fri May 16 11:57:49 1997 Andrew Cagney <cagney@b1.cygnus.com> |
168 | ||
169 | * ic (compute): Drop check for REG == 0, now always forced to | |
170 | zero. | |
171 | ||
172 | * cpu.h (GPR_SET): New macro update the gpr. | |
173 | * insns (do_add): Use GPR_SET to update the GPR register. | |
174 | ||
175 | * sim-calls.c (sim_fetch_register): Pretend that r0 is zero. | |
176 | ||
177 | * Makefile.in (tmp-igen): Specify zero-r0 so that every | |
178 | instruction clears r0. | |
179 | ||
180 | * interp.c (engine_run_until_stop): Igen now generates code to | |
181 | clear r0. | |
182 | (engine_step): Ditto. | |
183 | ||
aa3a0447 AC |
184 | Thu May 15 11:45:37 1997 Andrew Cagney <cagney@b1.cygnus.com> |
185 | ||
07b4c0a6 AC |
186 | * insns (do_shift): When rot==0 and zero/sign merge treat it as |
187 | 32. | |
188 | (set_fp_reg): For interger conversion, use sim-fpu fpu2i | |
189 | functions. | |
190 | (do_fmpy): Perform iii and uuu using integer arithmetic. | |
191 | ||
192 | * Makefile.in (ENGINE_H): Assume everything depends on the fpu. | |
193 | ||
aa3a0447 AC |
194 | * insns (get_fp_reg): Use sim_fpu_u32to to perform unsigned |
195 | conversion. | |
196 | (do_fcmp): Update to use new fp compare functions. Make reg nr arg | |
197 | instead of reg. Stops fp overflow. | |
198 | (get_fp_reg): Assume val is valid when reg == 0. | |
199 | (set_fp_reg): Fix double conversion. | |
200 | ||
201 | * misc.c (tic80_trace_fpu1): New function, trace simple fp op. | |
202 | ||
203 | * insns (do_frnd): Add tracing. | |
204 | ||
205 | * cpu.h (TRACE_FPU1): Ditto. | |
2310e3c2 AC |
206 | |
207 | * insns (do_trap): Printf formatting. | |
208 | ||
93555c3b MM |
209 | Wed May 14 18:05:50 1997 Mike Meissner <meissner@cygnus.com> |
210 | ||
211 | * misc.c (tic80_trace_fpu{3,2,2i}): Align columns with other | |
212 | insns. Use %g to print floating point instead of %f in case the | |
213 | numbers are real large. | |
214 | ||
1b6f4dde MM |
215 | Tue May 13 18:00:10 1997 Mike Meissner <meissner@cygnus.com> |
216 | ||
217 | * insns (do_trap): For system calls that are defined, but not | |
218 | provided return EINVAL. Temporarily add traps 74-79 to just print | |
219 | the register state. | |
220 | ||
221 | * interp.c (engine_{run_until_stop,step}): Before executing | |
222 | instructions, make sure r0 == 0. | |
223 | ||
84902350 AC |
224 | Tue May 13 16:39:37 1997 Andrew Cagney <cagney@b1.cygnus.com> |
225 | ||
226 | * alu.h (IMEM): Take full cia not just IP as argument. | |
227 | ||
228 | * interp.c (engine_run_until_stop): Delete handling of annuled | |
229 | instructions. | |
230 | (engine_step): Ditto. | |
231 | ||
232 | * insn (do_branch): New function. | |
233 | (do_bbo, do_bbz, do_bcnd, do_bsr, do_jsr): Use do_branch to handle | |
234 | annuled branches. | |
235 | ||
d01082ad MM |
236 | Mon May 12 17:15:52 1997 Mike Meissner <meissner@cygnus.com> |
237 | ||
238 | * insns (do_{ld,st}): Fix tracing for ld/st. | |
239 | ||
c445af5a AC |
240 | Mon May 12 11:12:24 1997 Andrew Cagney <cagney@b1.cygnus.com> |
241 | ||
9af5dcea AC |
242 | * sim-calls.c (sim_stop_reason): Restore keep_running after a |
243 | CNTRL-C, don't re-clear it. | |
244 | ||
245 | * interp.c (engine_error): stop rather than signal with SIGABRT | |
246 | when an error. | |
247 | ||
c445af5a AC |
248 | * insns (do_ld): For 64bit loads, always store LSW in rDest, MSW in |
249 | rDest + 1. Also done by Michael Meissner <meissner@cygnus.com> | |
250 | (do_st): Converse for store. | |
251 | ||
252 | * misc.c (tic80_trace_fpu2i): Correct printf format for int type. | |
253 | ||
254 | Sun May 11 11:02:57 1997 Andrew Cagney <cagney@b1.cygnus.com> | |
255 | ||
256 | * sim-calls.c (sim_stop_reason): Return a SIGINT if keep_running | |
257 | was cleared. | |
258 | ||
259 | * interp.c (engine_step): New function. Single step the simulator | |
260 | taking care of cntrl-c during a step. | |
261 | ||
262 | * sim-calls.c (sim_resume): Differentiate between stepping and | |
263 | running so that a cntrl-c during a step is reported. | |
264 | ||
265 | Sun May 11 10:54:31 1997 Mark Alexander <marka@cygnus.com> | |
266 | ||
267 | * sim-calls.c (sim_fetch_register): Use correct reg base. | |
268 | (sim_store_register): Ditto. | |
269 | ||
450be234 MM |
270 | Sun May 11 10:25:14 1997 Michael Meissner <meissner@cygnus.com> |
271 | ||
272 | * cpu.h (tic80_trace_shift): Add declaration. | |
273 | (TRACE_SHIFT): New macro to trace shift instructions. | |
274 | ||
275 | * misc.c (tic80_trace_alu2): Align spacing. | |
276 | (tic80_trace_shift): New function to trace shifts. | |
277 | ||
278 | * insns (lmo): Add missing 0b prefix to bits. | |
279 | (do_shift): Use ~ (unsigned32)0, instead of -1. Use TRACE_SHIFT | |
280 | instead of TRACE_ALU2. | |
281 | (sl r): Use EndMask as is, instead of using Source+1 register. | |
282 | (subu): Operands are unsigned, not signed. | |
8ad60788 | 283 | (do_{ld,st}): Fix endian problems with ld.d/st.d. |
450be234 | 284 | |
20b2f9bc MM |
285 | Sat May 10 12:35:47 1997 Michael Meissner <meissner@cygnus.com> |
286 | ||
287 | * insns (and{.tt,.tf,.ft,.ff}): Immediate values are unsigned, not | |
288 | signed. | |
289 | ||
aaa7b252 MM |
290 | Fri May 9 15:47:36 1997 Mike Meissner <meissner@cygnus.com> |
291 | ||
292 | * insns (cmp_vals,do_cmp): Produce the correct bits as specified | |
293 | by the architecture. | |
89d1a478 | 294 | (xor): Fix xor immediate patterns to use the correct bits. |
aaa7b252 | 295 | |
9efd3f74 AC |
296 | Fri May 9 09:55:33 1997 Andrew Cagney <cagney@b1.cygnus.com> |
297 | ||
298 | * alu.h (long_immediate): Adjust the CIA delay-pointer as well as | |
299 | the NIA when a 64bit insn. | |
300 | ||
e42224cc MM |
301 | Thu May 8 11:57:47 1997 Michael Meissner <meissner@cygnus.com> |
302 | ||
53dcd669 MM |
303 | * insns (jsr,bsr): For non-allulled calls, set r31 so that the |
304 | return address does not reexecute the instruction in the delay | |
305 | slot. | |
c3cad878 MM |
306 | (bbo,bbz): Complement bit number to reverse the one's complement |
307 | that the assembler is required to do. | |
53dcd669 | 308 | |
8c3b5af1 MM |
309 | * misc.c (tic80_trace_*): Change format slightly to accomidate |
310 | real large decimal values. | |
e42224cc | 311 | |
43c53e07 AC |
312 | Thu May 8 14:07:16 1997 Andrew Cagney <cagney@b1.cygnus.com> |
313 | ||
314 | * sim-calls.c (sim_do_command): Implement. | |
315 | (sim_store_register): Fix typo T2H v H2T. | |
316 | ||
381f42ef AC |
317 | Wed May 7 11:48:55 1997 Andrew Cagney <cagney@b1.cygnus.com> |
318 | ||
319 | * cpu.h (TRACE_FPU2, TRACE_FPU3, TRACE_FPU2I): Add. | |
320 | * insn: Clean up fpu tracing. | |
321 | ||
322 | * sim-calls.c (sim_create_inferior): Start out with interrupts | |
323 | enabled. | |
324 | ||
325 | * cpu.h (TRACE_SINK3), misc.c (tic80_trace_sink3): Three argument | |
326 | sink | |
327 | ||
328 | * insns (rdcr, swcr, wrcr, brcr, rmo, lmo): Implement. | |
329 | ||
330 | * insns (do_*): Remove MY_INDEX/indx argument from support functions, | |
331 | igen now handles this. | |
332 | ||
333 | * cpu.h (CR): New macro - access TIc80 control registers. | |
334 | ||
335 | * misc.c: New file. | |
336 | (tic80_cr2index): New function, map control register opcode index | |
337 | into the internal CR enum. | |
338 | ||
339 | * interp.c | |
340 | (tic80_trace_{alu{2,3},nop,sink{1,2},{,u}cond_br,ldst}): Move from | |
341 | here | |
342 | * misc.c: to here. | |
343 | ||
344 | * Makefile.in (SIM_OBJS): Add misc.o. | |
345 | ||
7b167b09 MM |
346 | Tue May 6 15:22:58 1997 Mike Meissner <meissner@cygnus.com> |
347 | ||
348 | * cpu.h ({,v}{S,D}P_FPR): Delete unused macros that won't work on | |
349 | big endian hosts. | |
350 | (tic80_trace_{alu{2,3},nop,sink{1,2},{,u}cond_br,ldst}): Declare | |
351 | new functions. | |
352 | (TRACE_{ALU{2,3},NOP,SINK{1,2},{,U}COND_BR,LD,ST}): New macros to | |
353 | trace various instruction types. | |
354 | ||
355 | * insns: Modify all instructions to support semantic tracing. | |
356 | ||
357 | * interp.c (toplevel): Include itable.h. | |
358 | (tic80_trace_{alu{2,3},nop,sink{1,2},{,u}cond_br,ldst}): New | |
359 | functions to provide semantic level tracing information. | |
360 | ||
7a418800 AC |
361 | Mon May 5 11:50:43 1997 Andrew Cagney <cagney@b1.cygnus.com> |
362 | ||
363 | * alu.h: Update usage of core object to reflect recent changes in | |
364 | ../common/sim-*core. | |
365 | * sim-calls.c (sim_open): Ditto. | |
366 | ||
3971886a AC |
367 | Mon May 5 14:10:17 1997 Andrew Cagney <cagney@b1.cygnus.com> |
368 | ||
369 | * insn (cmnd): No-op cache flushes. | |
370 | ||
371 | * insns (do_trap): Allow writes to STDERR. | |
372 | ||
373 | * Makefile.in (SIM_OBJS): Link in sim-fpu.o. | |
374 | (SIM_EXTRA_LIBS): Link in the math library. | |
375 | ||
376 | * alu.h: Add support for floating point unit using sim-alu. | |
377 | ||
378 | * insns (fadd, fsub, fmpy, fdiv, fcmp, frnd*): Implement. | |
379 | ||
d9b75947 AC |
380 | Fri May 2 14:57:14 1997 Andrew Cagney <cagney@b1.cygnus.com> |
381 | ||
382 | * sim-calls.c: Include sim-utils.h and sim-options.h. | |
383 | ||
384 | * sim-main.h (sim_state): Drop sim_events and sim_core members, | |
385 | moved to simulator base type. | |
386 | ||
387 | * alu.h (IMEM, MEM, STORE): Update track changes in common | |
388 | directory. | |
389 | ||
390 | * insns: Drop cia argument from functions, igen now handles this. | |
391 | ||
392 | * interp.c (engine_init): Include string.h/strings.h to define | |
393 | memset et.al. | |
394 | ||
395 | * sim-main.h (sim_cia): Delcare, tracking common dir changes. | |
396 | ||
397 | * cpu.h (sim_cpu): Update instruction_address with sim_cia. | |
398 | ||
c1c77d40 AC |
399 | Wed Apr 30 11:26:56 1997 Andrew Cagney <cagney@b1.cygnus.com> |
400 | ||
401 | * sim-main.h (signal.h): Include so that SIG* available to all | |
402 | callers of sig_halt. | |
403 | ||
404 | * insns (do_shift): New function, implement shift operations. | |
405 | (do_trap): Add handler for trap 73 - SIGTRAP. | |
406 | ||
d5e2c74e AC |
407 | Tue Apr 29 10:58:48 1997 Andrew Cagney <cagney@b1.cygnus.com> |
408 | ||
409 | * alu.h (MEM, STORE): Force addresses to be correctly aligned. | |
410 | ||
411 | * insns (do_jsr): Fix. | |
412 | (do_st, do_ld): Handle 64bit transfers. | |
413 | (do_trap): Match libgloss. | |
414 | (rdcr): Implement nop - Dest == r0 - variant. | |
415 | ||
416 | * sim-calls.c (sim_create_inferior): Initialize SP. | |
417 | ||
418 | * Makefile.in (ENGINE_H): Everything now depends on sim-options.h. | |
419 | (support.o): Depends on ENGINE_H. | |
420 | ||
421 | * cpu.h: Four accumulators. | |
422 | ||
423 | * Makefile.in (tmp-igen): Include line number information in | |
424 | generated files. | |
425 | ||
426 | * insns (dld, dst): Fill in. | |
427 | ||
428 | Mon Apr 28 13:02:26 1997 Andrew Cagney <cagney@b1.cygnus.com> | |
429 | ||
430 | * insns (vld): Fix instruction format wrong. | |
431 | ||
abe293a0 AC |
432 | Thu Apr 24 16:43:09 1997 Andrew Cagney <cagney@b1.cygnus.com> |
433 | ||
434 | * dc: Add additional rules so that minor opcode files are | |
435 | detected. | |
436 | * insns: Enable more instructions. | |
437 | ||
438 | * sim-calls.c (sim_fetch_register,sim_store_register, sim_write): | |
439 | Implement. | |
440 | ||
dd442a44 DE |
441 | Thu Apr 24 00:39:51 1997 Doug Evans <dje@canuck.cygnus.com> |
442 | ||
443 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
444 | * Makefile.in (SIM_OBJS): Add sim-module.o, sim-profile.o. | |
445 | * sim-calls.c (sim_open): Call sim_module_uninstall if argument | |
446 | parsing fails. Call sim_post_argv_init. | |
447 | (sim_close): Call sim_module_uninstall. | |
448 | ||
480e740c AC |
449 | Wed Apr 23 20:05:33 1997 Andrew Cagney <cagney@b1.cygnus.com> |
450 | ||
451 | * insns (and, bbo, bcnd, bsr, dcache, jsr, or, xor, nor): Enable. | |
452 | * ic: Add fields for enabled instructions. | |
453 |