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