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