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