]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/mips/ChangeLog
Rename generated file engine.c to oengine.c.
[thirdparty/binutils-gdb.git] / sim / mips / ChangeLog
1 Thu Oct 16 10:31:41 1997 Andrew Cagney <cagney@b1.cygnus.com>
2
3 * Makefile.in (interp.o): Rename generated file engine.c to
4 oengine.c.
5
6 * interp.c: Update.
7
8 Thu Oct 16 10:31:40 1997 Andrew Cagney <cagney@b1.cygnus.com>
9
10 * gencode.c (build_instruction): Use FPR_STATE not fpr_state.
11
12 Thu Oct 16 10:31:39 1997 Andrew Cagney <cagney@b1.cygnus.com>
13
14 * gencode.c (build_instruction): For "FPSQRT", output correct
15 number of arguments to Recip.
16
17 Tue Oct 14 17:38:18 1997 Andrew Cagney <cagney@b1.cygnus.com>
18
19 * Makefile.in (interp.o): Depends on sim-main.h
20
21 * interp.c (mips16_entry, ColdReset,dotrace): Add SD argument. Use GPR not registers.
22
23 * sim-main.h (sim_cpu): Add registers, register_widths, fpr_state,
24 ipc, dspc, pending_*, hiaccess, loaccess, state, dsstate fields.
25 (REGISTERS, REGISTER_WIDTHS, FPR_STATE, IPC, DSPC, PENDING_*,
26 STATE, DSSTATE): Define
27 (GPR, FGRIDX, ..): Define.
28
29 * interp.c (registers, register_widths, fpr_state, ipc, dspc,
30 pending_*, hiaccess, loaccess, state, dsstate): Delete globals.
31 (GPR, FGRIDX, ...): Delete macros.
32
33 * interp.c: Update names to match defines from sim-main.h
34
35 Tue Oct 14 15:11:45 1997 Andrew Cagney <cagney@b1.cygnus.com>
36
37 * interp.c (sim_monitor): Add SD argument.
38 (sim_warning): Delete. Replace calls with calls to
39 sim_io_eprintf.
40 (sim_error): Delete. Replace calls with sim_io_error.
41 (open_trace, writeout32, writeout16, getnum): Add SD argument.
42 (mips_set_profile): Rename from sim_set_profile. Add SD argument.
43 (mips_set_profile_size): Rename from sim_set_profile_size. Add SD
44 argument.
45 (mips_size): Rename from sim_size. Add SD argument.
46
47 * interp.c (simulator): Delete global variable.
48 (callback): Delete global variable.
49 (mips_option_handler, sim_open, sim_write, sim_read,
50 sim_store_register, sim_fetch_register, sim_info, sim_do_command,
51 sim_size,sim_monitor): Use sim_io_* not callback->*.
52 (sim_open): ZALLOC simulator struct.
53 (PROFILE): Do not define.
54
55 Tue Oct 14 13:35:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
56
57 * interp.c (sim_open), support.h: Replace CHECKSIM macro found in
58 support.h with corresponding code.
59
60 * sim-main.h (word64, uword64), support.h: Move definition to
61 sim-main.h.
62 (WORD64LO, WORD64HI, SET64LO, SET64HI, WORD64, UWORD64): Ditto.
63
64 * support.h: Delete
65 * Makefile.in: Update dependencies
66 * interp.c: Do not include.
67
68 Tue Oct 14 13:35:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
69
70 * interp.c (address_translation, load_memory, store_memory,
71 cache_op): Rename to from AddressTranslation et.al., make global,
72 add SD argument
73
74 * sim-main.h (AddressTranslation, LoadMemory, StoreMemory,
75 CacheOp): Define.
76
77 * interp.c (SignalException): Rename to signal_exception, make
78 global.
79
80 * interp.c (Interrupt, ...): Move definitions to sim-main.h.
81
82 * sim-main.h (SignalException, SignalExceptionInterrupt,
83 SignalExceptionInstructionFetch, SignalExceptionAddressStore,
84 SignalExceptionAddressLoad, SignalExceptionSimulatorFault,
85 SignalExceptionIntegerOverflow, SignalExceptionCoProcessorUnusable):
86 Define.
87
88 * interp.c, support.h: Use.
89
90 Tue Oct 14 13:19:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
91
92 * interp.c (ValueFPR, StoreFPR), sim-main.h: Make global, rename
93 to value_fpr / store_fpr. Add SD argument.
94 (NaN, Infinity, Less, Equal, AbsoluteValue, Negate, Add, Sub,
95 Multiply, Divide, Recip, SquareRoot, Convert): Make global.
96
97 * sim-main.h (ValueFPR, StoreFPR): Define.
98
99 Tue Oct 14 13:06:55 1997 Andrew Cagney <cagney@b1.cygnus.com>
100
101 * interp.c (sim_engine_run): Check consistency between configure
102 WITH_TARGET_WORD_BITSIZE and WITH_FLOATING_POINT and gensim GPRLEN
103 and HASFPU.
104
105 * configure.in (mips_bitsize): Configure WITH_TARGET_WORD_BITSIZE.
106 (mips_fpu): Configure WITH_FLOATING_POINT.
107 (mips_endian): Configure WITH_TARGET_ENDIAN.
108 * configure: Update.
109
110 Fri Oct 3 09:28:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
111
112 * configure: Regenerated to track ../common/aclocal.m4 changes.
113
114 start-sanitize-r5900
115 Mon Aug 25 19:11:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
116
117 * interp.c (MAX_REG): Allow up-to 128 registers.
118 (LO1, HI1): Define value that matches REGISTER_NAMES in gdb.
119 (REGISTER_SA): Ditto.
120 (sim_open): Initialize register_widths for r5900 specific
121 registers.
122 (sim_fetch_register, sim_store_register): Check for request of
123 r5900 specific SA register. Check for request for hi 64 bits of
124 r5900 specific registers.
125
126 end-sanitize-r5900
127 Mon Sep 29 14:45:00 1997 Bob Manson <manson@charmed.cygnus.com>
128
129 * configure: Regenerated.
130
131 Fri Sep 26 12:48:18 1997 Mark Alexander <marka@cygnus.com>
132
133 * interp.c: Allow Debug, DEPC, and EPC registers to be examined in GDB.
134
135 Thu Sep 25 11:15:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
136
137 * gencode.c (print_igen_insn_models): Assume certain architectures
138 include all mips* instructions.
139 (print_igen_insn_format): Use data_size==-1 as marker for MIPS16
140 instruction.
141
142 * Makefile.in (tmp.igen): Add target. Generate igen input from
143 gencode file.
144
145 * gencode.c (FEATURE_IGEN): Define.
146 (main): Add --igen option. Generate output in igen format.
147 (process_instructions): Format output according to igen option.
148 (print_igen_insn_format): New function.
149 (print_igen_insn_models): New function.
150 (process_instructions): Only issue warnings and ignore
151 instructions when no FEATURE_IGEN.
152
153 Wed Sep 24 17:38:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
154
155 * interp.c (COP_SD, COP_LD): Add UNUSED to pacify GCC for some
156 MIPS targets.
157
158 Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
159
160 * configure: Regenerated to track ../common/aclocal.m4 changes.
161
162 Tue Sep 23 10:19:51 1997 Andrew Cagney <cagney@b1.cygnus.com>
163
164 * Makefile.in (SIM_ALIGNMENT, SIM_ENDIAN, SIM_HOSTENDIAN,
165 SIM_RESERVED_BITS): Delete, moved to common.
166 (SIM_EXTRA_CFLAGS): Update.
167
168 Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
169
170 * configure.in: Configure non-strict memory alignment.
171 * configure: Regenerated to track ../common/aclocal.m4 changes.
172
173 Fri Sep 19 17:45:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
174
175 * configure: Regenerated to track ../common/aclocal.m4 changes.
176
177 Sat Sep 20 14:07:28 1997 Gavin Koch <gavin@cygnus.com>
178
179 * gencode.c (SDBBP,DERET): Added (3900) insns.
180 (RFE): Turn on for 3900.
181 * interp.c (DebugBreakPoint,DEPC,Debug,Debug_*): Added.
182 (dsstate): Made global.
183 (SUBTARGET_R3900): Added.
184 (CANCELDELAYSLOT): New.
185 (SignalException): Ignore SystemCall rather than ignore and
186 terminate. Add DebugBreakPoint handling.
187 (decode_coproc): New insns RFE, DERET; and new registers Debug
188 and DEPC protected by SUBTARGET_R3900.
189 (sim_engine_run): Use CANCELDELAYSLOT rather than clearing
190 bits explicitly.
191 * Makefile.in,configure.in: Add mips subtarget option.
192 * configure: Update.
193
194 Fri Sep 19 09:33:27 1997 Gavin Koch <gavin@cygnus.com>
195
196 * gencode.c: Add r3900 (tx39).
197
198 start-sanitize-tx19
199 * gencode.c: Fix some configuration problems by improving
200 the relationship between tx19 and tx39.
201 end-sanitize-tx19
202
203 Tue Sep 16 15:52:04 1997 Gavin Koch <gavin@cygnus.com>
204
205 * gencode.c (build_instruction): Don't need to subtract 4 for
206 JALR, just 2.
207
208 Tue Sep 16 11:32:28 1997 Gavin Koch <gavin@cygnus.com>
209
210 * interp.c: Correct some HASFPU problems.
211
212 Mon Sep 15 17:36:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
213
214 * configure: Regenerated to track ../common/aclocal.m4 changes.
215
216 Fri Sep 12 12:01:39 1997 Andrew Cagney <cagney@b1.cygnus.com>
217
218 * interp.c (mips_options): Fix samples option short form, should
219 be `x'.
220
221 Thu Sep 11 09:35:29 1997 Andrew Cagney <cagney@b1.cygnus.com>
222
223 * interp.c (sim_info): Enable info code. Was just returning.
224
225 Tue Sep 9 17:30:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
226
227 * interp.c (decode_coproc): Clarify warning about unsuported MTC0,
228 MFC0.
229
230 Tue Sep 9 16:28:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
231
232 * gencode.c (build_instruction): Use SIGNED64 for 64 bit
233 constants.
234 (build_instruction): Ditto for LL.
235
236 start-sanitize-tx19
237 Sun Sep 7 16:05:46 1997 Gavin Koch <gavin@cygnus.com>
238
239 * mips/configure.in, mips/gencode: Add tx19/r1900.
240
241 end-sanitize-tx19
242 Thu Sep 4 17:21:23 1997 Doug Evans <dje@seba>
243
244 * configure: Regenerated to track ../common/aclocal.m4 changes.
245
246 start-sanitize-r5900
247 Mon Sep 1 18:43:30 1997 Andrew Cagney <cagney@b1.cygnus.com>
248
249 * gencode.c (build_instruction): For "pabsw" and "pabsh", check
250 for overflow due to ABS of MININT, set result to MAXINT.
251 (build_instruction): For "psrlvw", signextend bit 31.
252
253 end-sanitize-r5900
254 Wed Aug 27 18:13:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
255
256 * configure: Regenerated to track ../common/aclocal.m4 changes.
257 * config.in: Ditto.
258
259 Wed Aug 27 14:12:27 1997 Andrew Cagney <cagney@b1.cygnus.com>
260
261 * interp.c (sim_open): Add call to sim_analyze_program, update
262 call to sim_config.
263
264 Tue Aug 26 10:40:07 1997 Andrew Cagney <cagney@b1.cygnus.com>
265
266 * interp.c (sim_kill): Delete.
267 (sim_create_inferior): Add ABFD argument. Set PC from same.
268 (sim_load): Move code initializing trap handlers from here.
269 (sim_open): To here.
270 (sim_load): Delete, use sim-hload.c.
271
272 * Makefile.in (SIM_OBJS): Add sim-hload.o module.
273
274 Mon Aug 25 17:50:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
275
276 * configure: Regenerated to track ../common/aclocal.m4 changes.
277 * config.in: Ditto.
278
279 Mon Aug 25 15:59:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
280
281 * interp.c (sim_open): Add ABFD argument.
282 (sim_load): Move call to sim_config from here.
283 (sim_open): To here. Check return status.
284
285 start-sanitize-r5900
286 * gencode.c (build_instruction): Do not define x8000000000000000,
287 x7FFFFFFFFFFFFFFF, or xFFFFFFFF80000000.
288
289 end-sanitize-r5900
290 start-sanitize-r5900
291 Mon Jul 28 19:49:29 1997 Andrew Cagney <cagney@b1.cygnus.com>
292
293 * gencode.c (build_instruction): For "pdivw", "pdivbw" and
294 "pdivuw" check for overflow due to signed divide by -1.
295
296 end-sanitize-r5900
297 Fri Jul 25 15:00:45 1997 Gavin Koch <gavin@cygnus.com>
298
299 * gencode.c (build_instruction): Two arg MADD should
300 not assign result to $0.
301
302 start-sanitize-r5900
303 Thu Jul 10 11:58:48 1997 Andrew Cagney <cagney@critters.cygnus.com>
304
305 * gencode.c (build_instruction): For "ppac5" use unsigned
306 arrithmetic so that the sign bit doesn't smear when right shifted.
307 (build_instruction): For "pdiv" perform sign extension when
308 storing results in HI and LO.
309 (build_instructions): For "pdiv" and "pdivbw" check for
310 divide-by-zero.
311 (build_instruction): For "pmfhl.slw" update hi part of dest
312 register as well as low part.
313 (build_instruction): For "pmfhl" portably handle long long values.
314 (build_instruction): For "pmfhl.sh" correctly negative values.
315 Store half words 2 and three in the correct place.
316 (build_instruction): For "psllvw", sign extend value after shift.
317
318 end-sanitize-r5900
319 Thu Jun 26 12:13:17 1997 Angela Marie Thomas (angela@cygnus.com)
320
321 * sim/mips/configure: Change default_sim_endian to 0 (bi-endian)
322 * sim/mips/configure.in: Regenerate.
323
324 Wed Jul 9 10:29:21 1997 Andrew Cagney <cagney@critters.cygnus.com>
325
326 * interp.c (SUB_REG_UW, SUB_REG_SW, SUB_REG_*): Use more explicit
327 signed8, unsigned8 et.al. types.
328
329 start-sanitize-r5900
330 * gencode.c (build_instruction): For PMULTU* do not sign extend
331 registers. Make generated code easier to debug.
332
333 end-sanitize-r5900
334 * interp.c (SUB_REG_FETCH): Handle both little and big endian
335 hosts when selecting subreg.
336
337 start-sanitize-r5900
338 Tue Jul 8 18:07:20 1997 Andrew Cagney <cagney@andros.cygnus.com>
339
340 * gencode.c (type_for_data_len): For 32bit operations concerned
341 with overflow, perform op using 64bits.
342 (build_instruction): For PADD, always compute operation using type
343 returned by type_for_data_len.
344 (build_instruction): For PSUBU, when overflow, saturate to zero as
345 actually underflow.
346
347 end-sanitize-r5900
348 Wed Jul 2 11:54:10 1997 Jeffrey A Law (law@cygnus.com)
349
350 start-sanitize-r5900
351 * gencode.c (build_instruction): Handle "pext5" according to
352 version 1.95 of the r5900 ISA.
353
354 * gencode.c (build_instruction): Handle "ppac5" according to
355 version 1.95 of the r5900 ISA.
356
357 end-sanitize-r5900
358 * interp.c (sim_engine_run): Reset the ZERO register to zero
359 regardless of FEATURE_WARN_ZERO.
360 * gencode.c (FEATURE_WARNINGS): Remove FEATURE_WARN_ZERO.
361
362 Wed Jun 4 10:43:14 1997 Andrew Cagney <cagney@b1.cygnus.com>
363
364 * interp.c (decode_coproc): Implement MTC0 N, CAUSE.
365 (SignalException): For BreakPoints ignore any mode bits and just
366 save the PC.
367 (SignalException): Always set the CAUSE register.
368
369 Tue Jun 3 05:00:33 1997 Andrew Cagney <cagney@b1.cygnus.com>
370
371 * interp.c (SignalException): Clear the simDELAYSLOT flag when an
372 exception has been taken.
373
374 * interp.c: Implement the ERET and mt/f sr instructions.
375
376 start-sanitize-r5900
377 Mon Jun 2 23:28:19 1997 Andrew Cagney <cagney@b1.cygnus.com>
378
379 * gencode.c (build_instruction): For paddu, extract unsigned
380 sub-fields.
381
382 * gencode.c (build_instruction): Saturate padds instead of padd
383 instructions.
384
385 end-sanitize-r5900
386 Sat May 31 00:44:16 1997 Andrew Cagney <cagney@b1.cygnus.com>
387
388 * interp.c (SignalException): Don't bother restarting an
389 interrupt.
390
391 Fri May 30 23:41:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
392
393 * interp.c (SignalException): Really take an interrupt.
394 (interrupt_event): Only deliver interrupts when enabled.
395
396 Tue May 27 20:08:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
397
398 * interp.c (sim_info): Only print info when verbose.
399 (sim_info) Use sim_io_printf for output.
400
401 Tue May 27 14:22:23 1997 Andrew Cagney <cagney@b1.cygnus.com>
402
403 * interp.c (CoProcPresent): Add UNUSED attribute - not used by all
404 mips architectures.
405
406 Tue May 27 14:22:23 1997 Andrew Cagney <cagney@b1.cygnus.com>
407
408 * interp.c (sim_do_command): Check for common commands if a
409 simulator specific command fails.
410
411 Thu May 22 09:32:03 1997 Gavin Koch <gavin@cygnus.com>
412
413 * interp.c (sim_engine_run): ifdef out uses of simSTOP, simSTEP
414 and simBE when DEBUG is defined.
415
416 Wed May 21 09:08:10 1997 Andrew Cagney <cagney@b1.cygnus.com>
417
418 * interp.c (interrupt_event): New function. Pass exception event
419 onto exception handler.
420
421 * configure.in: Check for stdlib.h.
422 * configure: Regenerate.
423
424 * gencode.c (build_instruction): Add UNUSED attribute to tempS
425 variable declaration.
426 (build_instruction): Initialize memval1.
427 (build_instruction): Add UNUSED attribute to byte, bigend,
428 reverse.
429 (build_operands): Ditto.
430
431 * interp.c: Fix GCC warnings.
432 (sim_get_quit_code): Delete.
433
434 * configure.in: Add INLINE, ENDIAN, HOSTENDIAN and WARNINGS.
435 * Makefile.in: Ditto.
436 * configure: Re-generate.
437
438 * Makefile.in (SIM_OBJS): Add sim-watch.o module.
439
440 Tue May 20 15:08:56 1997 Andrew Cagney <cagney@b1.cygnus.com>
441
442 * interp.c (mips_option_handler): New function parse argumes using
443 sim-options.
444 (myname): Replace with STATE_MY_NAME.
445 (sim_open): Delete check for host endianness - performed by
446 sim_config.
447 (simHOSTBE, simBE): Delete, replaced by sim-endian flags.
448 (sim_open): Move much of the initialization from here.
449 (sim_load): To here. After the image has been loaded and
450 endianness set.
451 (sim_open): Move ColdReset from here.
452 (sim_create_inferior): To here.
453 (sim_open): Make FP check less dependant on host endianness.
454
455 * Makefile.in (SIM_RUN_OBJS): Set to nrun.o - use new version or
456 run.
457 * interp.c (sim_set_callbacks): Delete.
458
459 * interp.c (membank, membank_base, membank_size): Replace with
460 STATE_MEMORY, STATE_MEM_SIZE, STATE_MEM_BASE.
461 (sim_open): Remove call to callback->init. gdb/run do this.
462
463 * interp.c: Update
464
465 * sim-main.h (SIM_HAVE_FLATMEM): Define.
466
467 * interp.c (big_endian_p): Delete, replaced by
468 current_target_byte_order.
469
470 Tue May 20 13:55:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
471
472 * interp.c (host_read_long, host_read_word, host_swap_word,
473 host_swap_long): Delete. Using common sim-endian.
474 (sim_fetch_register, sim_store_register): Use H2T.
475 (pipeline_ticks): Delete. Handled by sim-events.
476 (sim_info): Update.
477 (sim_engine_run): Update.
478
479 Tue May 20 13:42:03 1997 Andrew Cagney <cagney@b1.cygnus.com>
480
481 * interp.c (sim_stop_reason): Move code determining simEXCEPTION
482 reason from here.
483 (SignalException): To here. Signal using sim_engine_halt.
484 (sim_stop_reason): Delete, moved to common.
485
486 Tue May 20 10:19:48 1997 Andrew Cagney <cagney@b2.cygnus.com>
487
488 * interp.c (sim_open): Add callback argument.
489 (sim_set_callbacks): Delete SIM_DESC argument.
490 (sim_size): Ditto.
491
492 Mon May 19 18:20:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
493
494 * Makefile.in (SIM_OBJS): Add common modules.
495
496 * interp.c (sim_set_callbacks): Also set SD callback.
497 (set_endianness, xfer_*, swap_*): Delete.
498 (host_read_word, host_read_long, host_swap_word, host_swap_long):
499 Change to functions using sim-endian macros.
500 (control_c, sim_stop): Delete, use common version.
501 (simulate): Convert into.
502 (sim_engine_run): This function.
503 (sim_resume): Delete.
504
505 * interp.c (simulation): New variable - the simulator object.
506 (sim_kind): Delete global - merged into simulation.
507 (sim_load): Cleanup. Move PC assignment from here.
508 (sim_create_inferior): To here.
509
510 * sim-main.h: New file.
511 * interp.c (sim-main.h): Include.
512
513 Thu Apr 24 00:39:51 1997 Doug Evans <dje@canuck.cygnus.com>
514
515 * configure: Regenerated to track ../common/aclocal.m4 changes.
516
517 Wed Apr 23 17:32:19 1997 Doug Evans <dje@canuck.cygnus.com>
518
519 * tconfig.in (SIM_HAVE_BIENDIAN): Define.
520
521 Mon Apr 21 17:16:13 1997 Gavin Koch <gavin@cygnus.com>
522
523 * gencode.c (build_instruction): DIV instructions: check
524 for division by zero and integer overflow before using
525 host's division operation.
526
527 Thu Apr 17 03:18:14 1997 Doug Evans <dje@canuck.cygnus.com>
528
529 * Makefile.in (SIM_OBJS): Add sim-load.o.
530 * interp.c: #include bfd.h.
531 (target_byte_order): Delete.
532 (sim_kind, myname, big_endian_p): New static locals.
533 (sim_open): Set sim_kind, myname. Move call to set_endianness to
534 after argument parsing. Recognize -E arg, set endianness accordingly.
535 (sim_load): Return SIM_RC. New arg abfd. Call sim_load_file to
536 load file into simulator. Set PC from bfd.
537 (sim_create_inferior): Return SIM_RC. Delete arg start_address.
538 (set_endianness): Use big_endian_p instead of target_byte_order.
539
540 Wed Apr 16 17:55:37 1997 Andrew Cagney <cagney@b1.cygnus.com>
541
542 * interp.c (sim_size): Delete prototype - conflicts with
543 definition in remote-sim.h. Correct definition.
544
545 Mon Apr 7 15:45:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
546
547 * configure: Regenerated to track ../common/aclocal.m4 changes.
548 * config.in: Ditto.
549
550 Wed Apr 2 15:06:28 1997 Doug Evans <dje@canuck.cygnus.com>
551
552 * interp.c (sim_open): New arg `kind'.
553
554 * configure: Regenerated to track ../common/aclocal.m4 changes.
555
556 Wed Apr 2 14:34:19 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
557
558 * configure: Regenerated to track ../common/aclocal.m4 changes.
559
560 Tue Mar 25 11:38:22 1997 Doug Evans <dje@canuck.cygnus.com>
561
562 * interp.c (sim_open): Set optind to 0 before calling getopt.
563
564 Wed Mar 19 01:14:00 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
565
566 * configure: Regenerated to track ../common/aclocal.m4 changes.
567
568 Mon Mar 17 10:52:59 1997 Gavin Koch <gavin@cetus.cygnus.com>
569
570 * interp.c : Replace uses of pr_addr with pr_uword64
571 where the bit length is always 64 independent of SIM_ADDR.
572 (pr_uword64) : added.
573
574 Mon Mar 17 15:10:07 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
575
576 * configure: Re-generate.
577
578 Fri Mar 14 10:34:11 1997 Michael Meissner <meissner@cygnus.com>
579
580 * configure: Regenerate to track ../common/aclocal.m4 changes.
581
582 Thu Mar 13 12:51:36 1997 Doug Evans <dje@canuck.cygnus.com>
583
584 * interp.c (sim_open): New SIM_DESC result. Argument is now
585 in argv form.
586 (other sim_*): New SIM_DESC argument.
587
588 start-sanitize-r5900
589 Wed Feb 26 18:32:21 1997 Gavin Koch <gavin@cygnus.com>
590
591 * gencode.c (POP_AND,POP_OR,POP_NOR,POP_XOR):
592 Change values to avoid overloading DOUBLEWORD which is tested
593 for all insns.
594 * gencode.c: reinstate "offending code".
595
596 end-sanitize-r5900
597 Mon Feb 24 22:47:14 1997 Dawn Perchik <dawn@cygnus.com>
598
599 * interp.c: Fix printing of addresses for non-64-bit targets.
600 (pr_addr): Add function to print address based on size.
601 start-sanitize-r5900
602 * gencode.c: #ifdef out offending code until a permanent fix
603 can be added. Code is causing build errors for non-5900 mips targets.
604 end-sanitize-r5900
605
606 start-sanitize-r5900
607 Thu Feb 20 10:40:24 1997 Gavin Koch <gavin@cetus.cygnus.com>
608
609 * gencode.c (process_instructions): Correct test for ISA dependent
610 architecture bits in isa field of MIPS_DECODE.
611
612 end-sanitize-r5900
613 Wed Feb 19 14:42:09 1997 Mark Alexander <marka@cygnus.com>
614
615 * interp.c (simopen): Add support for LSI MiniRISC PMON vectors.
616
617 start-sanitize-r5900
618 Tue Feb 18 17:03:47 1997 Gavin Koch <gavin@cygnus.com>
619
620 * gencode.c (MIPS_DECODE): Correct instruction feature flags for
621 PMADDUW.
622
623 end-sanitize-r5900
624 Thu Feb 13 14:08:30 1997 Ian Lance Taylor <ian@cygnus.com>
625
626 * gencode.c (build_mips16_operands): Correct computation of base
627 address for extended PC relative instruction.
628
629 start-sanitize-r5900
630 Fri Feb 7 11:12:44 1997 Gavin Koch <gavin@cygnus.com>
631
632 * Makefile.in, configure, configure.in, gencode.c,
633 interp.c, support.h: add r5900.
634
635 end-sanitize-r5900
636 Thu Feb 6 17:16:15 1997 Ian Lance Taylor <ian@cygnus.com>
637
638 * interp.c (mips16_entry): Add support for floating point cases.
639 (SignalException): Pass floating point cases to mips16_entry.
640 (ValueFPR): Don't restrict fmt_single and fmt_word to even
641 registers.
642 (StoreFPR): Likewise. Also, don't clobber fpr + 1 for fmt_single
643 or fmt_word.
644 (COP_LW): Pass fmt_word rather than fmt_uninterpreted to StoreFPR,
645 and then set the state to fmt_uninterpreted.
646 (COP_SW): Temporarily set the state to fmt_word while calling
647 ValueFPR.
648
649 Tue Feb 4 16:48:25 1997 Ian Lance Taylor <ian@cygnus.com>
650
651 * gencode.c (build_instruction): The high order may be set in the
652 comparison flags at any ISA level, not just ISA 4.
653
654 Tue Feb 4 13:33:30 1997 Doug Evans <dje@canuck.cygnus.com>
655
656 * Makefile.in (@COMMON_MAKEFILE_FRAG): Use
657 COMMON_{PRE,POST}_CONFIG_FRAG instead.
658 * configure.in: sinclude ../common/aclocal.m4.
659 * configure: Regenerated.
660
661 Fri Jan 31 11:11:45 1997 Ian Lance Taylor <ian@cygnus.com>
662
663 * configure: Rebuild after change to aclocal.m4.
664
665 Thu Jan 23 11:46:23 1997 Stu Grossman (grossman@critters.cygnus.com)
666
667 * configure configure.in Makefile.in: Update to new configure
668 scheme which is more compatible with WinGDB builds.
669 * configure.in: Improve comment on how to run autoconf.
670 * configure: Re-run autoconf to get new ../common/aclocal.m4.
671 * Makefile.in: Use autoconf substitution to install common
672 makefile fragment.
673
674 Wed Jan 8 12:39:03 1997 Jim Wilson <wilson@cygnus.com>
675
676 * gencode.c (build_instruction): Use BigEndianCPU instead of
677 ByteSwapMem.
678
679 Thu Jan 02 22:23:04 1997 Mark Alexander <marka@cygnus.com>
680
681 * interp.c (sim_monitor): Make output to stdout visible in
682 wingdb's I/O log window.
683
684 Tue Dec 31 07:04:00 1996 Mark Alexander <marka@cygnus.com>
685
686 * support.h: Undo previous change to SIGTRAP
687 and SIGQUIT values.
688
689 Mon Dec 30 17:36:06 1996 Ian Lance Taylor <ian@cygnus.com>
690
691 * interp.c (store_word, load_word): New static functions.
692 (mips16_entry): New static function.
693 (SignalException): Look for mips16 entry and exit instructions.
694 (simulate): Use the correct index when setting fpr_state after
695 doing a pending move.
696
697 Sun Dec 29 09:37:18 1996 Mark Alexander <marka@cygnus.com>
698
699 * interp.c: Fix byte-swapping code throughout to work on
700 both little- and big-endian hosts.
701
702 Sun Dec 29 09:18:32 1996 Mark Alexander <marka@cygnus.com>
703
704 * support.h: Make definitions of SIGTRAP and SIGQUIT consistent
705 with gdb/config/i386/xm-windows.h.
706
707 Fri Dec 27 22:48:51 1996 Mark Alexander <marka@cygnus.com>
708
709 * gencode.c (build_instruction): Work around MSVC++ code gen bug
710 that messes up arithmetic shifts.
711
712 Fri Dec 20 11:04:05 1996 Stu Grossman (grossman@critters.cygnus.com)
713
714 * support.h: Use _WIN32 instead of __WIN32__. Also add defs for
715 SIGTRAP and SIGQUIT for _WIN32.
716
717 Thu Dec 19 14:07:27 1996 Ian Lance Taylor <ian@cygnus.com>
718
719 * gencode.c (build_instruction) [MUL]: Cast operands to word64, to
720 force a 64 bit multiplication.
721 (build_instruction) [OR]: In mips16 mode, don't do anything if the
722 destination register is 0, since that is the default mips16 nop
723 instruction.
724
725 Mon Dec 16 14:59:38 1996 Ian Lance Taylor <ian@cygnus.com>
726
727 * gencode.c (MIPS16_DECODE): SWRASP is I8, not RI.
728 (build_endian_shift): Don't check proc64.
729 (build_instruction): Always set memval to uword64. Cast op2 to
730 uword64 when shifting it left in memory instructions. Always use
731 the same code for stores--don't special case proc64.
732
733 * gencode.c (build_mips16_operands): Fix base PC value for PC
734 relative operands.
735 (build_instruction): Call JALDELAYSLOT rather than DELAYSLOT for a
736 jal instruction.
737 * interp.c (simJALDELAYSLOT): Define.
738 (JALDELAYSLOT): Define.
739 (INDELAYSLOT, INJALDELAYSLOT): Define.
740 (simulate): Clear simJALDELAYSLOT when simDELAYSLOT is cleared.
741
742 Tue Dec 24 22:11:20 1996 Angela Marie Thomas (angela@cygnus.com)
743
744 * interp.c (sim_open): add flush_cache as a PMON routine
745 (sim_monitor): handle flush_cache by ignoring it
746
747 Wed Dec 11 13:53:51 1996 Jim Wilson <wilson@cygnus.com>
748
749 * gencode.c (build_instruction): Use !ByteSwapMem instead of
750 BigEndianMem.
751 * interp.c (CONFIG, config_EP_{mask,shift,D,DxxDxx, config_BE): Delete.
752 (BigEndianMem): Rename to ByteSwapMem and change sense.
753 (BigEndianCPU, sim_write, LoadMemory, StoreMemory): Change
754 BigEndianMem references to !ByteSwapMem.
755 (set_endianness): New function, with prototype.
756 (sim_open): Call set_endianness.
757 (sim_info): Use simBE instead of BigEndianMem.
758 (xfer_direct_word, xfer_direct_long, swap_direct_word,
759 swap_direct_long, xfer_big_word, xfer_big_long, xfer_little_word,
760 xfer_little_long, swap_word, swap_long): Delete unnecessary MSC_VER
761 ifdefs, keeping the prototype declaration.
762 (swap_word): Rewrite correctly.
763 (ColdReset): Delete references to CONFIG. Delete endianness related
764 code; moved to set_endianness.
765
766 Tue Dec 10 11:32:04 1996 Jim Wilson <wilson@cygnus.com>
767
768 * gencode.c (build_instruction, case JUMP): Truncate PC to 32 bits.
769 * interp.c (CHECKHILO): Define away.
770 (simSIGINT): New macro.
771 (membank_size): Increase from 1MB to 2MB.
772 (control_c): New function.
773 (sim_resume): Rename parameter signal to signal_number. Add local
774 variable prev. Call signal before and after simulate.
775 (sim_stop_reason): Add simSIGINT support.
776 (sim_warning, sim_error, dotrace, SignalException): Define as stdarg
777 functions always.
778 (sim_warning): Delete call to SignalException. Do call printf_filtered
779 if logfh is NULL.
780 (AddressTranslation): Add #ifdef DEBUG around debugging message and
781 a call to sim_warning.
782
783 Wed Nov 27 11:53:50 1996 Ian Lance Taylor <ian@cygnus.com>
784
785 * gencode.c (process_instructions): If ! proc64, skip DOUBLEWORD
786 16 bit instructions.
787
788 Tue Nov 26 11:53:12 1996 Ian Lance Taylor <ian@cygnus.com>
789
790 Add support for mips16 (16 bit MIPS implementation):
791 * gencode.c (inst_type): Add mips16 instruction encoding types.
792 (GETDATASIZEINSN): Define.
793 (MIPS_DECODE): Add REG flag to dsllv, dsrav, and dsrlv. Add
794 jalx. Add LEFT flag to mfhi and mflo. Add RIGHT flag to mthi and
795 mtlo.
796 (MIPS16_DECODE): New table, for mips16 instructions.
797 (bitmap_val): New static function.
798 (struct mips16_op): Define.
799 (mips16_op_table): New table, for mips16 operands.
800 (build_mips16_operands): New static function.
801 (process_instructions): If PC is odd, decode a mips16
802 instruction. Break out instruction handling into new
803 build_instruction function.
804 (build_instruction): New static function, broken out of
805 process_instructions. Check modifiers rather than flags for SHIFT
806 bit count and m[ft]{hi,lo} direction.
807 (usage): Pass program name to fprintf.
808 (main): Remove unused variable this_option_optind. Change
809 ``*loptarg++'' to ``loptarg++''.
810 (my_strtoul): Parenthesize && within ||.
811 * interp.c (LoadMemory): Accept a halfword pAddr if vAddr is odd.
812 (simulate): If PC is odd, fetch a 16 bit instruction, and
813 increment PC by 2 rather than 4.
814 * configure.in: Add case for mips16*-*-*.
815 * configure: Rebuild.
816
817 Fri Nov 22 08:49:36 1996 Mark Alexander <marka@cygnus.com>
818
819 * interp.c: Allow -t to enable tracing in standalone simulator.
820 Fix garbage output in trace file and error messages.
821
822 Wed Nov 20 01:54:37 1996 Doug Evans <dje@canuck.cygnus.com>
823
824 * Makefile.in: Delete stuff moved to ../common/Make-common.in.
825 (SIM_{OBJS,EXTRA_CFLAGS,EXTRA_CLEAN}): Define.
826 * configure.in: Simplify using macros in ../common/aclocal.m4.
827 * configure: Regenerated.
828 * tconfig.in: New file.
829
830 Tue Nov 12 13:34:00 1996 Dawn Perchik <dawn@cygnus.com>
831
832 * interp.c: Fix bugs in 64-bit port.
833 Use ansi function declarations for msvc compiler.
834 Initialize and test file pointer in trace code.
835 Prevent duplicate definition of LAST_EMED_REGNUM.
836
837 Tue Oct 15 11:07:06 1996 Mark Alexander <marka@cygnus.com>
838
839 * interp.c (xfer_big_long): Prevent unwanted sign extension.
840
841 Thu Sep 26 17:35:00 1996 James G. Smith <jsmith@cygnus.co.uk>
842
843 * interp.c (SignalException): Check for explicit terminating
844 breakpoint value.
845 * gencode.c: Pass instruction value through SignalException()
846 calls for Trap, Breakpoint and Syscall.
847
848 Thu Sep 26 11:35:17 1996 James G. Smith <jsmith@cygnus.co.uk>
849
850 * interp.c (SquareRoot): Add HAVE_SQRT check to ensure sqrt() is
851 only used on those hosts that provide it.
852 * configure.in: Add sqrt() to list of functions to be checked for.
853 * config.in: Re-generated.
854 * configure: Re-generated.
855
856 Fri Sep 20 15:47:12 1996 Ian Lance Taylor <ian@cygnus.com>
857
858 * gencode.c (process_instructions): Call build_endian_shift when
859 expanding STORE RIGHT, to fix swr.
860 * support.h (SIGNEXTEND): If the sign bit is not set, explicitly
861 clear the high bits.
862 * interp.c (Convert): Fix fmt_single to fmt_long to not truncate.
863 Fix float to int conversions to produce signed values.
864
865 Thu Sep 19 15:34:17 1996 Ian Lance Taylor <ian@cygnus.com>
866
867 * gencode.c (MIPS_DECODE): Set UNSIGNED for multu instruction.
868 (process_instructions): Correct handling of nor instruction.
869 Correct shift count for 32 bit shift instructions. Correct sign
870 extension for arithmetic shifts to not shift the number of bits in
871 the type. Fix 64 bit multiply high word calculation. Fix 32 bit
872 unsigned multiply. Fix ldxc1 and friends to use coprocessor 1.
873 Fix madd.
874 * interp.c (CHECKHILO): Don't set HIACCESS, LOACCESS, or HLPC.
875 It's OK to have a mult follow a mult. What's not OK is to have a
876 mult follow an mfhi.
877 (Convert): Comment out incorrect rounding code.
878
879 Mon Sep 16 11:38:16 1996 James G. Smith <jsmith@cygnus.co.uk>
880
881 * interp.c (sim_monitor): Improved monitor printf
882 simulation. Tidied up simulator warnings, and added "--log" option
883 for directing warning message output.
884 * gencode.c: Use sim_warning() rather than WARNING macro.
885
886 Thu Aug 22 15:03:12 1996 Ian Lance Taylor <ian@cygnus.com>
887
888 * Makefile.in (gencode): Depend upon gencode.o, getopt.o, and
889 getopt1.o, rather than on gencode.c. Link objects together.
890 Don't link against -liberty.
891 (gencode.o, getopt.o, getopt1.o): New targets.
892 * gencode.c: Include <ctype.h> and "ansidecl.h".
893 (AND): Undefine after including "ansidecl.h".
894 (ULONG_MAX): Define if not defined.
895 (OP_*): Don't define macros; now defined in opcode/mips.h.
896 (main): Call my_strtoul rather than strtoul.
897 (my_strtoul): New static function.
898
899 Wed Jul 17 18:12:38 1996 Stu Grossman (grossman@critters.cygnus.com)
900
901 * gencode.c (process_instructions): Generate word64 and uword64
902 instead of `long long' and `unsigned long long' data types.
903 * interp.c: #include sysdep.h to get signals, and define default
904 for SIGBUS.
905 * (Convert): Work around for Visual-C++ compiler bug with type
906 conversion.
907 * support.h: Make things compile under Visual-C++ by using
908 __int64 instead of `long long'. Change many refs to long long
909 into word64/uword64 typedefs.
910
911 Wed Jun 26 12:24:55 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
912
913 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
914 INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
915 (docdir): Removed.
916 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
917 (AC_PROG_INSTALL): Added.
918 (AC_PROG_CC): Moved to before configure.host call.
919 * configure: Rebuilt.
920
921 Wed Jun 5 08:28:13 1996 James G. Smith <jsmith@cygnus.co.uk>
922
923 * configure.in: Define @SIMCONF@ depending on mips target.
924 * configure: Rebuild.
925 * Makefile.in (run): Add @SIMCONF@ to control simulator
926 construction.
927 * gencode.c: Change LOADDRMASK to 64bit memory model only.
928 * interp.c: Remove some debugging, provide more detailed error
929 messages, update memory accesses to use LOADDRMASK.
930
931 Mon Jun 3 11:55:03 1996 Ian Lance Taylor <ian@cygnus.com>
932
933 * configure.in: Add calls to AC_CONFIG_HEADER, AC_CHECK_HEADERS,
934 AC_CHECK_LIB, and AC_CHECK_FUNCS. Change AC_OUTPUT to set
935 stamp-h.
936 * configure: Rebuild.
937 * config.in: New file, generated by autoheader.
938 * interp.c: Include "config.h". Include <stdlib.h>, <string.h>,
939 and <strings.h> if they exist. Replace #ifdef sun with #ifdef
940 HAVE_ANINT and HAVE_AINT, as appropriate.
941 * Makefile.in (run): Use @LIBS@ rather than -lm.
942 (interp.o): Depend upon config.h.
943 (Makefile): Just rebuild Makefile.
944 (clean): Remove stamp-h.
945 (mostlyclean): Make the same as clean, not as distclean.
946 (config.h, stamp-h): New targets.
947
948 Fri May 10 00:41:17 1996 James G. Smith <jsmith@cygnus.co.uk>
949
950 * interp.c (ColdReset): Fix boolean test. Make all simulator
951 globals static.
952
953 Wed May 8 15:12:58 1996 James G. Smith <jsmith@cygnus.co.uk>
954
955 * interp.c (xfer_direct_word, xfer_direct_long,
956 swap_direct_word, swap_direct_long, xfer_big_word,
957 xfer_big_long, xfer_little_word, xfer_little_long,
958 swap_word,swap_long): Added.
959 * interp.c (ColdReset): Provide function indirection to
960 host<->simulated_target transfer routines.
961 * interp.c (sim_store_register, sim_fetch_register): Updated to
962 make use of indirected transfer routines.
963
964 Fri Apr 19 15:48:24 1996 James G. Smith <jsmith@cygnus.co.uk>
965
966 * gencode.c (process_instructions): Ensure FP ABS instruction
967 recognised.
968 * interp.c (AbsoluteValue): Add routine. Also provide simple PMON
969 system call support.
970
971 Wed Apr 10 09:51:38 1996 James G. Smith <jsmith@cygnus.co.uk>
972
973 * interp.c (sim_do_command): Complain if callback structure not
974 initialised.
975
976 Thu Mar 28 13:50:51 1996 James G. Smith <jsmith@cygnus.co.uk>
977
978 * interp.c (Convert): Provide round-to-nearest and round-to-zero
979 support for Sun hosts.
980 * Makefile.in (gencode): Ensure the host compiler and libraries
981 used for cross-hosted build.
982
983 Wed Mar 27 14:42:12 1996 James G. Smith <jsmith@cygnus.co.uk>
984
985 * interp.c, gencode.c: Some more (TODO) tidying.
986
987 Thu Mar 7 11:19:33 1996 James G. Smith <jsmith@cygnus.co.uk>
988
989 * gencode.c, interp.c: Replaced explicit long long references with
990 WORD64HI, WORD64LO, SET64HI and SET64LO macro calls.
991 * support.h (SET64LO, SET64HI): Macros added.
992
993 Wed Feb 21 12:16:21 1996 Ian Lance Taylor <ian@cygnus.com>
994
995 * configure: Regenerate with autoconf 2.7.
996
997 Tue Jan 30 08:48:18 1996 Fred Fish <fnf@cygnus.com>
998
999 * interp.c (LoadMemory): Enclose text following #endif in /* */.
1000 * support.h: Remove superfluous "1" from #if.
1001 * support.h (CHECKSIM): Remove stray 'a' at end of line.
1002
1003 Mon Dec 4 11:44:40 1995 Jamie Smith <jsmith@cygnus.com>
1004
1005 * interp.c (StoreFPR): Control UndefinedResult() call on
1006 WARN_RESULT manifest.
1007
1008 Fri Dec 1 16:37:19 1995 James G. Smith <jsmith@cygnus.co.uk>
1009
1010 * gencode.c: Tidied instruction decoding, and added FP instruction
1011 support.
1012
1013 * interp.c: Added dineroIII, and BSD profiling support. Also
1014 run-time FP handling.
1015
1016 Sun Oct 22 00:57:18 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk>
1017
1018 * Changelog, Makefile.in, README.Cygnus, configure, configure.in,
1019 gencode.c, interp.c, support.h: created.