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