]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/v850/ChangeLog
sim: mn10300: add SIGTRAP fallback
[thirdparty/binutils-gdb.git] / sim / v850 / ChangeLog
CommitLineData
f4fdd845
MF
12021-05-17 Mike Frysinger <vapier@gentoo.org>
2
3 * sim-main.h (SIM_HAVE_COMMON_SIM_STATE): Delete.
4
383861bd
MF
52021-05-17 Mike Frysinger <vapier@gentoo.org>
6
7 * sim-main.h (SIM_HAVE_COMMON_SIM_STATE): Define.
8 (struct sim_state): Delete.
9
6df01ab8
MF
102021-05-16 Mike Frysinger <vapier@gentoo.org>
11
12 * interp.c, simops.c: Include defs.h.
13 * sim-main.h: Delete config.h include.
14
79633c12
MF
152021-05-16 Mike Frysinger <vapier@gentoo.org>
16
17 * config.in, configure: Regenerate.
18
aa0fca16
MF
192021-05-04 Mike Frysinger <vapier@gentoo.org>
20
21 * configure: Regenerate.
22
f08708cb
SM
232021-05-03 Simon Marchi <simon.marchi@polymtl.ca>
24
25 * interp.c (sim_open): Adjust format string specifier.
26
fe348617
MF
272021-05-01 Mike Frysinger <vapier@gentoo.org>
28
29 * config.in, configure: Regenerate.
30
66d055c7
MF
312021-04-26 Mike Frysinger <vapier@gentoo.org>
32
33 * aclocal.m4, config.in, configure: Regenerate.
34
19f6a43c
TT
352021-04-22 Tom Tromey <tom@tromey.com>
36
37 * configure, config.in: Rebuild.
38
d6581fcd
TT
392021-04-22 Tom Tromey <tom@tromey.com>
40
41 * Makefile.in (INCLUDE): Remove.
42
e7d8f1da
TT
432021-04-22 Tom Tromey <tom@tromey.com>
44
45 * Makefile.in (interp.o, simops.o, semantics.o): Remove.
46
efd82ac7
TT
472021-04-22 Tom Tromey <tom@tromey.com>
48
49 * configure: Rebuild.
50
2662c237
MF
512021-04-21 Mike Frysinger <vapier@gentoo.org>
52
53 * aclocal.m4: Regenerate.
54
1f195bc3
SM
552021-04-21 Simon Marchi <simon.marchi@polymtl.ca>
56
57 * configure: Regenerate.
58
2c2645d7
MF
592021-04-18 Mike Frysinger <vapier@gentoo.org>
60
61 * configure.ac: Change AC_CHECK_HEADERS to AC_CHECK_HEADERS_ONCE.
62 * configure: Regenerate.
63
37e9f182
MF
642021-04-18 Mike Frysinger <vapier@gentoo.org>
65
66 * configure.ac: Change AC_CHECK_FUNCS to AC_CHECK_FUNCS_ONCE and
67 delete time.
68 * configure: Regenerate.
69
d5a71b11
MF
702021-04-12 Mike Frysinger <vapier@gentoo.org>
71
72 * interp.c (sim_open): Delete 3rd arg to sim_cpu_alloc_all.
73
2b8d134b
SM
742021-04-08 Simon Marchi <simon.marchi@polymtl.ca>
75
76 * Makefile.in: Set ASAN_OPTIONS when running igen.
77
b6b1c790
MF
782021-04-02 Mike Frysinger <vapier@gentoo.org>
79
80 * Makefile.in (../igen/igen): Delete rule.
81 (tmp-igen): Delete ../igen make.
82
c2783492
MF
832021-04-02 Mike Frysinger <vapier@gentoo.org>
84
85 * aclocal.m4, configure: Regenerate.
86
ebe9564b
MF
872021-02-28 Mike Frysinger <vapier@gentoo.org>
88
89 * configure: Regenerate.
90
760b3e8b
MF
912021-02-21 Mike Frysinger <vapier@gentoo.org>
92
93 * configure.ac (AC_CONFIG_MACRO_DIRS): Replace common with m4.
94 * aclocal.m4, configure: Regenerate.
95
136da8cd
MF
962021-02-13 Mike Frysinger <vapier@gentoo.org>
97
98 * configure.ac: Replace sinclude with AC_CONFIG_MACRO_DIRS.
99 * aclocal.m4, configure: Regenerate.
100
4c0d76b9
MF
1012021-02-06 Mike Frysinger <vapier@gentoo.org>
102
103 * interp.c (sim_open): Delete call to STATE_WATCHPOINTS.
104
aa09469f
MF
1052021-02-06 Mike Frysinger <vapier@gentoo.org>
106
107 * configure: Regenerate.
108
5f05936d
MF
1092021-01-31 Mike Frysinger <vapier@gentoo.org>
110
111 * simops.c: Include stdlib.h.
112 * configure.ac (SIM_AC_OPTION_WARNINGS): Delete call.
113 * configure: Regenerate.
114
44b30b7f
MF
1152021-01-31 Mike Frysinger <vapier@gentoo.org>
116
117 * simops.c (OP_10007E0): Change reterr to RETERR.
118
d4e3adda
MF
1192021-01-30 Mike Frysinger <vapier@gentoo.org>
120
121 * interp.c (sim_open): Delete STATE_WATCHPOINTS (sd)->sizeof_pc.
122
68ed2854
MF
1232021-01-11 Mike Frysinger <vapier@gentoo.org>
124
125 * config.in, configure: Regenerate.
126 * interp.c, simops.c: Delete HAVE_STRING_H, HAVE_STRINGS_H,
127 HAVE_STDLIB_H, HAVE_TIME_H, and strings.h include.
128
50df264d
MF
1292021-01-09 Mike Frysinger <vapier@gentoo.org>
130
131 * configure: Regenerate.
132
bf470982
MF
1332021-01-09 Mike Frysinger <vapier@gentoo.org>
134
135 * configure.ac (SIM_AC_OPTION_WARNINGS): Pass "no".
136 * configure: Regenerate.
137
46f900c0
MF
1382021-01-08 Mike Frysinger <vapier@gentoo.org>
139
140 * configure: Regenerate.
141
dfb856ba
MF
1422021-01-04 Mike Frysinger <vapier@gentoo.org>
143
144 * configure: Regenerate.
145
5c887dd5
JB
1462017-09-06 John Baldwin <jhb@FreeBSD.org>
147
148 * configure: Regenerate.
149
ce39bd38
MF
1502016-01-10 Mike Frysinger <vapier@gentoo.org>
151
152 * config.in, configure: Regenerate.
153
22be3fbe
MF
1542016-01-10 Mike Frysinger <vapier@gentoo.org>
155
156 * configure: Regenerate.
157
0dc73ef7
MF
1582016-01-10 Mike Frysinger <vapier@gentoo.org>
159
160 * configure: Regenerate.
161
347fe5bb
MF
1622016-01-10 Mike Frysinger <vapier@gentoo.org>
163
164 * configure: Regenerate.
165
99d8e879
MF
1662016-01-10 Mike Frysinger <vapier@gentoo.org>
167
168 * configure: Regenerate.
169
35656e95
MF
1702016-01-10 Mike Frysinger <vapier@gentoo.org>
171
172 * configure: Regenerate.
173
16f7876d
MF
1742016-01-10 Mike Frysinger <vapier@gentoo.org>
175
176 * configure: Regenerate.
177
e19418e0
MF
1782016-01-10 Mike Frysinger <vapier@gentoo.org>
179
180 * configure: Regenerate.
181
936df756
MF
1822016-01-09 Mike Frysinger <vapier@gentoo.org>
183
184 * config.in, configure: Regenerate.
185
2e3d4f4d
MF
1862016-01-06 Mike Frysinger <vapier@gentoo.org>
187
188 * interp.c (sim_open): Mark argv const.
189 (sim_create_inferior): Mark argv and env const.
190
9bbf6f91
MF
1912016-01-04 Mike Frysinger <vapier@gentoo.org>
192
193 * configure: Regenerate.
194
77cf2ef5
MF
1952016-01-03 Mike Frysinger <vapier@gentoo.org>
196
197 * interp.c (sim_open): Update sim_parse_args comment.
198
0cb8d851
MF
1992016-01-03 Mike Frysinger <vapier@gentoo.org>
200
201 * configure.ac (SIM_AC_OPTION_HOSTENDIAN): Delete.
202 * configure: Regenerate.
203
1ac72f06
MF
2042016-01-02 Mike Frysinger <vapier@gentoo.org>
205
206 * configure.ac (SIM_AC_OPTION_ENDIAN): Change LITTLE_ENDIAN to
207 LITTLE.
208 * configure: Regenerate.
209
e1211e55
MF
2102015-12-30 Mike Frysinger <vapier@gentoo.org>
211
212 * wrapper.c (v850_reg_store, v850_reg_fetch): Define.
213 (sim_open): Call CPU_REG_FETCH/CPU_REG_STORE.
214 (sim_store_register): Rename to ...
215 (v850_reg_store): ... this.
216 (sim_fetch_register): Rename to ...
217 (v850_reg_fetch): ... this.
218
5e744ef8
MF
2192015-12-27 Mike Frysinger <vapier@gentoo.org>
220
221 * Makefile.in (SIM_OBJS): Delete sim-hload.o.
222
1b393626
MF
2232015-12-26 Mike Frysinger <vapier@gentoo.org>
224
225 * config.in, configure: Regenerate.
226
84e8e361
MF
2272015-12-24 Mike Frysinger <vapier@gentoo.org>
228
229 * sim-main.h (WITH_WATCHPOINTS): Delete.
230
1d19cae7
DV
2312015-12-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
232
233 * simops.c (v850_bins): Fix left shift of negative value.
234
c389945b
MF
2352015-11-17 Mike Frysinger <vapier@gentoo.org>
236
237 * sim-main.h (WITH_CORE): Delete.
238
cdf850e9
MF
2392015-11-17 Mike Frysinger <vapier@gentoo.org>
240
241 * sim-main.h (WITH_MODULO_MEMORY): Delete.
242
797eee42
MF
2432015-11-15 Mike Frysinger <vapier@gentoo.org>
244
245 * Makefile.in (SIM_OBJS): Delete sim-reason.o and sim-stop.o.
246
6e4f085c
MF
2472015-11-14 Mike Frysinger <vapier@gentoo.org>
248
249 * interp.c (sim_close): Delete.
250
8d0978fb
MF
2512015-06-23 Mike Frysinger <vapier@gentoo.org>
252
253 * configure: Regenerate.
254
a3487082
MF
2552015-06-12 Mike Frysinger <vapier@gentoo.org>
256
257 * configure: Regenerate.
258
306f4178
MF
2592015-06-12 Mike Frysinger <vapier@gentoo.org>
260
261 * configure: Regenerate.
262
5d19c366
MF
2632015-06-11 Mike Frysinger <vapier@gentoo.org>
264
265 * interp.c (INLINE): Delete define.
266
20bca71d
MF
2672015-04-18 Mike Frysinger <vapier@gentoo.org>
268
269 * sim-main.h (SIM_CPU): Delete.
270
7e83aa92
MF
2712015-04-18 Mike Frysinger <vapier@gentoo.org>
272
273 * sim-main.h (sim_cia): Delete.
274
034685f9
MF
2752015-04-17 Mike Frysinger <vapier@gentoo.org>
276
277 * sim-main.h (CIA_GET, CIA_SET): Delete.
278
78e9aa70
MF
2792015-04-15 Mike Frysinger <vapier@gentoo.org>
280
281 * Makefile.in (SIM_OBJS): Delete sim-cpu.o.
282 * sim-main.h (STATE_CPU): Delete.
283
bf12d44e
MF
2842015-04-13 Mike Frysinger <vapier@gentoo.org>
285
286 * configure: Regenerate.
287
14c9ad2e
MF
2882015-04-13 Mike Frysinger <vapier@gentoo.org>
289
290 * Makefile.in (SIM_OBJS): Add sim-cpu.o.
291 * interp.c (v850_pc_get, v850_pc_set): New functions.
292 (sim_open): Declare new local var i. Call sim_cpu_alloc_all.
293 Call CPU_PC_FETCH & CPU_PC_STORE for all cpus.
294 (sim_pc_get): Delete.
295 * sim-main.h (SIM_CPU): Define.
296 (struct sim_state): Change cpu to an array of pointers.
297 (STATE_CPU): Drop &.
298
122bbfb5
MF
2992015-04-06 Mike Frysinger <vapier@gentoo.org>
300
301 * Makefile.in (SIM_OBJS): Delete sim-engine.o and sim-hrw.o.
302
aadc9410
MF
3032015-03-31 Mike Frysinger <vapier@gentoo.org>
304
305 * config.in, configure: Regenerate.
306
05f53ed6
MF
3072015-03-24 Mike Frysinger <vapier@gentoo.org>
308
309 * interp.c (sim_pc_get): New function.
310
ae7d0cac
MF
3112015-03-16 Mike Frysinger <vapier@gentoo.org>
312
313 * config.in, configure: Regenerate.
314
465fb143
MF
3152015-03-14 Mike Frysinger <vapier@gentoo.org>
316
317 * Makefile.in (SIM_RUN_OBJS): Delete.
318
5cddc23a
MF
3192015-03-14 Mike Frysinger <vapier@gentoo.org>
320
321 * configure.ac (AC_CHECK_HEADERS): Delete unistd.h & stdlib.h &
322 string.h & strings.h & time.h.
323 * aclocal.m4, configure: Regenerate.
324
a3976a7c
NC
3252015-02-27 Nick Clifton <nickc@redhat.com>
326
327 * sim-main.h (reg64_t): New type.
328 (v850_regs): Add selID_sregs field.
329 (VR, SAT16, SAT32, ABS16, ABS32 ): New macros.
330 * v850-dc: Add fields for v850e3v5 instructions.
331 * v850.igen (cvtf.dl): Use correctly signed local value.
332 (cvtf.dw, cvtf.sw, trncf.dul, trncf.dl, trncf.sul, trncf.sw):
333 Likewise.
334 * interp.c: Fix old style function declarations.
335 * simops.c: Likewise.
336
9ad55e9b
NC
3372015-02-24 Nick Clifton <nickc@redhat.com>
338
339 * v850.igen: Add more e3v5 support.
340 (FMAF.S): New pattern.
341 (FMSF.S): New pattern.
342 (FNMAF.S): New pattern.
343 (FNMSF.S): New pattern.
344 (cnvq15q30): New pattern.
345 (cnvq30q15): New pattern.
346 (cnvq31q62): New pattern.
347 (cnvq62q31): New pattern.
348 (dup.h): New pattern.
349 (dup.w): New pattern.
350 (expq31): New pattern.
351 (modadd): New pattern.
352 (mov.dw): New pattern.
353 (mov.h): New pattern.
354 (mov.w): New pattern.
355 (pki16i32): New pattern.
356 (pki16ui8): New pattern.
357 (pki32i16): New pattern.
358 (pki64i32): New pattern.
359 (pkq15q31): New pattern.
360 (pkq30q31): New pattern.
361 (pkq31q15): New pattern.
362 (pkui8i16): New pattern.
363 (vabs.h): New pattern.
364 (vabs.w): New pattern.
365 (vadd.dw): New placeholder pattern.
366 (vadd.h): New placeholder pattern.
367 (vadd.w): New placeholder pattern.
368 (vadds.h): New placeholder pattern.
369 (vadds.w): New placeholder pattern.
370 (vaddsat.h): New placeholder pattern.
371 (vaddsat.w): New placeholder pattern.
372 (vand): New pattern.
373 (vbiq.h): New placeholder pattern.
374 (vbswap.dw): New placeholder pattern.
375 (vbswap.h): New placeholder pattern.
376 (vbswap.w): New placeholder pattern.
377 (vcalc.h): New placeholder pattern.
378 (vcalc.w): New placeholder pattern.
379 (vcmov): New placeholder pattern.
380
2974be62
AM
3812014-08-19 Alan Modra <amodra@gmail.com>
382
383 * configure: Regenerate.
384
faa743bb
RM
3852014-08-15 Roland McGrath <mcgrathr@google.com>
386
387 * configure: Regenerate.
388 * config.in: Regenerate.
389
1a8a700e
MF
3902014-03-04 Mike Frysinger <vapier@gentoo.org>
391
392 * configure: Regenerate.
393
bf3d9781
AM
3942013-09-23 Alan Modra <amodra@gmail.com>
395
396 * configure: Regenerate.
397
31e6ad7d
MF
3982013-06-03 Mike Frysinger <vapier@gentoo.org>
399
400 * aclocal.m4, configure: Regenerate.
401
fd7b2a54
NC
4022013-05-13 Nick Clifton <nickc@redhat.com>
403
404 * v850.igen (LDSR): Accept but ignore a selID parameter.
405
d3685d60
TT
4062013-05-10 Freddie Chopin <freddie_chopin@op.pl>
407
408 * configure: Rebuild.
409
67d7515b
NC
4102013-01-28 Nick Clifton <nickc@redhat.com>
411
412 * simops.c (v850_rotl): New function.
413 (v850_bins): New function.
414 * simops.h: Add prototypes fir v850_rotl and v850_bins.
415 * v850-dc: Add entries for V850e3v5.
416 * v850.igen: Add support for v850e3v5.
417 (ld.dw, st.dw, rotl, bins): New patterns.
418
85367826
NC
4192013-01-10 Nick Clifton <nickc@redhat.com>
420
421 * interp.c (sim_open): Add support for bfd_arch_v850_rh850
422 architecture type. Add support for bfd_mach_v850e2 and
423 bfd_mach_v850e2v3 machine numbers.
72f4393d
L
424 * v850.igen (dbtrap): Add support for SIM_OPEN_DEBUG.
425 (cmpf.d): Correct order of operands.
426 (cmpf.s): Likewise.
427 (trncf.dul): New pattern.
428 (trncf.duw): New pattern.
429 (trncf.sul): New pattern.
430 (trncf.suw): New pattern.
431 * v850-dc: Correct bitfield selection for TRNCF.SW and CVTF.SW.
85367826 432
d99ff40f
NC
4332012-09-13 Nick Clifton <nickc@redhat.com>
434
435 * v850.igen (W,WWWW): Correct computation of register number.
436 (JR32): Remove unnecessary comma.
437 (cmovf.s): Register 0 is an invalid source register.
438 (maddf.s): Remove bogus intermediary rounding.
439 (nmaddf.s): Likewise.
440 (trncf.sl): Remove bogus initial rounding.
441 (trncf.dw): Likewise.
442 (trncf.sl): Likewise.
443 (trncf.sw): Likewise.
444
5f3ef9d0
JB
4452012-06-15 Joel Brobecker <brobecker@adacore.com>
446
447 * config.in, configure: Regenerate.
448
2aaed979
KB
4492012-03-28 Rathish C <rathish.c@kpitcummins.com>
450
451 * sim-main.h (struct _v850_regs): Add new fields mpu0_sregs,
452 mpu1_sregs, and fpu_sregs.
453 (MPU0_SR, MPU1_SR, FPU_SR): New macros for accessing new fields
454 in _v850_regs struct.
455 (SP_REGNO): Define.
456 (SP): Redefine using SP_REGNO.
457 (PSW_REGNO, EIIC, FEIC, DBIC, DIR, EIWR, FEWR, DBWR, BSEL, PSW_NPV)
458 (PSW_DMP, PSW_IMP, ECR_EICC, ECR_FECC, FPSR, FPSR_REGNO, FPEPC)
459 (FPST, FPST_REGNO, FPCC, FPCFG, FPCFG_REGNO, FPSR_DEM, FPSR_SEM)
460 (FPSR_RM, FPSR_RN, FPSR_FS, FPSR_PR, FPSR_XC, FPSR_XCE, FPSR_XCV)
461 (FPSR_XCZ, FPSR_XCO, FPSR_XCU, FPSR_XCI, FPSR_XE, FPSR_XEV)
462 (FPSR_XEZ, FPSR_XEO, FPSR_XEU, FPSR_XEI, FPSR_XP, FPSR_XPV)
463 (FPSR_XPZ, FPSR_XPO, FPSR_XPU, FPSR_XPI, FPST_PR, FPST_XCE)
464 (FPST_XCV, FPST_XCZ, FPST_XCO, FPST_XCU, FPST_XCI, FPST_XPV)
465 (FPST_XPZ, FPST_XPO, FPST_XPU, FPST_XPI, FPCFG_RM, FPCFG_XEV)
466 (FPCFG_XEZ, FPCFG_XEO, FPCFG_XEU, FPCFG_XEI, GET_FPCC, CLEAR_FPCC)
467 (SET_FPCC, TEST_FPCC, FPSR_GET_ROUND, MPM, MPC, MPC_REGNO, TID)
468 (PPA, PPM, PPC, DCC, DCV0, DCV1, SPAL, SPAU, IPA0L, IPA0U, IPA1L)
469 (IPA1U, IPA2L, IPA2U, IPA3L, IPA3U, DPA0L, DPA0U, DPA1L, DPA1U)
470 (DPA2L, DPA2U, DPA3L, DPA3U, PPC_PPE, SPAL_SPE, SPAL_SPS, VIP)
471 (VMECR, VMTID, VMADR, VPECR, VPTID, VPADR, VDECR, VDTID, MPM_AUE)
472 (MPM_MPE, VMECR_VMX, VMECR_VMR, VMECR_VMW, VMECR_VMS, VMECR_VMRMW)
473 (VMECR_VMMS, IPA2ADDR, IPA_IPE, IPA_IPX, IPA_IPR, IPE0, IPE1, IPE2)
474 (IPE3, IPX0, IPX1, IPX2, IPX3, IPR0, IPR1, IPR2, IPR3, DPA2ADDR)
475 (DPA_DPE, DPA_DPR, DPA_DPW, DPE0, DPE1, DPE2, DPE3, DPR0, DPR1)
476 (DPR2, DPR3, DPW0, DPW1, DPW2, DPW3, DCC_DCE0, DCC_DCE1, PPA2ADDR)
477 (PPC_PPC, PPC_PPE, PPC_PPM): New macros.
478 (FPU_COMPARE): New enum.
479 (TRACE_FP_INPUT_FPU1, TRACE_FP_INPUT_FPU2, TRACE_FP_INPUT_FPU3)
480 (TRACE_FP_INPUT_BOOL1_FPU2, TRACE_FP_INPUT_WORD2)
481 (TRACE_FP_RESULT_WORD1, TRACE_FP_RESULT_WORD2): New macros.
482 * simops.c (Add32): Update prototype.
483 (update_fpsr): New function.
484 (SignalException): New function.
485 (SignalExceptionFPE): New function.
486 (check_invalid_snan): New function.
487 (v850_float_compare): New function.
488 (v850_div): New function.
489 (v850_divu): New function.
490 (v850_sar): New function.
491 (v850_shl): New function.
492 (v850_shr): New function.
493 (v850_satadd): New function.
494 (v850_satsub): New function.
495 (load_data_mem): New function.
496 (store_data_mem): New function.
497 (mpu_load_mem_test): New function.
498 (mpu_store_mem_test): New function.
499 * simops.h: Add function prototype for above mentioned functions.
500 (check_cvt_fi, check_cvt_if, check_cvt_ff): Define.
501 * v850-dc: Add entry for v850e2 and v850e2v3.
502 * v850.igen: Add support for v850e2 and v850e2v3.
503
2232061b
MF
5042012-03-24 Mike Frysinger <vapier@gentoo.org>
505
506 * aclocal.m4, config.in, configure: Regenerate.
507
db2e4d67
MF
5082011-12-03 Mike Frysinger <vapier@gentoo.org>
509
510 * aclocal.m4: New file.
511 * configure: Regenerate.
512
9c082ca8
MF
5132011-10-17 Mike Frysinger <vapier@gentoo.org>
514
515 * configure.ac: Change include to common/acinclude.m4.
516
6ffe910a
MF
5172011-10-17 Mike Frysinger <vapier@gentoo.org>
518
519 * configure.ac: Change AC_PREREQ to 2.64. Delete AC_CONFIG_HEADER
520 call. Replace common.m4 include with SIM_AC_COMMON.
521 * configure: Regenerate.
522
2419798b
MF
5232011-07-05 Mike Frysinger <vapier@gentoo.org>
524
525 * interp.c (sim_do_command): Delete.
526
d0f0baa2
KB
5272011-03-21 Kevin Buettner <kevinb@redhat.com>
528
529 * simops (OP_10007E0): Update errno handling as most traps
530 do not invoke the host's functionality directly. Invoke
531 sim_io_stat() instead of stat() for implementing TARGET_SYS_stat.
532 Implement TARGET_SYS_fstat, TARGET_SYS_rename, and TARGET_SYS_unlink.
533
d79fe0d6
MF
5342011-02-14 Mike Frysinger <vapier@gentoo.org>
535
536 * simops.c (OP_10007E0): Change zfree to free.
537
dae477fe
AB
5382011-01-11 Andrew Burgess <aburgess@broadcom.com>
539
540 * interp.c (sim_store_register): Update return value to
541 match new API.
542
4e9586f0
MF
5432010-03-30 Mike Frysinger <vapier@gentoo.org>
544
545 * interp.c (interrupt_names): Add const to pointer type.
546 (do_interrupt): Add const to interrupt_name.
547
3725885a
RW
5482010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
549
550 * configure: Regenerate.
551
d6416cdc
RW
5522009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
553
81ecdfbb
RW
554 * config.in: Regenerate.
555 * configure: Likewise.
556
d6416cdc
RW
557 * configure: Regenerate.
558
b5bd9624
HPN
5592008-07-11 Hans-Peter Nilsson <hp@axis.com>
560
561 * configure: Regenerate to track ../common/common.m4 changes.
562 * config.in: Ditto.
563
6efef468 5642008-06-06 Vladimir Prus <vladimir@codesourcery.com>
72f4393d
L
565 Daniel Jacobowitz <dan@codesourcery.com>
566 Joseph Myers <joseph@codesourcery.com>
6efef468
JM
567
568 * configure: Regenerate.
569
c5fbc25b
DD
5702008-02-05 DJ Delorie <dj@redhat.com>
571
98e460c3
DD
572 * simops.c (OP_1C007E0): Compensate for 64 bit hosts.
573 (OP_18007E0): Likewise.
574 (OP_2C007E0): Likewise.
575 (OP_28007E0): Likewise.
576 * v850.igen (divh): Likewise.
72f4393d 577
c5fbc25b
DD
578 * simops.c (OP_C0): Correct saturation logic.
579 (OP_220): Likewise.
580 (OP_A0): Likewise.
581 (OP_660): Likewise.
582 (OP_80): Likewise.
583
584 * simops.c (OP_2A0): If the shift count is zero, clear the
585 carry.
586 (OP_A007E0): Likewise.
587 (OP_2C0): Likewise.
588 (OP_C007E0): Likewise.
589 (OP_280): Likewise.
590 (OP_8007E0): Likewise.
591
592 * simops.c (OP_2C207E0): Correct PSW flags for special divu
593 conditions.
594 (OP_2C007E0): Likewise, for div.
595 (OP_28207E0): Likewise, for divhu.
596 (OP_28007E0): Likewise, for divh. Also, sign-extend the correct
597 operand.
598 * v850.igen (divh): Likewise, for 2-op divh.
72f4393d 599
c5fbc25b
DD
600 * v850.igen (bsh): Fix carry logic.
601
cb5c8c39
DJ
6022007-02-20 Daniel Jacobowitz <dan@codesourcery.com>
603
604 * Makefile.in (interp.o): Uncomment and update.
605
edc5d9ec
HPN
6062006-12-21 Hans-Peter Nilsson <hp@axis.com>
607
608 * acconfig.h: Remove.
609 * config.in: Regenerate.
610
e85e3205
RE
6112006-06-13 Richard Earnshaw <rearnsha@arm.com>
612
613 * configure: Regenerated.
614
2f0122dc
DJ
6152006-06-05 Daniel Jacobowitz <dan@codesourcery.com>
616
617 * configure: Regenerated.
618
20e95c23
DJ
6192006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
620
621 * configure: Regenerated.
622
2b193c4a
MK
6232005-03-23 Mark Kettenis <kettenis@gnu.org>
624
625 * configure: Regenerate.
626
35695fd6
AC
6272005-01-14 Andrew Cagney <cagney@gnu.org>
628
629 * configure.ac: Sinclude aclocal.m4 before common.m4. Add
630 explicit call to AC_CONFIG_HEADER.
631 * configure: Regenerate.
632
f0569246
AC
6332005-01-12 Andrew Cagney <cagney@gnu.org>
634
635 * configure.ac: Update to use ../common/common.m4.
636 * configure: Re-generate.
637
38f48d72
AC
6382005-01-11 Andrew Cagney <cagney@localhost.localdomain>
639
640 * configure: Regenerated to track ../common/aclocal.m4 changes.
641
b7026657
AC
6422005-01-07 Andrew Cagney <cagney@gnu.org>
643
644 * configure.ac: Rename configure.in, require autoconf 2.59.
645 * configure: Re-generate.
646
379832de
HPN
6472004-12-08 Hans-Peter Nilsson <hp@axis.com>
648
649 * configure: Regenerate for ../common/aclocal.m4 update.
650
4389ce38
MK
6512004-01-18 Mark Kettenis <kettenis@gnu.org>
652
653 * simops.c: Include <sys/types.h>.
654
c5ea1d53
NC
6552003-09-05 Andrew Cagney <cagney@redhat.com>
656 Nick Clifton <nickc@redhat.com>
657
658 * interp.c (sim_open): Accept bfd_mach_v850e1.
659 * v850-dc: Add entry for v850e1.
660 * v850.igen: Add support for v850e1.
661 Add code for DBTRAP and DBRET instructions.
662 (dbtrap): Create a separate v850e1 specific instruction.
663 Only generate a trap if the target is not the v850e1.
664 Otherwise treat it as a special kind of branch.
665 (break): Mark as v850/v850e specific.
72f4393d 666
ae451ac6
ILT
6672003-05-16 Ian Lance Taylor <ian@airs.com>
668
669 * Makefile.in (SHELL): Make sure this is defined.
670 (tmp-igen): Use $(SHELL) whenever we invoke move-if-change.
671
ebc115b7
NC
6722003-04-06 Nick Clifton <nickc@redhat.com>
673
1eec9e33
NC
674 * simops.c (OP_40): Delete. Move code to...
675 * v850-igen.c (): ...Here. Sign extend the first operand.
ebc115b7
NC
676 * simops.h (OP_40): Remove prototype.
677
6b4a8935
AC
6782003-02-27 Andrew Cagney <cagney@redhat.com>
679
680 * interp.c (sim_open, sim_create_inferior): Rename _bfd to bfd.
681
0da2b665
AC
6822002-11-30 Andrew Cagney <cagney@redhat.com>
683
684 * simops.c: Use int, 1, 0 instead of boolean, true and false.
685 * sim-main.h: Ditto.
686
30458d39
JW
6872002-09-27 Jim Wilson <wilson@redhat.com>
688
689 * simops.c (OP_E6077E0): And op1 with 7 after reading register, not
690 before.
691 (BIT_CHANGE_OP): Likewise.
692
2e8162ce
JW
6932002-09-26 Jim Wilson <wilson@redhat.com>
694
695 * simops (OP_10007E0): Don't subtract 4 from PC.
696
5d6a173d
NC
6972002-09-19 Nick Clifton <nickc@redhat.com>
698
699 * interp.c (sim_open): Remove reference to v850ea.
700 (sim_create_inferior): Likewise.
701 * v850-dc: Likewise.
702 * v850.igen: Remove all references to v850ea, including v850ea
703 specific instructions.
704
e551c257
NC
7052002-08-29 Nick Clifton <nickc@redhat.com>
706
707 From 2001-08-23 Catherine Moore <clm@redhat.com>
708
709 * Makefile.in: Add gen-zero-r0 option.
710 * sim-main.h (GPR_SET, GPR_CLEAR): Define.
711 * simops.c (OP_24007E0): Sign extend the imm9
712 operand of a mul instruction.
713
d62274a3
AC
7142002-06-17 Andrew Cagney <cagney@redhat.com>
715
716 * simops.c (trace_result): Fix printf formatting.
717
c8cca39f
AC
7182002-06-16 Andrew Cagney <ac131313@redhat.com>
719
720 * configure: Regenerated to track ../common/aclocal.m4 changes.
721
7ef2d4e7
AC
7222001-12-02 Andrew Cagney <ac131313@redhat.com>
723
724 * Makefile.in (simops.h, table.c): Delete targets.
725 (tmp-gencode, gencode.o, gencode): Delete targets.
726 (simops.h): New file.
727 ($(BUILT_SRC_FROM_IGEN)): Do not depend on simops.h.
728 * gencode.c: Delete file.
72f4393d 729
d4424ada
C
7302001-04-15 J.T. Conklin <jtc@redback.com>
731
732 * Makefile.in (simops.o): Add simops.h to dependency list.
733
1e6cd159
AC
7342001-03-14 Andrew Cagney <ac131313@redhat.com>
735
736 * Makefile.in (gencode): Link with libintl.
737
42acc51e
JL
7382001-01-31 Jonathan Larmour <jlarmour@redhat.com>
739
740 * Makefile.in (gencode): Link with libopcodes in build tree rather
741 than building source files from there.
742
896ad910
NC
7432000-05-30 Nick Clifton <nickc@cygnus.com>
744
745 * v850.igen: Remove illegal instruction pattern, since it is the
746 same as the breakpoint pattern.
747
eb2d80b4
AC
748Tue May 23 21:39:23 2000 Andrew Cagney <cagney@b1.cygnus.com>
749
750 * configure: Regenerated to track ../common/aclocal.m4 changes.
751
b9791fcd
FCE
7522000-04-14 Gary Thomas <gthomas@redhat.com>
753
754 * v850.igen: Define 'br *' as illegal since this is the only
755 way to provide a breakpoint on some v850 family processors.
756
de616bc7
FCE
7572000-03-24 Frank Ch. Eigler <fche@redhat.com>
758
759 * v850.igen (ilgop): New insn pattern for four-byte breakpoints.
760
d4f3574e
SS
761Thu Sep 2 18:15:53 1999 Andrew Cagney <cagney@b1.cygnus.com>
762
763 * configure: Regenerated to track ../common/aclocal.m4 changes.
764
cd0fc7c3
SS
7651999-05-08 Felix Lee <flee@cygnus.com>
766
767 * configure: Regenerated to track ../common/aclocal.m4 changes.
72f4393d 768
c906108c
SS
769Tue Dec 1 17:25:16 1998 Andrew Cagney <cagney@b1.cygnus.com>
770
771 * Makefile.in (NL_TARGET): Define as -DNL_TARGET_v850.
772
773Wed Nov 25 17:52:58 1998 Andrew Cagney <cagney@b1.cygnus.com>
774
775 * Makefile.in (simops.o): Depends on targ-vals.h
776 * simops.c: Include targ-vals.h instead of
777 libgloss/.../syscall.h. Replace SYS_* with TARGET_SYS_*.
778 (divn, divun, OP_1C007E0, OP_18207E0, OP_1C207E0,OP_18007E0):
779 Replace signed long int with signed32.
780
781Fri Oct 9 18:02:25 1998 Doug Evans <devans@canuck.cygnus.com>
782
783 * interp.c: #include "itable.h".
784 (get_insn_name): New function.
785 (sim_open): Initialize CPU_INSN_NAME,CPU_MAX_INSNS.
786 * sim-main.h (MAX_INSNS,INSN_NAME): Delete.
787
788Wed May 6 19:43:27 1998 Doug Evans <devans@canuck.cygnus.com>
789
790 * sim-main.h (INSN_NAME): New arg `cpu'.
791
792Tue Apr 28 18:33:31 1998 Geoffrey Noer <noer@cygnus.com>
793
72f4393d 794 * configure: Regenerated to track ../common/aclocal.m4 changes.
c906108c
SS
795
796Sun Apr 26 15:31:55 1998 Tom Tromey <tromey@creche>
797
798 * configure: Regenerated to track ../common/aclocal.m4 changes.
799 * config.in: Ditto.
800
801Sun Apr 26 15:19:14 1998 Tom Tromey <tromey@cygnus.com>
802
803 * acconfig.h: New file.
804 * configure.in: Reverted change of Apr 24; use sinclude again.
805
806Fri Apr 24 14:16:40 1998 Tom Tromey <tromey@creche>
807
808 * configure: Regenerated to track ../common/aclocal.m4 changes.
809 * config.in: Ditto.
810
811Fri Apr 24 11:18:08 1998 Tom Tromey <tromey@cygnus.com>
812
813 * configure.in: Don't call sinclude.
814
815Sat Apr 4 20:36:25 1998 Andrew Cagney <cagney@b1.cygnus.com>
816
817 * configure: Regenerated to track ../common/aclocal.m4 changes.
818 * sim-main.h (SIM_MAIN_H): Wrap header.
819
820Fri Mar 27 16:15:52 1998 Andrew Cagney <cagney@b1.cygnus.com>
821
822 * configure: Regenerated to track ../common/aclocal.m4 changes.
823
824Wed Mar 25 12:35:29 1998 Andrew Cagney <cagney@b1.cygnus.com>
825
826 * configure: Regenerated to track ../common/aclocal.m4 changes.
827
828Tue Mar 10 15:54:50 1998 Andrew Cagney <cagney@b1.cygnus.com>
829
830 * interp.c (sim_stop): Delete, second attempt.
831
832Thu Feb 26 19:09:47 1998 Andrew Cagney <cagney@b1.cygnus.com>
833
834 * interp.c (sim_info): Delete.
835
836Wed Feb 18 10:47:32 1998 Andrew Cagney <cagney@b1.cygnus.com>
837
838 * sim-main.h (TRACE_ALU_INPUT*): Delete. Moved to sim-trace.[hc].
839
840 * simops.c (trace_result): Call trace_generic instead of
841 trace_one_insn.
842 (trace_module): Change variable type to integer.
843 (trace_input): Initialize trace_module with TRACE_ALU_IDX.
844
845 * sim-main.h (trace_module): Change variable decl to integer type.
846 (TRACE_BRANCH*, TRACE_LD, TRACE_ST): Update.
72f4393d 847
c906108c
SS
848Tue Feb 17 12:51:18 1998 Andrew Cagney <cagney@b1.cygnus.com>
849
850 * interp.c (sim_store_register, sim_fetch_register): Pass in
851 length parameter. Return -1.
852
853Tue Feb 3 16:24:42 1998 Andrew Cagney <cagney@b1.cygnus.com>
854
855 * sim-main.h (IMEM16, IMEM16_IMMED): Rename IMEM and
856 IMEM_IMMED. To match recent igen change.
857
858Sun Feb 1 16:47:51 1998 Andrew Cagney <cagney@b1.cygnus.com>
859
860 * configure: Regenerated to track ../common/aclocal.m4 changes.
861
862Sat Jan 31 18:15:41 1998 Andrew Cagney <cagney@b1.cygnus.com>
863
864 * configure: Regenerated to track ../common/aclocal.m4 changes.
865
866Fri Jan 30 09:51:27 1998 Andrew Cagney <cagney@b1.cygnus.com>
867
868 * sim-main.h (CPU_CIA): Delete, replaced by.
869 (CIA_SET, CIA_SET): Define.
870
871Mon Jan 19 22:26:29 1998 Doug Evans <devans@seba>
872
873 * configure: Regenerated to track ../common/aclocal.m4 changes.
874
875Mon Dec 15 23:17:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
876
877 * configure: Regenerated to track ../common/aclocal.m4 changes.
878 * config.in: Ditto.
879
880Fri Dec 5 09:26:08 1997 Nick Clifton <nickc@cygnus.com>
881
882 * v850.igen: Revert break value back to its old value.
883
884Thu Dec 4 09:21:05 1997 Doug Evans <devans@canuck.cygnus.com>
885
886 * configure: Regenerated to track ../common/aclocal.m4 changes.
887
888Wed Dec 3 17:27:19 1997 Nick Clifton <nickc@cygnus.com>
889
890 * v850.igen: Make break have a zero first field, since otherwise
891 it clashes with the DIVH instruction.
892
893Sat Nov 22 21:32:07 1997 Andrew Cagney <cagney@b1.cygnus.com>
894
895 * simops.c (OP_10007E0): Rename SIGABRT -> SIM_SIGABRT. Give
896 sim_stopped instead of sim_signalled.
897
898 * v850.igen (BREAK), simops.c (OP_12007E0): Rename SIGTRAP to
899 SIM_SIGTRAP.
900 (illegal): Rename SIGILL to SIM_SIGILL.
72f4393d 901
c906108c
SS
902 * sim-main.h, simops.c, interp.c: Do not include signal.h.
903
904 * sim-main.h: Include sim-signal.h instead of signal.h.
905 (SIGTRAP, SIGQUIT): Delete definition.
906 (SIG_V850_EXIT): Delete definition.
907
908Tue Nov 18 15:33:48 1997 Doug Evans <devans@canuck.cygnus.com>
909
910 * Makefile.in (SIM_OBJS): Use $(SIM_NEW_COMMON_OBJS).
911
912Fri Oct 31 10:33:40 1997 Andrew Cagney <cagney@b1.cygnus.com>
913
914 * interp.c (sim_open): Check state magic number.
915 (sim-assert.h): Include.
916
917Tue Oct 28 11:06:47 1997 Andrew Cagney <cagney@b1.cygnus.com>
918
919 * v850.igen: Add model filter field to records.
920
921Fri Oct 3 09:28:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
922
923 * configure: Regenerated to track ../common/aclocal.m4 changes.
924
925Fri Sep 26 11:56:02 1997 Felix Lee <flee@cygnus.com>
926
927 * sim-main.h: delete null override of SIM_ENGINE_HALT_HOOK and
928 SIM_ENGINE_RESTART_HOOK.
72f4393d 929
c906108c
SS
930Wed Sep 24 17:38:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
931
932 * configure: Regenerated to track ../common/aclocal.m4 changes.
933
934Wed Sep 24 17:28:26 1997 Andrew Cagney <cagney@b1.cygnus.com>
935
936 * sim-main.h (WITH_TARGET_WORD_MSB): Delete.
937
938 * configure.in (SIM_AC_OPTION_BITSIZE): Specify 32 bit
939 architecture with MSB == 31.
940
941Wed Sep 24 14:04:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
942
943 * v850.igen: Make divh insn with RRRRR==0 breakpoint.
944
945Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
946
947 * configure: Regenerated to track ../common/aclocal.m4 changes.
948
949Tue Sep 23 10:19:51 1997 Andrew Cagney <cagney@b1.cygnus.com>
950
951 * Makefile.in (SIM_WARNINGS, SIM_ALIGNMENT, SIM_ENDIAN,
952 SIM_HOSTENDIAN, SIM_RESERVED_BITS): Delete, moved to common.
953 (SIM_EXTRA_CFLAGS): Update.
72f4393d 954
c906108c
SS
955Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
956
957 * configure: Regenerated to track ../common/aclocal.m4 changes.
958 * configure.in: Really specify NONSTRICT_ALIGNMENT as the default.
959
960Fri Sep 19 17:45:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
961
962 * configure.in: Specify NONSTRICT_ALIGNMENT as the default.
963 * configure: Regenerated to track ../common/aclocal.m4 changes.
964
965Fri Sep 19 10:37:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
966
967 * v850.igen (disp16): Use EXTEND16 to sign extend disp.
968 (disp22): Only shift left by 1, not 2.
969 ("jmp"): Ensure PC is 2 byte aligned.
970
971 * simops.c, v850.igen: Move "Bcond", "jr", "jarl" code to
972 v850.igen. Fix tracing.
973
974 * simops.c (OP_300, OP_400, OP_500): Move "sdl.b", "sld.h",
975 "sld.w" insns to v850.igen. Fix tracing.
976 (OP_70): Ditto for "sld.hu".
977
978 * v850.igen: Clarify tracing of "sld.b", "sld.h" et.al.
979
980 * simops.c (condition_met): Make global.
981
982 * sim-main.h (TRACE_ALU_INPUT3, TRACE_BRANCH0, TRACE_LD,
983 TRACE_ST): Define.
984 (TRACE_LD_NAME): Define.
985
986 * simops.c: Move "cmov", "cmov imm" to v850.igen, fix.
987
988Wed Sep 17 16:21:08 1997 Andrew Cagney <cagney@b1.cygnus.com>
989
990 * simops.c: Move "mov", "reti", to v850.igen, fix tracing.
72f4393d 991
c906108c
SS
992 * interp.c (hash): Delete.
993
994 * v850.igen (nop): Really do nothing.
995
996 * interp.c (do_interrupt): Mask interrupts after PSW is saved, not
997 before.
998 * v850.igen (reti): Return to current PC not previous.
999
1000Wed Sep 17 14:02:10 1997 Andrew Cagney <cagney@b1.cygnus.com>
1001
1002 * simops.c: Move "ctret", "bsw", "hsw" to v850.igen, fix tracing.
1003 (trace_module): Global, save component/module name across insn.
1004
1005 * simops.c: Move "bsh" to v850.igen, fix.
72f4393d 1006
c906108c
SS
1007 * v850.igen (callt): Load correct number of bytes. Fix tracing.
1008 (stsr, ldsr): Correct src, dest fields. Fix tracing.
1009 (ctret): Force alignment. Fix tracing.
72f4393d 1010
c906108c
SS
1011Tue Sep 16 22:14:01 1997 Andrew Cagney <cagney@b1.cygnus.com>
1012
1013 * simops.c (trace_output): Add result argument.
1014 (trace_result): New function. Simpler version of trace_output,
1015 assumes trace needed.
1016 (trace_output): Call trace_result.
1017 (trace_output): For IMM_REG_REG, trace correct register.
1018 (trace_input): Add case for 16bit immediates.
1019 (OP_600, OP_640, OP_680, OP_6C0, OP_6A0): Use.
1020
1021 * sim-main.h (TRACE_ALU_INPUT, TRACE_ALU_RESULT): Define.
1022 (trace_values, trace_name, trace_pc, trace_num_values): Make
1023 global.
1024 (GR, SR): Define.
72f4393d 1025
c906108c
SS
1026 v850.insn (movea, stsr): Use.
1027 (sxb, sxh, zxb, zxh): Ditto.
72f4393d 1028
c906108c
SS
1029Tue Sep 16 21:14:01 1997 Andrew Cagney <cagney@b1.cygnus.com>
1030
1031 * simops.c: Move "movea" from here.
1032 * v850.igen: To here.
1033
1034 * v850.igen (simm16): Define, sign extend imm16.
1035 (uimm16): Define, no sign extension.
1036 (addi, andi, movea, movhi, mulhi, ori, satsubi, xori): Use.
72f4393d 1037
c906108c
SS
1038 * simops.c: Move "sxh", "switch", "sxb", "callt", "dispose",
1039 "mov32" from here.
1040 * v850.igen: To here.
1041 (switch): Fix off by two error in NIA calc.
72f4393d 1042
c906108c
SS
1043Tue Sep 16 15:14:01 1997 Andrew Cagney <cagney@b1.cygnus.com>
1044
1045 * simops.c (trace_pc, trace_name, trace_values, trace_num_values):
1046 New static globals.
1047 (trace_input): Just save pc, name and values for trace_output.
1048 (trace_output): Write trace values to a buffer. Use
1049 trace_one_insn to print trace info and buffer.
1050 (SIZE_OPERANDS, SIZE_LOCATION): Delete.
72f4393d 1051
c906108c
SS
1052Tue Sep 16 09:02:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
1053
1054 * sim-main.h (struct _sim_cpu): Add psw_mask so that reserved bits
1055 can be masked out.
1056
1057 * simops.c (OP_2007E0, OP_4007E0): Move "ldsr", "stsr"
1058 instructions from here.
1059 * v850.igen (ldsr, stsr): To here. Mask out reserved bits when
1060 setting PSW.
72f4393d 1061
c906108c
SS
1062 * interp.c (sim_open): Set psw_mask if machine known.
1063
1064Tue Sep 16 10:20:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
1065
1066 * v850-dc: Add rule to diferentiate between breakpoint and divh.
1067 * v850.igen (break): New instruction, breakpoint simulator.
1068 * v850.igen (breakpoint): Enable. Change to a 32bit instruction.
1069
1070Mon Sep 15 18:44:05 1997 Jim Wilson <wilson@cygnus.com>
1071
1072 * simops.c (Multiply64): Don't store into register zero.
1073
1074Tue Sep 16 09:02:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
1075
1076 * Makefile.in (semantics.o): Add dependency.
1077
1078 * sim-main.h (SAVE_1, SAVE_2): Perform backward compatible save,
1079 do not adjust CIA/NIA.
1080
1081Mon Sep 15 17:36:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
1082
1083 * simops.c (OP_300, OP_400, OP_70): Make behavour depend on PSW[US].
72f4393d 1084
c906108c
SS
1085 * simops.c: Move "divun", "sld.bu", "divhn", "divhun", "divn",
1086 "divun", "pushml" code from here to v850.igen.
1087 (divun): Make global.
1088 (type3_regs): Make global
72f4393d 1089
c906108c
SS
1090 * v850.igen: Move simops.c code to here.
1091
1092 * interp.c (sim_create_inferior): For v850eq set US bit by
1093 default.
1094
1095 * interp.c (sim_open): Don't set arch, now set by
1096 sim_analyze_program.
1097
1098 * configure: Regenerated to track ../common/aclocal.m4 changes.
1099
1100Mon Sep 15 14:39:34 1997 Andrew Cagney <cagney@b1.cygnus.com>
1101
1102 * simops.c (op_types): Move from here.
1103 sim-main.h: To here.
1104
1105 * sim-main.h (trace_input, trace_output), simops.c: Make global.
1106
1107 * simops.c (OP_60): Move "jmp" code from here.
1108 * v850.igen (jmp): To here.
1109
1110 * simops.c (OP_60): Move "sld.bu" code from here.
1111 * v850.igen (sld.bu): To here.
1112
1113Fri Sep 12 15:11:03 1997 Andrew Cagney <cagney@b1.cygnus.com>
1114
1115 * v850.igen (prepare, ...): Add to v850eq architecture.
1116
1117 * interp.c (sim_open): Default to v850eq.
72f4393d 1118
c906108c
SS
1119 * interp.c (sim_open): Default to v850e.
1120 * sim-main.h (signal.h): Include.
1121
1122 * v850.igen (illegal): Report/halt illegal instructions.
1123
1124 * Makefile.in (SIM_EXTRA_CFLAGS): Add SIM_RESERVED_BITS.
1125
1126 * configure.in: Add reserved bits option.
1127 * configure: Regenerate.
1128
1129Thu Sep 11 08:40:03 1997 Andrew Cagney <cagney@b1.cygnus.com>
1130
1131 * interp.c (sim_open): Use sim_do_commandf instead of asprintf.
1132
72f4393d 1133 * sim-main.h (INSN_NAME):
c906108c
SS
1134
1135 * Makefile.in (INCLUDE): Add SIM_EXTRA_DEPS.
1136 (SIM_EXTRA_DEPS): Add itable.h
1137 (tmp-gencode): Does not depend on simops.h
1138
1139 * sim-main.h (itable.h): Include.
1140 (MAX_INSNS, INSN_NAME): Define.
1141
1142 * interp.c: Compute inttype from the interrupt_names index that
1143 was passed in.
1144
1145Wed Sep 10 10:25:40 1997 Andrew Cagney <cagney@b1.cygnus.com>
1146
1147 * simops.c (trace_input): Use trace_printf instead of
1148 sim_io_printf.
1149 (trace_output): Ditto.
1150 (trace_input): Only trace when TRACE_ALU_P. Delete code
1151 disasembling instruction.
1152 (trace_output): Only trace when TRACE_ALU_P.
1153
1154Tue Sep 9 01:29:50 1997 Andrew Cagney <cagney@b1.cygnus.com>
1155
1156 * simops.c (trace_input, trace_output): Use sim_io_printf.
1157 (OP_620): Pass correct argument to trace.
1158 (OP_E607E0): Ditto.
1159 (trace_input): Obtain prog_bfd, text_start et.al from simulator
1160 struct.
1161
1162Mon Sep 8 21:03:52 1997 Andrew Cagney <cagney@b1.cygnus.com>
1163
1164 * v850.igen: New file.
1165 * v850-dc: New file.
1166
1167Mon Sep 8 18:33:04 1997 Andrew Cagney <cagney@b1.cygnus.com>
1168
1169
1170 * sim-main.h (SEXT16): Delete, use EXTEND16.
1171 (SEXT8): Delete, use EXTEND8.
1172 (SEXT32): Delete, used?
1173 (SEXT40, SEXT44, SEXT64): Use UNSIGNED64 for constants, not ...LL.
1174 (WITH_TARGET_WORD_MSB): Define as 31. v850 little bit endian.
72f4393d 1175
c906108c
SS
1176 * simops.c: Use EXTEND15 from sim-bits instead of SEXT16.
1177
1178 * sim-main.h (DEBUG_TRACE, DEBUG_VALUES, v850_debug): Delete,
1179 replace with TRACE_INSN_P and TRACE_ALU_P.
1180
1181 * simops.c (trace_input, trace_output): Update.
1182
1183 * interp.c (sim_engine_run): Delete.
1184 (lookup_hash): Delete.
1185 (sim_open): Do not fill hash table.
1186 (sim_trace): Delete.
1187
1188Fri Sep 5 17:04:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
1189
1190 * simops.c (OP_FFFF): Use sim_engine_halt.
1191 (OP_12007E0): Ditto.
1192 (OP_10007E0): Ditto.
1193
1194 * sim-main.h (struct sim_cpu): Delete member exception. Using
1195 sim-engine et.al.
1196
1197 * interp.c (sim_info): Do not do anything in sim-info.
1198 (sim_stop): Delete, replace with sim-stop.
1199 (sim_stop_reason): Delete, replace with sim-reason.
1200
1201 * sim-main.h (WITH_WATCHPOINTS): Define.
1202 (WITH_MODULO_MEMORY): Define
72f4393d 1203
c906108c
SS
1204 * Makefile.in (SIM_OBJS): Add sim-resume, sim-watch, sim-stop,
1205 sim-reason.
1206
1207 * interp.c (enum interrupt_cond_type): Delete.
1208 (struct interrupt_generator): Delete.
1209 (enum interrupt_type): Drop int_none.
1210 (sim_open): Initialize WATCHPOINT module.
1211 (sim_resume, sim_run): Rename sim_resume to sim_run.
1212 (sim_engine_run): Replace interrupt code with call to sim-events.
1213 (sim_set_interrupt): Delete.
1214 (sim_parse_number): Delete.
1215
1216Thu Sep 4 17:21:23 1997 Doug Evans <dje@seba>
1217
1218 * configure: Regenerated to track ../common/aclocal.m4 changes.
1219
1220Thu Sep 4 18:11:37 1997 Andrew Cagney <cagney@b1.cygnus.com>
1221
1222 * simops.c (fetch_argv): New function, fetch a arg vector from
1223 simulator memory.
1224
1225 * configure.in: Check for fork, execve, execv.
1226 * configure: Regenerate.
1227
1228 * interp.c (sim_store_register, sim_fetch_register): Use H2T_4 and
1229 T2H_4 for byte swapping.
1230
1231 * sim-main.h, interp.c (get_word, get_half, get_byte, put_word,
1232 put_half, put_byte): Delete.
1233
1234 * Makefile.in (SIM_OBJS): Add sim-memopt.o module.
1235
1236 * sim-main.h (load_mem, store_mem): Redefine as macros.
1237 (IMEM, IMEM_IMMED): New macros - fetch instructions.
1238
1239 * simops.c (OP_10007E0): For SYS_read, SYS_write, SYS_open
1240 transfer data via a buffer.
1241 (fetch_str): New function, fetch string from memory.
1242
1243 * Makefile.in (SIM_OBJS): Add sim-hrw.o module.
1244
1245 * interp.c (sim_open): Establish memory maps using sim-memopt.c
1246 via sim_do_command.
1247 (sim_do_command): Print error if memory-map command is used. Call
1248 sim_args_command.
1249 (map): Delete, replaced by sim-core.
1250 (sim_memory_init): Delete, replaced by sim-core.
1251 (sim_set_memory_map): Delete, replaced by sim-memopt.
1252 (load_mem): Delete, replaced by sim-core.
1253 (store_mem): Delete, replaced by sim-core.
1254 (sim_write): Delete, replaced by sim-hrw.
1255 (sim_read): Delete, replaced by sim-hrw.
1256
1257 * sim-main.h (struct sim_state): Remove memory members, using
1258 sim-core.c
1259
1260Wed Sep 3 10:18:55 1997 Andrew Cagney <cagney@b1.cygnus.com>
1261
1262 * sim-main.h: Replace SIM_HAVE_FLATMEM with mem ptr.
1263 * interp.c (map): Do not add to a void pointer.
72f4393d 1264
c906108c
SS
1265 * Makefile.in (INCLUDE): Add sim-main.h
1266
1267 * configure.in: Check for time.h
1268 * configure: Re-generate.
1269
1270 * interp.c (struct interrupt_generator): Make time unsigned long,
1271 address SIM_ADDR.
1272 (sim_resume): Make oldpc SIM_ADDR.
1273 (struct hash_entry): Make mask/opcode unsigned.
1274
1275 * v850_sim.h (struct simops ): Make opcode and mask unsigned.
1276
1277 * simops.c (utime.h): Include if available.
1278 (OP_10007E0): Check for UTIME function.
1279 (divun): Put parentheses around shift argument.
1280 (OP_640): Put parentheses around shift argument, was wrong.
1281 (OP_107F0): Return something.
1282
1283 * interp.c (sim_parse_number): Use strtoul not strtol.
1284 (sim_resume): Use sim_elapsed_time_get to keep track of the time.
1285
1286 * configure.in (SIM_AC_OPTION_WARNINGS): Add.
1287 (SIM_AC_OPTION_ENDIAN): Set to hardwired big.
1288 (SIM_AC_OPTION_HOST_ENDIAN): Add.
1289 (AC_CHECK_FUNCS): Add utime.
1290 (AC_CHECK_HEADERS): Add stdlib.h, string.h, strings.h, utime.h
1291 configure: Regenerate.
72f4393d 1292
c906108c
SS
1293
1294 * Makefile.in (SIM_RUN_OBJS): Use nrun.o.
1295 (SIM_OBJS): Add sim-io.o, sim-hload.o, sim-utils.o, sim-options.o,
1296 sim-config.o, sim-module.o, sim-events.o, sim-core.o,
1297 sim-endian.o, sim-engine.o, sim-trace.o, sim-profile.o
1298 (SIM_ENDIAN, SIM_WARNGINS): Define.
1299
1300 * simops.c (OP_10007E0): Use sim_io_* for transfers.
1301
1302 * interp.c (sim_resume): Pass sd around.
1303
1304 * simops.c (sim-main.h): Include.
1305
1306 * gencode.c (write_template): Generate #include sim-main.h.
1307 (write_opcodes): Ditto.
72f4393d 1308
c906108c
SS
1309 * interp.c (prog_bfd, prog_bfd_was_opened_p): Delete.
1310 (v850_callback): Ditto.
1311 (sim_kind, myname): Ditto.
1312 (lookup_hash): Pass SD. Use sim_io_error.
1313 (sim_set_memory_map): Pass in SD, use.
1314 (init_system): Pass in SD, use.
1315 (sim_open): Update.
1316 (sim_set_profile): Delete.
1317 (sim_set_profile_size): Delete.
1318 (do_interrupt): Pass in SD, use.
1319 (sim_info): Use sim_io_printf.
1320 (sim_create_inferior): Reset registers. Set PC from prog_bfd
1321 argument.
1322 (sim_load): Delete, use common/sim-hload.c
1323 (sim_size): Rename to sim_memory_init.
1324 (sim_write): Remove call to init_system.
1325 (init_system): Delete.
1326 (sim_set_callbacks): Delete.
1327 (sim_set_interrupt): Pass in SD, use.
1328 (start_time): Delete.
72f4393d 1329
c906108c
SS
1330 * v850_sim.h: Remove everything except `struct simops' from here.
1331 * sim-main.h: Move most to here.
1332 * gencode.c: Move #includes to here.
1333
1334 * sim-main.h(struct _sim_cpu): Rename struct _state.
1335 (#define PC, et.al.): Update
1336 (v850_callback): Delete. Replaced with SIM_DESC arg.
1337 (int8, uint8, int16, uint16, int32, uint32): Define types using
1338 unsigned8 et.al from common/sim-types.h.
1339 * sim-main.h (State): Define as STATE_CPU.
1340
1341Mon Sep 1 12:07:55 1997 Andrew Cagney <cagney@b1.cygnus.com>
1342
1343 * configure.in: Check for time, chmod.
1344 * configure: Regenerate.
1345 * simops.c (SYS_time, SYS_chmod): Use HAVE_TIME, HAVE_CHMOD.
72f4393d 1346
c906108c
SS
1347 * simops.c (../../libgloss/v850/sys/syscall.h): Include instead of
1348 sys/syscall.h.
1349 (OP_10007E0): Check the existance each SYS_* macro independantly.
1350
1351 * v850_sim.h (SIGQUIT, SIGTRAP): Only define if missing.
1352
1353Wed Aug 27 18:13:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
1354
1355 * configure: Regenerated to track ../common/aclocal.m4 changes.
1356 * config.in: Ditto.
1357
1358Tue Aug 26 10:42:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
1359
1360 * interp.c (sim_kill): Delete.
1361 (sim_create_inferior): Add ABFD argument.
1362 (sim_load): Move setting of PC from here.
1363 (sim_create_inferior): To here.
1364
1365Mon Aug 25 17:50:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
1366
1367 * configure: Regenerated to track ../common/aclocal.m4 changes.
1368 * config.in: Ditto.
1369
1370Mon Aug 25 11:31:23 1997 Andrew Cagney <cagney@b1.cygnus.com>
1371
1372 * interp.c (sim_open): Add ABFD argument.
1373
1374Fri Aug 22 10:39:28 1997 Nick Clifton <nickc@cygnus.com>
1375
1376 * simops.c (bsh): Only set CY flag if either of the bottom
1377 bytes is zero.
72f4393d 1378
c906108c
SS
1379 * simops.c (prepare, dispose): Lower numbered
1380 registers go to higher numbered address.
1381
1382 * simops.c (unsigned divide instructions): S bit set if result has
1383 top bit set.
72f4393d 1384
c906108c
SS
1385 * simops.c (pushml, pushmh, popml, popmh): Lower numbered
1386 registers go to higher numbered address.
72f4393d 1387
c906108c
SS
1388Wed Aug 20 13:56:35 1997 Nick Clifton <nickc@cygnus.com>
1389
1390 * simops.c (OP_107E0, OP_107F0, OP_307E0, OP_307F0): Use correct
1391 interpretation of SR bit in list18 structure.
1392 (divn, divun): New functions to perform N step divide functions.
1393
1394Mon Aug 18 10:59:02 1997 Nick Clifton <nickc@cygnus.com>
1395
1396 * simops.c (OP_300, OP_400, OP_60, OP_70): Support variant opcodes
1397 with US bit set in the PSW.
1398
1399Wed Aug 13 19:06:55 1997 Nick Clifton <nickc@cygnus.com>
1400
1401 * interp.c (sim_resume): Opcode functions return amount to be
1402 added to PC and all opcodes take a standard format in the OP[]
1403 array.
72f4393d 1404
c906108c
SS
1405 (do_format_*): Functions removed.
1406
1407 * v850_sim.h (SP, EP): New register mnemonics.
72f4393d 1408
c906108c
SS
1409 * gencode.c (write_header): Functions prototypes return an
1410 integer.
1411
1412 * simops.c: Opcode functions return amount to be added to PC.
72f4393d 1413
c906108c 1414 * v850_sim.h (CTPC, CTPSW, CTBP): New register mnemonics.
72f4393d 1415
c906108c 1416 * simops.c: Add support for v850e instructions.
72f4393d 1417
c906108c 1418 * simops.c: Add support for v850eq instructions.
72f4393d 1419
c906108c
SS
1420Tue May 20 10:24:14 1997 Andrew Cagney <cagney@b1.cygnus.com>
1421
1422 * interp.c (sim_open): Add callback argument.
1423 (sim_set_callbacks): Delete SIM_DESC argument.
1424
1425Thu Apr 24 00:39:51 1997 Doug Evans <dje@canuck.cygnus.com>
1426
1427 * configure: Regenerated to track ../common/aclocal.m4 changes.
1428
1429Wed Apr 23 17:20:16 1997 Doug Evans <dje@canuck.cygnus.com>
1430
1431 * interp.c (prog_bfd_was_opened_p): New static local.
1432 (prog_bfd): New global variable.
1433 (sim_open): Undo patch to add -E support.
1434 (sim_close): Close prog_bfd if sim_load opened it.
1435 (sim_load): Record bfd of loaded file in prog_bfd.
1436 * simops.c (prog_bfd): Renamed from exec_bfd.
1437
1438Fri Apr 18 14:17:12 1997 Andrew Cagney <cagney@b1.cygnus.com>
1439
1440 * interp.c (sim_stop): Stub function.
1441
1442Thu Apr 17 03:53:18 1997 Doug Evans <dje@canuck.cygnus.com>
1443
1444 * Makefile.in (SIM_OBJS): Add sim-load.o.
1445 * interp.c (sim_kind, myname): New static locals.
1446 (sim_open): Set sim_kind, myname. Ignore -E arg.
1447 (sim_load): Return SIM_RC. New arg abfd. Call sim_load_file to
1448 load file into simulator. Set start address from bfd.
1449 (sim_create_inferior): Return SIM_RC. Delete arg start_address.
1450
1451Wed Apr 16 19:53:55 1997 Andrew Cagney <cagney@b1.cygnus.com>
1452
1453 * simops.c (OP_10007E0): Only provide system calls SYS_execv,
1454 SYS_wait, SYS_wait, SYS_utime, SYS_time if defined by the host.
1455
1456Mon Apr 7 15:45:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1457
1458 * configure: Regenerated to track ../common/aclocal.m4 changes.
1459 * config.in: Ditto.
1460
1461Wed Apr 2 15:06:28 1997 Doug Evans <dje@canuck.cygnus.com>
1462
1463 * interp.c (sim_open): New arg `kind'.
1464
1465 * configure: Regenerated to track ../common/aclocal.m4 changes.
1466
1467Wed Apr 2 14:34:19 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1468
1469 * configure: Regenerated to track ../common/aclocal.m4 changes.
1470
1471Wed Mar 19 01:14:00 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1472
1473 * configure: Regenerated to track ../common/aclocal.m4 changes.
1474
1475Mon Mar 17 15:10:07 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1476
1477 * configure: Re-generate.
1478
1479Fri Mar 14 10:34:11 1997 Michael Meissner <meissner@cygnus.com>
1480
1481 * configure: Regenerate to track ../common/aclocal.m4 changes.
1482
1483Thu Mar 13 13:00:54 1997 Doug Evans <dje@canuck.cygnus.com>
1484
1485 * interp.c (sim_open): New SIM_DESC result. Argument is now
1486 in argv form.
1487 (other sim_*): New SIM_DESC argument.
1488
1489Tue Feb 4 13:33:30 1997 Doug Evans <dje@canuck.cygnus.com>
1490
1491 * Makefile.in (@COMMON_MAKEFILE_FRAG): Use
1492 COMMON_{PRE,POST}_CONFIG_FRAG instead.
1493 * configure.in: sinclude ../common/aclocal.m4.
1494 * configure: Regenerated.
1495
1496Thu Jan 23 11:46:23 1997 Stu Grossman (grossman@critters.cygnus.com)
1497
1498 * configure configure.in Makefile.in: Update to new configure
1499 scheme which is more compatible with WinGDB builds.
1500 * configure.in: Improve comment on how to run autoconf.
1501 * configure: Re-run autoconf to get new ../common/aclocal.m4.
1502 * Makefile.in: Use autoconf substitution to install common
1503 makefile fragment.
1504
1505Mon Jan 20 16:05:34 1997 Michael Meissner <meissner@tiktok.cygnus.com>
1506
1507 * simops.c (OP_{E0,2E0,6E0}): The multiply operations sign extend,
1508 not zero extend.
1509
1510Tue Jan 14 17:06:03 1997 Stu Grossman (grossman@critters.cygnus.com)
1511
1512 * simops.c: Put ifdefs around things to make MSVC happy. Get rid
1513 of unistd.h. Disable SYS_stat, SYS_chown, SYS_time, SYS_times,
1514 SYS_gettimeofday and SYS_utime from MSVC.
1515
1516Tue Dec 31 18:11:13 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1517
1518 * simops.c (OP_10007E0): Know that kill encodes the signal number
1519 via: 0xdead0000 | signal and turn it back into a signal.
1520
1521Fri Dec 27 14:44:06 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1522
1523 * v850_sim.h (SIG_V850_EXIT): Define as -1.
1524
1525 * interp.c (sim_open): Cast calloc function.
1526 (sim_stop_reason): If signal is SIG_V850_EXIT, inform gdb the
1527 program exited with the appropriate exit code.
1528 (sim_set_interrupt): Declare buildargv.
1529
1530 * simops.c (OP_10007E0): Make exit signal normal exit. Make time
1531 type correct and work on big endian systems.
1532
1533Wed Nov 20 02:18:44 1996 Doug Evans <dje@canuck.cygnus.com>
1534
1535 * Makefile.in: Delete stuff moved to ../common/Make-common.in.
1536 (SIM_OBJS,SIM_EXTRA_CFLAGS,SIM_EXTRA_CLEAN): Define.
1537 * configure.in: Simplify using macros in ../common/aclocal.m4.
1538 Call AC_CHECK_HEADERS(unistd.h).
1539 * configure: Regenerated.
1540 * config.in: New file.
1541 * simops.c: #include "config.h". #include <unistd.h> if present.
1542
1543Sun Nov 3 23:02:54 1996 Stan Shebs <shebs@andros.cygnus.com>
1544
1545 * v850_sim.h (State): New slots dummy_mem, pending_nmi.
1546 (EIPC, etc): New macros for system registers.
1547 * simops.c, interp.c: Use everywhere.
1548
1549 * interp.c: Add support for interrupts issued by interrupt
1550 generators, either PC- or time-based. Controlled by simulator
1551 command "sim interrupt".
1552
1553 * interp.c: Add support for variable-size allocation of memory,
1554 via simulator command "sim memory-map".
1555 (map): Issue SIGSEGV for references to invalid memory regions.
72f4393d 1556
c906108c 1557Thu Oct 31 14:44:10 1996 Gavin Koch <gavin@cygnus.com>
72f4393d
L
1558
1559 * simops.c: Include <sys/time.h> for struct timeval and
1560 struct timezone.
1561
c906108c
SS
1562Wed Oct 30 08:49:10 1996 Jeffrey A Law (law@cygnus.com)
1563
1564 * simops.c (OP_10007E0): Handle SYS_times and SYS_gettimeofday.
1565
1566 * simops.c (OP_10007E0): Handle SYS_time.
1567
1568Tue Oct 29 14:22:55 1996 Jeffrey A Law (law@cygnus.com)
1569
1570 * simops.c: Include <sys/stat.h>.
1571 (OP_10007E0): Handle SYS_stat.
1572
1573Thu Oct 24 12:26:35 1996 Jeffrey A Law (law@cygnus.com)
1574
1575 * simops.c (OP_10007E0): Don't declare errno.
1576
1577 * simops.c (OP_500): Mask off low bit in displacement
1578 for sld.w.
1579 (OP_501): Similarly.
1580
1581 * simops.c (OP_500): Fix displacement handling for sld.w.
1582 (OP_501): Similarly for sst.w.
1583
1584 * simops.c (trace_input): Remove all references to SEXT7.
1585 (OP_300, OP_400, OP_500, OP_380, OP_480, OP_501): Displacement
1586 is zero extended for sst/sld instructions.
1587 * v850_sim.h (SEX7): Delete. It's no longer needed (and it
1588 was incorrect anyway).
1589
1590Thu Oct 24 10:33:33 1996 Stu Grossman (grossman@critters.cygnus.com)
1591
1592 * Makefile.in: Get rid of srcroot. Set all INSTALL macros via
1593 autoconf.
1594 * gencode.c (write_opcodes): Pad operands field to account for
1595 MSVC braindamage.
1596 * simops.c: Include errno.h. Exclude SYS_chown, since MSVC
1597 doesn't support it. (Why is this here in the first place?!?)
1598 * v850_sim.h: Get rid of 64 bit defs. Also, get rid of #elif's.
1599 Change number of operands in struct simops from 9 to 6. Define
1600 SIGTRAP and SIGQUIT for MSVC.
1601
1602Tue Oct 15 16:19:51 1996 Stu Grossman (grossman@critters.cygnus.com)
1603
1604 * interp.c (MEM_SIZE): It's now bytes, not a power of 2.
1605 * (map): Add support for external mem in the 1->2 meg range.
1606 Also, abort() when memory access is way out of bounds. (Better to
1607 die than to give wrong result. (This will be fixed later.))
1608 * (sim_size): MEM_SIZE is now bytes, not shift factor.
1609
1610Tue Oct 1 15:53:24 1996 Gavin Koch <gavin@cygnus.com>
72f4393d
L
1611
1612 * simops.c (trace_input): Swapped order of operands for output
1613 output of OP_IMM_REG. Changed the fetching of the operands for
1614 OP_LOAD32, and OP_STORE32 to work like op-function.
1615
c906108c
SS
1616Mon Sep 30 15:46:33 1996 Stu Grossman (grossman@critters.cygnus.com)
1617
1618 * interp.c: Move includes of remote-sim.h and callback.h to
1619 v850-sim.h.
1620 * (lookup_hash): Add PC to report of hash failure.
1621 * (map load_mem store_mem): New memory subsystem. Models V851
1622 memory system.
1623 * (sim_write sim_read): Use new memory subsystem.
1624 * (sim_resume): Don't load and save PC into EIPC anymore. Needed
1625 to make user-defined traps work right.
1626 * simops.c (OP_*): Use new memory subsystem.
1627 * (OP_14007E0 (reti)): Implement reti.
1628 * (OP_14996E0 (trap)): Implement user-defined traps. Move I/O to
1629 trap 31. Use new memory subsystem.
1630 * v850_sim.h: Prototypes for load_mem, store_mem and map. Use
1631 load_mem in RLW macro.
1632
1633Fri Sep 27 18:34:09 1996 Stu Grossman (grossman@critters.cygnus.com)
1634
1635 * gencode.c (write_opcodes): Output hex values for opcode mask
1636 and patterns.
1637 * interp.c (sim_resume): Save and restore PC from the appropriate
1638 register.
1639 * (sim_fetch_register sim_store_register): Fix byte-order problem
1640 with reading and writing registers.
1641 * simops.c (OP_FFFF): Implement pseudo-breakpoint insn.
1642
1643Fri Sep 27 17:42:37 1996 Jeffrey A Law (law@cygnus.com)
1644
72f4393d 1645 * simops.c (trace_input): Fix thinko.
c906108c
SS
1646
1647Wed Sep 18 09:54:12 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1648
1649 * simops.c (exec_bfd): Rename from sim_bfd.
1650 (trace_input): Ditto.
1651
1652Thu Sep 12 12:03:05 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1653
1654 * simops.c (trace_input): Use find_nearest_line to print line
1655 number, function name or file name of PC.
1656
1657Wed Sep 11 16:44:37 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1658
1659 * simops.c: Add tracing support. Use SEXTxx macros instead of
1660 doing hardwired shifts.
1661
1662 * configure.in (--enable-sim-cflags): Add switch to add additional
1663 flags to simulator buld. If --enable-sim-cflags=trace, turn on
1664 tracing.
1665 * configure: Regenerate.
1666
1667 * Makefile.in: Don't require a VPATH capable make if configuring
1668 in the same directory. Don't use CFLAGS for configuration flags.
1669 Add flags from --enable-sim-cflags. Support canadian cross
1670 builds. Rebuild whole simulator if include files change.
1671
1672 * interp.c (v850_debug): New global for debugging.
1673 (lookup_hash,sim_size,sim_set_profile): Use
1674 printf_filtered callback, instead of calling printf directly.
1675 (sim_{open,trace}): Enable tracing if -t and compiled for tracing.
1676
1677 * v850_sim.h: Use limits.h to set the various sized types.
1678 (SEXT{5,7,16,22}): New macros.
1679
1680Mon Sep 9 20:50:46 1996 Jeffrey A Law (law@cygnus.com)
1681
1682 * interp.c (hash): Make this an inline function
1683 when compiling with GCC. Simplify.
1684 * simpos.c: Explicitly include "sys/syscall.h". Remove
1685 some #if 0'd code. Enable more emulated syscalls.
1686
1687Wed Sep 4 01:48:55 1996 Jeffrey A Law (law@cygnus.com)
1688
1689 * interp.c: Fix sign bit handling for add and sub instructions.
1690
1691Tue Sep 3 10:20:30 1996 Jeffrey A Law (law@cygnus.com)
1692
1693 * gencode.c: Fix various indention & style problems.
1694 Remove test code. Remove #if 0 code.
1695 * interp.c: Provide prototypes for all static functions.
1696 Fix minor indention problems.
1697 (sim_open, sim_resume): Remove unused variables.
1698 (sim_read): Return type is "int".
1699 * simops.c: Remove unused variables.
1700 (divh): Make result of divide-by-zero zero.
1701 (setf): Initialize result to keep compiler quiet.
1702 (sar instructions): These just clear the overflow bit.
1703 * v850_sim.h: Provide prototypes for put_byte, put_half
1704 and put_word.
1705
1706 * interp.c: OP should be an array of 32bit operands!
1707 (v850_callback): Declare.
1708 (do_format_5): Fix extraction of OP[0].
1709 (sim_size): Remove debugging printf.
1710 (sim_set_callbacks): Do something useful.
1711 (sim_stop_reason): Gross hacks to get c-torture running.
1712 * simops.c: Simplify code for computing targets of bCC
1713 insns. Invert 's' bit if 'ov' bit is set for some
1714 instructions. Fix 'cy' bit handling for numerous
1715 instructions. Make the simulator stop when a halt
1716 instruction is encountered. Very crude support for
1717 emulated syscalls (trap 0).
1718 * v850_sim.h: Include "callback.h" and declare
1719 v850_callback. Items in the operand array are 32bits.
1720
1721Sun Sep 1 22:35:35 1996 Jeffrey A Law (law@cygnus.com)
1722
1723 * interp.c (sim_resume): Fix code to check for a format 3
1724 opcode.
1725 * simops.c: bCC insns only argument is a constant, not a
1726 register value (duh...)
1727
1728Fri Aug 30 10:33:49 1996 Jeffrey A Law (law@cygnus.com)
1729
1730 * simops.c: Fix "not1" and "set1".
1731
1732 * simops.c: Don't forget to initialize temp for
1733 "ld.h" and "ld.w"
1734
1735 * interp.c: Remove various debugging printfs.
1736
1737 * simops.c: Fix satadd, satsub boundary case handling.
1738
1739 * interp.c (hash): Fix.
1740 * interp.c (do_format_8): Get operands correctly and
1741 call the target function.
1742 * simops.c: Rough cut at "clr1", "not1", "set1", and "tst1".
1743
1744Thu Aug 29 13:53:29 1996 Jeffrey A Law (law@cygnus.com)
1745
1746 * interp.c (do_format_4): Get operands correctly and
1747 call the target function.
1748 * simops.c: Rough cut at "sld.b", "sld.h", "sld.w", "sst.b",
1749 "sst.h", and "sst.w".
1750
1751 * v850_sim.h: The V850 doesn't have split I&D spaces. Change
1752 accordingly. Remove many unused definitions.
1753 * interp.c: The V850 doesn't have split I&D spaces. Change
1754 accordingly.
1755 (get_longlong, get_longword, get_word): Deleted.
1756 (write_longlong, write_longword, write_word): Deleted.
1757 (get_operands): Deleted.
1758 (get_byte, get_half, get_word): New functions.
1759 (put_byte, put_half, put_word): New functions.
1760 * simops.c: Remove unused functions. Rough cut at
1761 "ld.b", "ld.h", "ld.w", "st.b", "st.h", "st.w" insns.
1762
1763 * v850_sim.h (struct _state): Remove "psw" field. Add
1764 "sregs" field.
1765 (PSW): Remove bogus definition.
1766 * simops.c: Change condition code handling to use the psw
1767 register within the sregs array. Handle "ldsr" and "stsr".
1768
1769 * simops.c: Handle "satadd", "satsub", "satsubi", "satsubr".
1770
1771 * interp.c (do_format_5): Get operands correctly and
1772 call the target function.
1773 (sim_resume): Don't do a PC update for format 5 instructions.
1774 * simops.c: Handle "jarl" and "jmp" instructions.
1775
1776 * simops.c: Fix minor typos. Handle "cmp", "setf", "tst"
1777 "di", and "ei" instructions correctly.
1778
1779 * interp.c (do_format_3): Get operands correctly and call
1780 the target function.
1781 * simops.c: Handle bCC instructions.
1782
1783 * simops.c: Add condition code handling to shift insns.
1784 Fix minor typos in condition code handling for other insns.
1785
1786 * Makefile.in: Fix typo.
1787 * simops.c: Add condition code handling to "sub" "subr" and
1788 "divh" instructions.
1789
1790 * interp.c (hash): Update to be more accurate.
1791 (lookup_hash): Call hash rather than computing the hash
1792 code here.
1793 (do_format_1_2): Handle format 1 and format 2 instructions.
1794 Get operands correctly and call the target function.
1795 (do_format_6): Get operands correctly and call the target
1796 function.
1797 (do_formats_9_10): Rough cut so shift ops will work.
1798 (sim_resume): Tweak to deal with format 1 and format 2
1799 handling in a single funtion. Don't update the PC
1800 for format 3 insns. Fix typos.
1801 * simops.c: Slightly reorganize. Add condition code handling
1802 to "add", "addi", "and", "andi", "or", "ori", "xor", "xori"
1803 and "not" instructions.
1804 * v850_sim.h (reg_t): Registers are 32bits.
1805 (_state): The V850 has 32 general registers. Add a 32bit
1806 psw and pc register too. Add accessor macros
1807
1808 * Makefile.in, interp.c, v850_sim.h: Bring over endianness
1809 changes from the d10v simulator.
1810
1811 * simops.c: Add shift support.
1812
1813 * simops.c: Add multiply & divide support. Abort for system
1814 instructions.
1815
1816 * simops.c: Add logicals, mov, movhi, movea, add, addi, sub
1817 and subr. No condition codes yet.
1818
1819Wed Aug 28 13:53:22 1996 Jeffrey A Law (law@cygnus.com)
1820
72f4393d 1821 * ChangeLog, Makefile.in, configure, configure.in, v850_sim.h,
c906108c 1822 gencode.c, interp.c, simops.c: Created.