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