]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/arm/ChangeLog
sim: unify sim_cia definition
[thirdparty/binutils-gdb.git] / sim / arm / 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
27b97b40
MF
92015-04-17 Mike Frysinger <vapier@gentoo.org>
10
11 * wrapper.c (arm_pc_get, arm_pc_set): New functions.
12 (sim_open): Declare new local var i. Call CPU_PC_FETCH &
13 CPU_PC_STORE for all cpus.
14
78e9aa70
MF
152015-04-15 Mike Frysinger <vapier@gentoo.org>
16
17 * Makefile.in (SIM_OBJS): Delete sim-cpu.o.
18 * sim-main.h (STATE_CPU): Delete.
19
bf12d44e
MF
202015-04-13 Mike Frysinger <vapier@gentoo.org>
21
22 * configure: Regenerate.
23
e787f858
MF
242015-04-12 Mike Frysinger <vapier@gentoo.org>
25
26 * Makefile.in (SIM_OBJS): Move wrapper.o to the start of the list.
27
122bbfb5
MF
282015-04-06 Mike Frysinger <vapier@gentoo.org>
29
30 * Makefile.in (SIM_OBJS): Delete sim-engine.o.
31
0fe84f3f
MF
322015-04-01 Mike Frysinger <vapier@gentoo.org>
33
34 * Makefile.in (armos.o, armcopro.o, maverick.o, iwmmxt.o, arminit.o,
35 armrdi.o, armsupp.o, thumbemu.o, bag.o, wrapper.o): Delete rules.
36 * tconfig.h: Delete file.
37
aadc9410
MF
382015-03-31 Mike Frysinger <vapier@gentoo.org>
39
40 * config.in, configure: Regenerate.
41
49d62f89
MF
422015-03-30 Mike Frysinger <vapier@gentoo.org>
43
44 * Makefile.in (SIM_RUN_OBJS): Delete.
45 (SIM_EXTRA_CFLAGS): Delete -DSIM_TARGET_SWITCHES and
46 -DSIM_USE_DEPRECATED_RUN_FRONTEND.
47 (SIM_OBJS): Change to $(SIM_NEW_COMMON_OBJS).
48 * sim-main.h: New file.
49 * wrapper.c: Delete armdefs.h, sim-utils.h, and run-sim.h includes.
50 Add sim-main.h and sim-options.h includes.
51 (sim_callback, mem_size, trace): Add TODO comments.
52 (state): Delete static and add TODO comment.
53 (sim_kind, myname, big_endian): Delete.
54 (init): Change big_endian to CURRENT_TARGET_BYTE_ORDER check.
55 (sim_size, sim_trace, sim_info, sim_target_display_usage, sim_load,
56 sim_do_command, sim_set_callbacks, sim_complete_command): Delete.
57 (sim_target_parse_command_line): Mark static.
58 (free_state): New function.
59 (sim_open): Rewrite to use new common logic.
60 (sim_close): Delete body.
61
dbf8e8af
MF
622015-03-30 Mike Frysinger <vapier@gentoo.org>
63
64 * Makefile.in (SIM_EXTRA_CFLAGS): Delete -DNEED_UI_LOOP_HOOK.
65 * interp.c [NEED_UI_LOOP_HOOK] (UI_LOOP_POLL_INTERVAL,
66 ui_loop_hook_counter, deprecated_ui_loop_hook): Delete.
67 (sim_resume) [NEED_UI_LOOP_HOOK]: Delete ui code.
68
58b991b1
MF
692015-03-30 Mike Frysinger <vapier@gentoo.org>
70
71 * armemu.c [MODE32] (handle_v6_insn): Move definition.
72 (ARMul_Emulate26): Initialize do_int after label target.
73 * armemu.h (UNDEF_Test, UNDEF_Shift, UNDEF_MSRPC, UNDEF_MRSPC,
74 UNDEF_MULPCDest, UNDEF_MULDestEQOp1, UNDEF_LSRBPC,
75 UNDEF_LSRBaseEQOffWb, UNDEF_LSRBaseEQDestWb, UNDEF_LSRPCBaseWb,
76 UNDEF_LSRPCOffWb, UNDEF_LSMNoRegs, UNDEF_LSMPCBase,
77 UNDEF_LSMUserBankWb, UNDEF_LSMBaseInListWb, UNDEF_SWPPC,
78 UNDEF_CoProHS, UNDEF_MCRPC, UNDEF_LSCPCBaseWb,
79 UNDEF_UndefNotBounced, UNDEF_ShortInt, UNDEF_IllegalMode,
80 UNDEF_Prog32SigChange, UNDEF_Data32SigChange): Define to while(0).
81 * armsupp.c (ARMul_Align): Convert old style prototype.
82 * bag.c (addtolist, killwholelist): Mark static.
83 (BAG_newbag): Convert old style prototype.
84 * maverick.c (mv_compute_host_endianness): Delete.
85 * wrapper.c (verbosity, sim_set_verbose): Delete.
86 (init): Set state->verbose to 0.
87
c4c9c44f
MF
882015-03-30 Mike Frysinger <vapier@gentoo.org>
89
90 * configure.ac: Call SIM_AC_OPTION_ENDIAN, SIM_AC_OPTION_ALIGNMENT,
91 SIM_AC_OPTION_HOSTENDIAN, SIM_AC_OPTION_ENVIRONMENT,
92 SIM_AC_OPTION_INLINE, and SIM_AC_OPTION_WARNINGS.
93 * config.in, configure: Regenerate.
94
457983e3
MF
952015-03-30 Mike Frysinger <vapier@gentoo.org>
96
97 * Makefile.in (COPRO): Delete.
98 (SIM_OBJS): Expand COPRO.
99 * configure.ac: Deletd stdint.h check.
100 (COPRO): Delete.
101 * configure: Regenerate.
102
ae7d0cac
MF
1032015-03-16 Mike Frysinger <vapier@gentoo.org>
104
105 * config.in, configure: Regenerate.
106 * tconfig.in: Rename file ...
107 * tconfig.h: ... here.
108
465fb143
MF
1092015-03-14 Mike Frysinger <vapier@gentoo.org>
110
111 * Makefile.in (SIM_EXTRA_CFLAGS): Add
112 -DSIM_USE_DEPRECATED_RUN_FRONTEND.
113 (SIM_RUN_OBJS): Set to run.o.
114
5cddc23a
MF
1152015-03-14 Mike Frysinger <vapier@gentoo.org>
116
117 * configure.ac (AC_CHECK_HEADERS): Delete unistd.h.
118 * aclocal.m4, configure: Regenerate.
119
2974be62
AM
1202014-08-19 Alan Modra <amodra@gmail.com>
121
122 * configure: Regenerate.
123
faa743bb
RM
1242014-08-15 Roland McGrath <mcgrathr@google.com>
125
126 * configure: Regenerate.
127 * config.in: Regenerate.
128
1d63324c
NC
1292014-03-18 Nick Clifton <nickc@redhat.com>
130
131 * wrapper.c: Convert function declarations to ISO C format.
132 (sim_open): Delete code for handling t,d and z command line
133 options.
134
8d052926
NC
1352014-03-14 Nick Clifton <nickc@redhat.com>
136
137 * wrapper.c (op_print): New function.
138 (sim_dis_read): New function.
139 (print_insn): New function - disassembles the given instruction.
140 (sim_trace): Note that tracing is now allowed.
141 (sim_create_inferior): Default to emulating v6.
142 Initialise the disassembler machinery.
143 (sim_target_parse_command_line): Add support for -t -d and -z
144 options.
145 (sim_target_display_usage): Note existence of -d and -z options.
146 (sim_open): Parse -t -d and -z options.
147 * armemu.h: Add exports of trace, disas and trace_funcs.
148 Add prototype for print_insn.
149 * armemu.c (ARMul_Emulate26): Add tracing code.
150 Delete unused variables.
151 * thumbemu (handle_v6_thumb_insn): Delete unused variable Rd.
152 Move Rm variable into switch cases.
153 Add tracing code.
154
155 * armcopro.c (XScale_cp15_init): Add a return value.
156 (XScale_cp13_init): Likewise.
157 (XScale_cp14_init): Likewise.
158 (XScale_cp15_LDC): Delete unused function.
159 (XScale_cp15_STC): Likewise.
160 * maverick.c: Delete comment inside comment.
161 (DSPInit): Delete unused function.
162 (DSPMCR4): Fix compile time warning about missing parenthesis.
163 (DSPMCR5): Likewise.
164 (DSPCDP6): Delete unused variable opcode2.
165
b9366cf3
DM
1662014-03-14 David McQuillan <dmcq@tao-group.com>
167
168 PR sim/8388
169 * armemu.c (WriteR15Load): New function. Determines if the state
170 can be changed upon a write to R15.
171 (LoadMult): Use WriteR15Load.
172 * armemu.h (WRITEDESTB): Use WriteR15Load.
173
60d847df
MF
1742014-03-10 Mike Frysinger <vapier@gentoo.org>
175
176 * wrapper.c (sim_do_command): Add const to cmd.
177
b2b255bd
MF
1782014-03-05 Mike Frysinger <vapier@gentoo.org>
179
180 * wrapper.c (sim_load): Add const to prog.
181
bf3d9781
AM
1822013-09-23 Alan Modra <amodra@gmail.com>
183
184 * configure: Regenerate.
185
31e6ad7d
MF
1862013-06-03 Mike Frysinger <vapier@gentoo.org>
187
188 * aclocal.m4, configure: Regenerate.
189
590919de
MF
1902013-05-07 Jayant Sonar <jayant.sonar@kpitcummins.com>
191 Kaushik Phatak <Kaushik.Phatak@kpitcummins.com>
192
193 * armemu.c (ARMul_Emulate32): Emulate instructions MOVW and MOVT.
194
19a3671c
JB
1952012-12-19 Joel Brobecker <brobecker@adacore.com>
196
197 * COPYING: Update to GPL version 3.
198
f253d86d
NC
1992012-09-03 Nick Clifton <nickc@redhat.com>
200
201 PR sim/14540
202 * armsupp.c (ARMul_MRC): Return 0 if access to the MRC instruction
203 is denied.
204
9256caa6
KB
2052012-08-01 Kevin Buettner <kevinb@redhat.com>
206
207 * wrapper.c (libiberty.h): Include.
208 (sim_store_register, sim_fetch_register): On success, return
209 length, instead of -1.
210
5f3ef9d0
JB
2112012-06-15 Joel Brobecker <brobecker@adacore.com>
212
213 * config.in, configure: Regenerate.
214
b0f05691
NC
2152012-06-13 Nick Clifton <nickc@redhat.com>
216
217 * wrapper.c (sim_create_inferior): Treat WMMX2 binaries as iWMMXt
218 binaries (for now).
219
a493e3e2
PA
2202012-05-24 Pedro Alves <palves@redhat.com>
221
222 PR gdb/7205
223
224 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
225
a6ff997c
NC
2262012-05-18 Nick Clifton <nickc@redhat.com>
227
228 PR 14072
229 * wrapper.c: Include config.h before system header files.
230
2232061b
MF
2312012-03-24 Mike Frysinger <vapier@gentoo.org>
232
233 * aclocal.m4, config.in, configure: Regenerate.
234
db2e4d67
MF
2352011-12-03 Mike Frysinger <vapier@gentoo.org>
236
237 * aclocal.m4: New file.
238 * configure: Regenerate.
239
9c082ca8
MF
2402011-10-17 Mike Frysinger <vapier@gentoo.org>
241
242 * configure.ac: Change include to common/acinclude.m4.
243
6ffe910a
MF
2442011-10-17 Mike Frysinger <vapier@gentoo.org>
245
246 * configure.ac: Change AC_PREREQ to 2.64. Delete AC_CONFIG_HEADER
247 call. Replace common.m4 include with SIM_AC_COMMON.
248 * configure: Regenerate.
249
161fc452
NC
2502011-07-01 Nick Clifton <nickc@redhat.com>
251
252 PR sim/12737
253 * iwmmxt.c (WCMPGT): Sign extend 32-bit values before performing a
254 signed compare.
255 (WMAC): Extend computed result before adding to result register.
256 (WRSA): Sign extend 32-bit values before shifting.
257
af9f7da7
MF
2582011-04-16 Mike Frysinger <vapier@gentoo.org>
259
260 * wrapper.c (sim_complete_command): New stub function.
261
363a6e9f
OS
2622010-05-26 Ozkan Sezer <sezeroz@gmail.com>
263
264 * communicate.c (MYread_char): Check error return from accept() call
265 by its equality to -1 not by it being negative.
266 (MYread_charwait): Likewise.
267 * main.c (main): Likewise for both socket() and accept() calls.
268
5558e7e6
MF
2692010-04-14 Mike Frysinger <vapier@gentoo.org>
270
271 * wrapper.c (sim_write): Add const to buffer arg.
272
3725885a
RW
2732010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
274
275 * configure: Regenerate.
276
d6416cdc
RW
2772009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
278
81ecdfbb
RW
279 * config.in: Regenerate.
280 * configure: Likewise.
281
d6416cdc
RW
282 * configure: Regenerate.
283
a85c0b49
JS
2842008-11-24 Joel Sherrill <joel.sherrill@oarcorp.com>
285
286 * arminit.c, iwmmxt.c: Include <string.h> to
287 eliminate warning.
b5bd9624
HPN
2882008-07-11 Hans-Peter Nilsson <hp@axis.com>
289
290 * configure: Regenerate to track ../common/common.m4 changes.
291 * config.in: Ditto.
292
6efef468
JM
2932008-06-06 Vladimir Prus <vladimir@codesourcery.com>
294 Daniel Jacobowitz <dan@codesourcery.com>
295 Joseph Myers <joseph@codesourcery.com>
296
297 * configure: Regenerate.
298 * wrapper.c (sim_target_display_usage): Add help parameter.
299
e1c9b6f1
MM
3002007-02-27 Mark Mitchell <mark@codesourcery.com>
301
302 * armos.c (SWIflen): Do not treate file descriptor zero as
303 special.
304
1306df90
NC
3052007-02-15 Nick Clifton <nickc@redhat.com>
306
307 * armemu.c (handle_v6_insn): Fix typo in sign extension test of
308 the sext and sxtah instructions.
309
8944021f
DJ
3102007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
311
312 Reported by timeless@gmail.com:
313 * wrapper.c (sim_target_parse_arg_array): Do not return void value.
314
edc5d9ec
HPN
3152006-12-21 Hans-Peter Nilsson <hp@axis.com>
316
317 * acconfig.h: Remove.
318 * config.in: Regenerate.
319
e85e3205
RE
3202006-06-13 Richard Earnshaw <rearnsha@arm.com>
321
322 * configure: Regenerated.
323
2f0122dc
DJ
3242006-06-05 Daniel Jacobowitz <dan@codesourcery.com>
325
326 * configure: Regenerated.
327
20e95c23
DJ
3282006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
329
330 * configure: Regenerated.
331
4b1d9c58
PB
3322006-03-07 Paul Brook <paul@codesourcery.com>
333
334 * elfos.c (ARMul_OSHandleSWI): Call correct function for IsTTY.
335
eeea4660
DJ
3362006-02-01 Shaun Jackman <sjackman@gmail.com>
337
338 * armos.c (ARMul_OSHandleSWI): Handle the RedBoot system
339 call meminfo. Return ENOSYS for unhandled RedBoot syscalls.
340
aba6488e
MM
3412005-11-23 Mark Mitchell <mark@codesourcery.com>
342
343 * wrapper.c (gdb/signals.h): Include it.
344 (SIGTRAP): Don't define.
345 (SIGBUS): Likewise.
346 (sim_stop_reason): Use TARGET_SIGNAL_* instead of SIG*.
347
2be701a3
DJ
3482005-11-16 Shaun Jackman <sjackman@gmail.com>
349
eeea4660 350 * armos.c: Include limits.h
2be701a3
DJ
351 (unlink): Remove this macro. It is unused in this file and
352 conflicts with sim_callback->unlink.
353 (PATH_MAX): Define as 1024 if not already defined.
354 (ReadFileName): New function.
355 (SWIopen): Fix a potential buffer overflow.
356 (SWIremove): New function.
357 (SWIrename): Ditto.
358 (ARMul_OSHandleSWI): Handle the RDP calls SWI_IsTTY,
359 SWI_Remove, and SWI_Rename, as well as the RDI calls
360 AngelSWI_Reason_IsTTY, AngelSWI_Reason_Remove, and
361 AngelSWI_Reason_Rename.
362
c4793bac
PB
3632005-09-19 Paul Brook <paul@codesourcery.com>
364
365 * armdefs.h: Define ARMsword and ARMsdword. Use stdint.h when
366 available.
367 * armemu.c: Use them.
368 * armvirt.c (ARMul_MemoryInit): Use correct type for size.
369 * configure.ac: Check for stdint.h.
370 * config.in: Regenerate.
371 * configure: Regenerate.
372
546aee7a
NC
3732005-05-24 Nick Clifton <nickc@redhat.com>
374
375 * thumbemu.c (handle_v6_thumb_insn): New function.
376 (ARMul_ThumbDecode): Call handle_v6_thumb_insn() when an undefined
377 instruction binary is encountered.
378
380d9419
NC
3792005-05-12 Nick Clifton <nickc@redhat.com>
380
381 * Update the address and phone number of the FSF organization in
382 the GPL notices in the following files:
383 COPYING, Makefile.in, armcopro.c, armdefs.h, armemu.c,
384 armemu.h, armfpe.h, arminit.c, armopts.h, armos.c, armos.h,
385 armrdi.c, armsupp.c, armvirt.c, bag.c, bag.h, communicate.c,
386 communicate.h, dbg_conf.h, dbg_cp.h, dbg_hif.h, dbg_rdi.h,
387 gdbhost.c, gdbhost.h, iwmmxt.c, iwmmxt.h, kid.c, main.c,
388 maverick.c, parent.c, thumbemu.c, wrapper.c
389
8207e0f2
NC
3902005-04-20 Nick Clifton <nickc@redhat.com>
391
392 * armemu.c (handle_v6_insn): New function - emulate a few of the
393 v6 instructions - the ones now generated by GCC.
394 (ARMulEmulate32): Call handle_v6_insn when a possible v6 insn is
395 found.
396 * armdefs.h (struct ARMul_State): Add new field: is_v6.
397 (ARM_v6_Prop): Define.
398 * arminit.c (ARMul_NewState): Initialise the v6 flag.
399 (ARMul_SelectProcessor): Determine if the v6 flag should be
400 set.
401 * wrapper.c (sim_create_inferior): For unknown architectures,
402 default to allowing the v6 instructions.
403
16d55f14
NC
4042005-04-18 Nick Clifton <nickc@redhat.com>
405
406 * iwmmxt.c (WMAC, WMADD): Move casts from the LHS of an assignment
407 operator to the RHS.
408 (WSLL, WSRA, WSRL, WUNPCKEH, WUNPACKEL): Use ULL suffix to
409 indicate an unsigned long long constant.
410
2b193c4a
MK
4112005-03-23 Mark Kettenis <kettenis@gnu.org>
412
413 * configure: Regenerate.
414
35695fd6
AC
4152005-01-14 Andrew Cagney <cagney@gnu.org>
416
417 * configure.ac: Sinclude aclocal.m4 before common.m4. Add
418 explicit call to AC_CONFIG_HEADER.
419 * configure: Regenerate.
420
f0569246
AC
4212005-01-12 Andrew Cagney <cagney@gnu.org>
422
423 * configure.ac: Update to use ../common/common.m4.
424 * configure: Re-generate.
425
38f48d72
AC
4262005-01-11 Andrew Cagney <cagney@localhost.localdomain>
427
428 * configure: Regenerated to track ../common/aclocal.m4 changes.
429
b7026657
AC
4302005-01-07 Andrew Cagney <cagney@gnu.org>
431
432 * configure.ac: Rename configure.in, require autoconf 2.59.
433 * configure: Re-generate.
434
379832de
HPN
4352004-12-08 Hans-Peter Nilsson <hp@axis.com>
436
437 * configure: Regenerate for ../common/aclocal.m4 update.
438
0aaa4a81
AC
4392004-06-28 Andrew Cagney <cagney@gnu.org>
440
441 * armemu.c: Rename ui_loop_hook to deprecated_ui_loop_hook.
442
a4c9740c
MM
4432003-12-29 Mark Mitchell <mark@codesourcery.com>
444
445 * armos.c (fcntl.h): Do not include it.
446 (O_RDONLY): Do not define.
447 (O_WRONLY): Likewise.
448 (O_RDWR): Likewise.
449 (targ-vals.h): Include it.
450 (translate_open_mode): Use TARGET_O_* instead of O_*.
451 (SWIopen): Likewise.
452 * Makefile.in (armos.o): Depend on targ-vals.h.
453
c88931b0
NC
4542003-04-13 Nick Clifton <nickc@redhat.com>
455
456 * armvirt.c (GetWord): Only call XScale_check_memacc if in XScale
457 mode.
458 (PutWord): Likewise.
459
3a3d6f65
NC
4602003-03-30 Nick Clifton <nickc@redhat.com>
461
462 * configure.in (CON_FLAGS): Remove.
463 (COPRO): Unconditionally include iwmmxt.o.
464 * configure: Regenerate.
465 * Makefile.in (CON_FLAGS): Remove.
466 * armcopro.c: Remove use of __IWMMXT__ flag.
467 * wrapper.c: Likewise.
468 * armemu.c: Likewise.
469 Add explanatory comment for suppressed code.
470
4712003-03-27 Nick Clifton <nickc@redhat.com>
472
473 * armos.c (ARMul_OsHandleSWI): Catch SWIs for unhandled vectors.
474
0f026fd0
NC
4752003-03-27 Nick Clifton <nickc@redhat.com>
476
477 * configure.in: (CON_FLAGS): Define and intialise.
478 (COPRO): Add iwmmxt.o if configuring for XScale.
479 * configure: Regenerate.
480 * Makefile.in (iwmmxt.o): Add rule to build.
481 (COM_FLAGS): Define.
482 (ALL_FLAGS): Add CON_FLAGS.
483 * armcopro.c (ARMul_CoProInit): Initialise iWMMXt coprocessors.
484 * armdefs.h (struct ARMul_State): Add 'is_iWMMXt' field.
485 (ARM_iWMMXt_Prop): Define.
486 * armemu.c (ARMul_Emulate16): Intercept iWMMXt instructions and
487 pass to coprocessor.
488 * arminit.c (ARMul_NewState): Initialise 'is_iWMMXt'.
489 (ARMul_Abort): Catch branches through uninitialised vectors.
490 * armos.c (softevtorcode): Update comment.
491 (ARMul_OsInit): Use ARMUndefinedInstrV.
0f026fd0
NC
492 * wrapper.c (sim_create_inferior): Handle iWMMXt processor type.
493 (sim_store_register): Handle iWMMXt registers.
494 (sim_fetch_register): Handle iWMMXt registers.
495 * iwmmxt.h: New file. Exported iWMMXt coprocessor emulator
496 functions.
497 * iwmmxt.c: New file: iWMMXt emulator.
498
dd97b6fd 4992003-03-20 Nick Clifton <nickc@redhat.com>
f603c8fe
NC
500
501 * Contribute support for Cirrus Maverick ARM co-processor,
502 written by Aldy Hernandez <aldyh@redhat.com> and
503 Andrew Cagney <cagney@redhat.com>:
504
505 * maverick.c: New file: Support for Maverick floating point
506 co-processor.
507 * Makefile.in: Add maverick.o target.
508 * configure.in (COPRO): Add maverick.o.
509 * configure: Regenerate.
510 * armcopro.c (ARMul_CoProInit): Only initialise co-processors
511 available on target processor. Add code to initialse Maverick
512 co-processor support code.
513 * armdefs.h (ARMul_state): Add is_ep9312 field.
514 (ARM_ep9312_Prop): Define.
515 * armemu.h: Add prototypes for Maverick co-processor
516 functions.
517 * arminit.c (ARMul_SelectProcessor): Initialise the
518 co-processor support once the chip has been selected.
519 * wrapper.c: Add support for Maverick co-processor.
520 (init): Do not call ARMul_CoProInit. Delays this until the
521 chip has been selected.
522
0d9fd8f1
NC
5232003-03-02 Nick Clifton <nickc@redhat.com>
524
525 * armos.c (SWIWrite0): Catch big-endian bug when printing
526 characters.
527
6b4a8935
AC
5282003-02-27 Andrew Cagney <cagney@redhat.com>
529
530 * wrapper.c (sim_create_inferior, sim_open): Rename _bfd to bfd.
531
45fdcabe
BE
5322003-01-10 Ben Elliston <bje@redhat.com>
533
534 * README.Cygnus: Rename from this ..
535 * README: .. to this.
536
058f270d
AC
5372002-09-27 Andrew Cagney <ac131313@redhat.com>
538
539 * wrapper.c (sim_open): Add support for -m<mem-size>.
540 (mem_size): Reduce to 2MB.
541 Fix PR gdb/433.
542
c7a7b500
NC
5432002-08-15 Nick Clifton <nickc@redhat.com>
544
545 * armos.c (ARMul_OSHandleSWI): Catch and ignore SWIs of -1, they
546 can be caused by an interrupted system call being resumed by GDB.
547
630ace25
NC
5482002-07-05 Nick Clifton <nickc@cambridge.redhat.com>
549
550 * armemu.c (ARMul_Emulate32): Add more tests for valid MIA, MIAPH
551 and MIAxy instructions.
552
7b77dec6
NC
5532002-06-21 Nick Clifton <nickc@cambridge.redhat.com>
554
555 * armos.h (ADP_Stopped_RunTimeError): Set correct value.
556
c8cca39f
AC
5572002-06-16 Andrew Cagney <ac131313@redhat.com>
558
559 * configure: Regenerated to track ../common/aclocal.m4 changes.
560
26216b98
AC
5612002-06-12 Andrew Cagney <ac131313@redhat.com>
562
563 * Makefile.in: Update copyright.
564 (wrapper.o): Specify dependencies.
565 * wrapper.c: Include "gdb/sim-arm.h".
566 (sim_store_register, sim_fetch_register): Rewrite using `enum
567 arm_sim_regs' and a switch.
568
3c25f8c7
AC
5692002-06-09 Andrew Cagney <cagney@redhat.com>
570
571 * wrapper.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
572 * armos.c: Include "gdb/callback.h".
573
5aa682b2
NC
5742002-05-29 Nick Clifton <nickc@cambridge.redhat.com>
575
576 * armcopro.c (XScale_check_memacc): Set the FSR and FAR registers
577 if a Data Abort is detected.
578
7378e198
NC
5792002-05-27 Nick Clifton <nickc@cambridge.redhat.com>
580
10b57fcb
NC
581 * armvirt.c (GetWord): Only perform access checks if 'check'
582 is set.
583 (PutWord): Likewise.
584 * wrapper.c (sim_create_inferior): Report unknown machine
585 numbers.
7378e198
NC
586 * thumbemu.c (ARMul_ThumbDecode, Case 31): Do not set LR to pc +
587 2, it has already been advanced.
588
2984e114
NC
5892002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
590
591 * thumbemu.c (ARMul_ThumbDecode): When decoding a BLX(1)
592 instruction do not add in the second bit of the base address -
593 this has already been accounted for.
594
8b2440b7
NC
5952002-05-21 Nick Clifton <nickc@cambridge.redhat.com>
596
597 * armcopro.c (check_cp13_access): Allow access to register 1 when
598 CRm is 1.
599 (write_cp13_reg): Allow bit 0 of reg 1 of CRm 1 to be written to.
600
de4112fa
NC
6012002-05-17 Nick Clifton <nickc@cambridge.redhat.com>
602
7f53bce4 603 * Makefile.in (SIM_TARGET_SWITCHES): Define.
de4112fa
NC
604 * armos.c (swi_mask): Define. Initialise to supporting all
605 SWI emulations.
606 (ARMul_OSInit): For XScale targets, only support the ANGEL
607 SWI interface. (This is at the request if Intel).
608 (ARMul_OSHandleSWI): Examine swi_mask to see if a particular
609 SWI call should be emulated.
610 Do not fall through from AngelSWI_Reason_WriteC.
611 Propagate exit code from RedBoot Exit SWI.
612 * rdi-dgb.h (swi_mask): Prototype.
613 (SWI_MASK_DEMON, SWI_MASK_ANGEL, SWI_MASK_REDBOOT): Define.
614 * wrapper.c (sim_target_parse_command_line): New function.
615 Look for and handle --swi-support switch.
616 (sim_target_parse_arg_array): New function. Process an argv
617 array for parsing by sim_target_parse_command_line.
618 (sim_target_display_usage): New function. Describe syntax of
619 --swi-suppoort switch.
620 (sim_open): Add call to sim_target_parse_arg_array).
621
d8512e6a
NC
6222002-05-09 Nick Clifton <nickc@cambridge.redhat.com>
623
624 * armos.c (ARMul_OSHandleSWI): Support the RedBoot SWI in ARM
625 mode and some of its system calls.
626
ae60d3dd
AG
6272002-03-17 Anthony Green <green@redhat.com>
628
629 * wrapper.c (mem_size): Increase the default target memory to 8MB.
630
b3ba81f8
KS
6312002-02-21 Keith Seitz <keiths@redhat.com>
632
633 * armos.c (SWIWrite0): Use generic host_callback mechanism
634 for supported OS functions "open", "close", "write", etc.
635 (SWIopen): Likewise.
636 (SWIread): Likewise.
637 (SWIwrite): Likewise.
638 (SWIflen): Likewise.
639 (ARMul_OSHandleSWI): Likewise.
640
c17aa318
NC
6412002-02-05 Nick Clifton <nickc@cambridge.redhat.com>
642
643 * wrapper.c (sim_create_inferior): Modify previous patch so that
644 it is only triggered for COFF format executables.
645
25180f8a
NC
6462002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
647
c17aa318
NC
648 * wrapper.c (sin_create_inferior): If a v5 architecture is
649 detected, assume it might be an XScale binary, since there is no
650 way to distinguish between the two in the COFF file format.
25180f8a 651
57165fb4
NC
6522002-01-10 Nick Clifton <nickc@cambridge.redhat.com>
653
654 * arminit.c (ARMul_Abort): Fix parameters passed to CPRead[13].
655 * armemu.c (ARMul_Emulate32): Fix parameters passed to CPRead[13]
656 and CPRead[14].
657 Fix formatting. Improve layout.
658 * armemu.h: Fix formatting. Improve layout.
659
272fcdcd
NC
6602002-01-09 Nick Clifton <nickc@cambridge.redhat.com>
661
662 * wrapper.c (sim_fetch_register): If fetching more than 4 bytes
663 return zeroes in the other words.
86c735a5 664 General formatting tidy ups.
272fcdcd 665
6746a76a
BH
6662001-11-16 Ben Harris <bjh21@netbsd.org>
667
668 * Makefile.in (armemu32.o): Replace $< with autoconf recommended
669 $(srcdir)/....
670 (armemu26.o): Ditto.
671
ff44f8e3
NC
6722001-10-18 Nick Clifton <nickc@cambridge.redhat.com>
673
674 * armemu.h (CP_ACCESS_ALLOWED): New macro.
675 Fix formatting.
676 * armcopro.c (read_cp14_reg): Make static.
677 (write_cp14_reg): Make static.
678 (check_cp13_access): Use CP_ACCESS_ALLOWED macro.
679 Fix formatting.
680 * armsupp.c (ARMul_LDC): Check CP_ACCESS_ALLOWED.
681 (ARMul_STC): Check CP_ACCESS_ALLOWED.
682 (ARMul_MCR): Check CP_ACCESS_ALLOWED.
683 (ARMul_MRC): Check CP_ACCESS_ALLOWED.
684 (ARMul_CDP): Check CP_ACCESS_ALLOWED.
685 Fix formatting.
686 * armemu.c (MCRR): Check CP_ACCESS_ALLOWED. Test Rd and Rn not
687 equal to 15.
688 (MRRC): Check CP_ACCESS_ALLOWED. Test Rd and Rn not equal to 15.
689 Fix formatting.
690
fb7a8ef0
NC
6912001-05-11 Nick Clifton <nickc@cambridge.redhat.com>
692
693 * armemu.c (ARMul_Emulate32): Fix handling of XScale LDRD and STRD
694 instructions with post indexed addressing modes.
695
dac07255
NC
6962001-05-08 Jens-Christian Lache <lache@tu-harburg.de>
697
698 * armsupp.c (ARMul_FixCPSR): Check Mode not Bank in order to
699 determine rocesor mode.
700
c3ae2f98
MG
7012001-04-18 matthew green <mrg@redhat.com>
702
703 * armcopro.c (write_cp15_reg): Set CHANGEMODE if endianness changes.
704 (read_cp15_reg): Make non-static.
705 (XScale_cp15_LDC): Update for write_cp15_reg() change.
706 (XScale_cp15_MCR): Likewise.
707 (XScale_cp15_write_reg): Likewise.
708 (XScale_check_memacc): New function. Check for breakpoints being
709 activated by memory accesses. Does not support the Branch Target
710 Buffer.
711 (XScale_set_fsr_far): New function. Set FSR and FAR for XScale.
712 (XScale_debug_moe): New function. Set the debug Method Of Entry,
713 if configured.
714 (write_cp14_reg): Reset count counter if requested.
715 * armdefs.h (struct ARMul_State): New members `LastTime' and
716 `CP14R0_CCD' used for the timer/counters.
717 (ARMul_CP13_R0_FIQ, ARMul_CP13_R0_IRQ, ARMul_CP13_R8_PMUS,
718 ARMul_CP14_R0_ENABLE, ARMul_CP14_R0_CLKRST, ARMul_CP14_R0_CCD,
719 ARMul_CP14_R0_INTEN0, ARMul_CP14_R0_INTEN1, ARMul_CP14_R0_INTEN2,
720 ARMul_CP14_R0_FLAG0, ARMul_CP14_R0_FLAG1, ARMul_CP14_R0_FLAG2,
721 ARMul_CP14_R10_MOE_IB, ARMul_CP14_R10_MOE_DB, ARMul_CP14_R10_MOE_BT,
722 ARMul_CP15_R1_ENDIAN, ARMul_CP15_R1_ALIGN, ARMul_CP15_R5_X,
723 ARMul_CP15_R5_ST_ALIGN, ARMul_CP15_R5_IMPRE, ARMul_CP15_R5_MMU_EXCPT,
724 ARMul_CP15_DBCON_M, ARMul_CP15_DBCON_E1, ARMul_CP15_DBCON_E0): New
725 defines for XScale registers.
726 (XScale_check_memacc, XScale_set_fsr_far, XScale_debug_moe): Prototype.
727 (ARMul_Emulate32, ARMul_Emulate26): Clean up function definition.
728 (ARMul_Emulate32): Handle the clock counter and hardware instruction
729 breakpoints. Call XScale_set_fsr_far() for software breakpoints and
730 software interrupts.
731 (LoadMult): Call XScale_set_fsr_far() for data aborts.
732 (LoadSMult): Likewise.
733 (StoreMult): Likewise.
734 (StoreSMult): Likewise.
735 * armemu.h (write_cp15_reg): Update prototype.
736 * arminit.c (ARMul_NewState): Initialise CP14R0_CCD and LastTime.
737 (ARMul_Abort): If XScale, check for FIQ and IRQ being enabled in CP13
738 register 0.
739 * armvirt.c (GetWord): Call XScale_check_memacc().
740 (PutWord): Likewise.
741
3cf84db9
NC
7422001-03-20 Nick Clifton <nickc@redhat.com>
743
744 * armvirt.c (ARMul_ReLoadInstr): Do not enable alignment checking
745 when loading unaligned thumb instructions.
746
4f3c3dbb
NC
7472001-03-06 Nick Clifton <nickc@redhat.com>
748
749 * thumbemu.c (ARMul_ThumbDecode): Delete label bo_blx2.
750 Compute destination address of BLX(1) instruction by
751 taking bit 1 from PC and not from bit 0 of the offset.
752
917bca4f
NC
7532001-02-27 Nick Clifton <nickc@redhat.com>
754
755 * armvirt.c (GetWord): Add new parameter - check - to enable or
756 disable the alignment checking.
757 (PutWord): Add new parameter - check - to enable or disable the
758 alignment checking.
759 (ARMul_ReLoadInstr): Pass extra parameter to GetWord.
760 (ARMul_ReadWord): Pass extra parameter to GetWord.
761 (ARMul_WriteWord): Pass extra parameter to PutWord.
762 (ARMul_StoreHalfWord): Pass extra parameter to PutWord.
763 (ARMul_WriteByte): Pass extra parameter to GetWord.
764 (ARMul_SwapWord): Pass extra parameter to PutWord.
765 (ARMul_SafeReadByte): New Function: Read a byte but do not abort.
766 (ARMul_SafeWriteByte): New Function: Write a byte but do not abort.
767
768 * armdefs.h: Add prototypes for ARMul_SafeReadByte and
769 ARMul_SafeWriteByte.
770
771 * wrapper.c (sim_write): Use ARMul_SafeWriteByte.
772 (sim_read): Use ARMul_SafeReadByte.
773
774 * armos.c (in_SWI_handler): Remove.
775 (SWIWrite0): Use ARMul_SafeReadByte.
776 (WriteCommandLineTo): Use ARMul_SafeWriteByte.
777 (SWIopen): Use ARMul_SafeReadByte.
778 (SWIread): Use ARMul_SafeWriteByte.
779 (SWIwrite): Use ARMul_SafeReadByte.
780 (ARMul_OSHandleSWI): Remove use of is_SWI_handler.
781 (ARMul_OSException): Remove use of is_SWI_handler.
782
2ef048fc
NC
7832001-02-16 Nick Clifton <nickc@redhat.com>
784
785 * armemu.c: Remove Prefetch abort for breakpoints. Instead set
786 the state to RESUME.
787
5f7d0a33
NC
7882001-02-14 Nick Clifton <nickc@redhat.com>
789
44e23e57
NC
790 * armemu.c: Add code to preserve processor mode when a prefetch
791 abort is signalled after processing a breakpoint.
792
5f7d0a33
NC
793 * wrapper.c (sim_create_inferior): Reset processor into ARM mode
794 for any machine type except the early ARMs.
795
1e5d4e46
NC
7962001-02-13 Nick Clifton <nickc@redhat.com>
797
798 * armos.c (in_SWI_handler): New static variable.
799 (ARMul_OSHandleSWI): Set in_SWI_handler whilst emulating a SWI.
800 (ARMul_OSException): Ignore exceptions generated whilst emulating
801 a SWI.
802
179ae6ea
NC
8032001-02-12 Nick Clifton <nickc@redhat.com>
804
805 * armemu.h (NEGBRANCH): Fix defintion.
806
dda308f5
NC
8072001-02-01 Nick Clifton <nickc@redhat.com>
808
809 * armemu.c (LoadSMult): Update base address register after
810 restoring register bank.
811 (StoreMult): Update base address register after restoring register
812 bank.
813
88694af3
NC
8142001-01-31 Nick Clifton <nickc@redhat.com>
815
816 * armvirt.c (PutWord): Detect installation of SWI vector.
817 (SWI_vector_installed): Define.
818 * armos.c (ARMul_OsInit): Reset SWI_vector_installed.
819 * armos.h (SWI_vector_installed): Declare.
820 * wrapper.c (SWI_vector_installed): Remove definition.
821 (sim_write): Remove check of SWI vector installation
822
ac1c9d3a
NC
8232000-12-18 Nick Clifton <nickc@redhat.com>
824
825 * armemu.c (ARMul_Emulate26): Fix test for StoreDouble
826 instruction.
827
9a6b6a66
NC
8282000-12-10 Nick Clifton <nickc@redhat.com>
829
830 * armos.c (ARMul_OSHandleSWI): Add 0x91 as an FPE SWI.
831
760a7bbe
NC
8322000-12-07 Nick Clifton <nickc@redhat.com>
833
834 * armemu.c (ARMul_Emulate26): Detect double word load and
835 store instructions and call emulation routines.
836 (Handle_Load_Double): Emulate a double word load instruction.
837 (Handle_Store_Double): Emulate a double word store
838 instruction.
839
7f53bc35
NC
8402000-12-03 Nick Clifton <nickc@redhat.com>
841
842 * armos.c: Fix formatting.
843 (ARMul_OSHandleSWI): Suppress support of DEMON SWIs when in xscale
844 mode.
845
f1129fb8
NC
8462000-11-29 Nick Clifton <nickc@redhat.com>
847
848 * armdefs.h (State): Add 'v5e' and 'xscale' fields.
849 (ARM_v5e_Prop): Define.
850 (ARM_XScale_Prop): Define.
851
852 * wrapper.c (sim_create_inferior): Select processor based on
853 machine number.
854 (SWI_vector_installed): New boolean. Set to true if the SWI
855 vector address is written to by the executable.
856
857 * arminit.c (ARMul_NewState): Switch default to 32 bit mode.
858 (ARMul_SelectProcessor): Initialise v5e and xscale signals.
859 (ARMul_Abort): Fix calculation of LR address.
860
861 * armos.c (ARMul_OSHandleSWI): If a SWI vector has been installed
862 and a SWI is not handled by the simulator, pass the SWI off to the
863 vector, otherwise issue a warning message and continue.
864
865 * armsupp.c (ARMul_CPSRAltered): Set S bit aswell.
866
867 * thumbemu.c: Add v5 instruction simulation.
868 * armemu.c: Add v5, XScale and El Segundo instruction simulation.
869
870 * armcopro.c: Add XScale co-processor emulation.
871 * armemu.h: Add exported XScale co-processor functions.
872
3943c96b
NC
8732000-09-15 Nick Clifton <nickc@redhat.com>
874
875 * armdefs.h: Rename StrongARM property to v4_ARM and add v5 ARM
876 property. Delete unnecessary processor names.
877 (ARM_Strong_Prop): Delete.
878 (STRONGARM): Delete.
879 (ARM_v4_Prop): Add.
880 (ARM_v5_Prop): Add
881 (State): Delete is_StrongARM boolean. Add is_v4 and is_v5
882 booleans.
883
884 * armemu.h (BUSUSEDINCPCS): Use is_v4 boolean.
885 (BUSUSEDINCPCN): Use is_v4 boolean.
886
887 * arminit.c (ARMul_NewState): Initialise is_v4 and is_v5 fields.
888 (ARMul_SelectProcessor): Change second parameter from 'processor'
889 to 'properties'. Set is_v4 and is_v5 booleans in State.
890
891 * armrdi.c: Remove use of ARM processor names. Replace with ARM
892 processor properties.
893
894 * wrapper.c (sim_create_inferior): Choose properties passed to
895 ARMul_SelectProcessor based on machine number.
896
4bc1de7b
NC
8972000-08-14 Nick Clifton <nickc@redhat.com>
898
899 * armemu.c (LHPOSTDOWN): Compute write back value before
900 performing load in case the offset register is overwritten.
901 (LHPOSTUP): Ditto.
902
0a4321b9
FN
9032000-07-14 Fernando Nasser <fnasser@cygnus.com>
904
905 * wrapper.c (sim_create_inferior): Fix typo in the previous patch.
906
64a10675
FN
9072000-07-14 Fernando Nasser <fnasser@cygnus.com>
908
909 * wrapper.c (sim_create_inferior): Reset mode to ARM when creating a
910 new inferior.
911
b0eae074
AO
9122000-07-04 Alexandre Oliva <aoliva@redhat.com>
913
ae3c7619
AO
914 * armvirt.c (ABORTS): Do not define.
915
1e6b544a
AO
916 * armdefs.h (struct ARMul_State): Add is_StrongARM.
917 (ARM_Strong_Prop, STRONGARM): Define.
918 * arminit.c (ARMul_NewState): Reset is_StrongARM.
919 (ARMul_SelectProcessor): Set is_StrongARM.
920 * wrapper.c (sim_create_inferior): Use bfd machine type to
921 determine processor type to emulate.
922 * armemu.h (BUSUSEDINCPCS, BUSUSEDINCPCN): Don't increment PC
923 when emulating StrongARM.
924
66210567
AO
925 * armemu.c (ARMul_Emulate, t_undefined): Proceed to next insn.
926
e063aa3b
AO
927 * armemu.h (INSN_SIZE): New macro.
928 (SET_ABORT): Save CPSR in SPSR and set LR.
929 * armemu.c (ARMul_Emulate, isize): Set to INSN_SIZE.
930 (WriteR15, WriteSR15): Do not discard bit 1 in Thumb mode.
931 * arminit.c (ARMul_Abort): Use new SETABORT and INSN_SIZE.
932
13b6dd6f
AO
933 * armemu.c (LoadSMult): Use WriteR15() to discard the least
934 significant bits of PC.
935
892c6b9d
AO
936 * armemu.h (WRITEDESTB): New macro.
937 * armemu.c (ARMul_Emulate26, bl): Use WriteR15Branch() to
938 modify PC. Moved the existing logic...
939 (WriteR15Branch): ... here. New function.
940 (WriteR15, WriteSR15): Drop the two least significant bits.
941 (LoadSMult): Use WriteR15Branch() to modify PC.
942 (LoadMult): Use WRITEDESTB() instead of WRITEDEST().
943
cf52c765
AO
944 * armemu.h (GETSPSR): Call ARMul_GetSPSR().
945 * armsupp.c (ARMul_CPSRAltered): Zero out bits as they're
946 extracted from state->Cpsr, but preserve the unused bits.
947 (ARMul_GetCPSR): Get bits preserved in state->Cpsr.
948 (ARMul_GetSPSR, ARMul_FixCPSR): Use ARMul_GetCPSR() to
949 get the full CPSR word.
950
4ef2594f
AO
951 * armemu.h (PSR_FBITS, PSR_SBITS, PSR_XBITS, PSR_CBITS): New.
952 (SETPSR_F, SETPSR_S, SETPSR_X, SETPSR_C): New macros.
953 (SETPSR, SET_INTMODE, SETCC): Removed.
954 * armsupp.c (ARMul_FixCPSR, ARMul_FixSPSR): Do not test bit
955 mask. Use SETPSR_* to modify PSR.
956 (ARMul_SetCPSR): Load all bits from value.
957 * armemu.c (ARMul_Emulate, msr): Do not test bit mask.
958
e62263b8
AO
959 * armemu.c (ARMul_Emulate): Compute writeback value before
960 loading, since the offset register may be the destination
961 register.
962
b0eae074
AO
963 * armdefs.h (SYSTEMBANK): Define as USERBANK.
964 * armsupp.c (ARMul_SwitchMode): Remove SYSTEMBANK cases.
965
ee9a7772
AO
9662000-06-22 Alexandre Oliva <aoliva@cygnus.com>
967
f9c22bc3
AO
968 * armemu.c (Multiply64): Fix computation of flag N.
969
ee9a7772
AO
970 * armemu.c (MultiplyAdd64): Fix computation of flag N.
971
fe47e8df
AO
9722000-06-20 Alexandre Oliva <aoliva@cygnus.com>
973
974 * armemu.h (NEGBRANCH): Do not overwrite the two most significant
975 bits of the offset.
976
c1a72ffd
NC
9772000-05-25 Nick Clifton <nickc@cygnus.com>
978
979 * armcopro.c (MMUMCR): Only indicate mode change if a singal has
980 really changed.
981 (MMUWrite): Only indicate mode change if a singal has really
982 changed.
983
984 * armdefs.h (SYSTEMMODE): Define.
985 (BANK_CAN_ACEESS_SPSR): Define.
986
987 * armemu.c (ARM_Emulate26): If the mode has changed allow the PC
988 to advance before stopping the emulation.
989
990 * arminit.c (ARMul_Reset): Ensure Mode field of State is set
991 correctly.
992
993 * armos.c (ARMul_OSInit): Create a initial stack pointer for
994 System mode.
995
996 * armsupp.c (ModeToBank): Remove unused first parameter.
997 Add support for System Mode.
998 (ARMul_GetSPSR): Use BANK_CAN_ACCESS_SPSR macro.
999 (ARMul_SetSPSR): Use BANK_CAN_ACCESS_SPSR macro.
1000 (ARMul_FixSPSR): Use BANK_CAN_ACCESS_SPSR macro.
1001 (ARMulSwitchMode): Add support for System Mode.
1002
1003Wed May 24 14:40:34 2000 Andrew Cagney <cagney@b1.cygnus.com>
eb2d80b4
AC
1004
1005 * configure: Regenerated to track ../common/aclocal.m4 changes.
1006
3463c3fb
NC
10072000-05-23 Nick Clifton <nickc@cygnus.com>
1008
1009 * wrapper.c (sim_store_register): Special handling for CPSR
1010 register.
1011
5d0d395e
FCE
10122000-03-11 Philip Blundell <philb@gnu.org>
1013
1014 * armemu.c (LoadSMult, LoadMult): Correct handling of aborts.
1015 Patch from Allan Skillman <Allan.Skillman@arm.com>.
1016
6c9e0292
FCE
1017Wed Mar 22 15:24:21 2000 glen mccready <gkm@pobox.com>
1018
1019 * wrapper.c (sim_open,sim_close): Copy into myname, free myname.
1020
6d358e86
NC
10212000-02-08 Nick Clifton <nickc@cygnus.com>
1022
1023 * wrapper.c: Fix compile time warning messages.
1024 * armcopro.c: Fix compile time warning messages.
1025 * armdefs.h: Fix compile time warning messages.
1026 * armemu.c: Fix compile time warning messages.
1027 * armemu.h: Fix compile time warning messages.
1028 * armos.c: Fix compile time warning messages.
1029 * armsupp.c: Fix compile time warning messages.
1030 * armvirt.c: Fix compile time warning messages.
d0187574 1031 * bag.c: Fix compile time warning messages.
6d358e86 1032
dfcd3bfb
JM
10332000-02-02 Bernd Schmidt <bernds@cygnus.co.uk>
1034
1035 * *.[ch]: Use indent to make readable.
1036
c2d11a7d
JM
10371999-11-22 Nick Clifton <nickc@cygnus.com>
1038
1039 * armos.c (SWIread): Generate an error message if a huge read is
1040 performed.
1041 (SWIwrite): Generate an error message if a huge write is
1042 performed.
1043
5c44784c
JM
10441999-10-27 Nick Clifton <nickc@cygnus.com>
1045
1046 * thumbemu.c (ARMul_ThumbDecode): Accept 0xbebe as a thumb
1047 breakpoint.
1048
2df3850c
JM
10491999-10-08 Ulrich Drepper <drepper@cygnus.com>
1050
1051 * armos.c (SWIopen): Always pass third parameter with 0666 since
1052 otherwise uninitialized memory gets access if the O_CREAT bit is
1053 set and so we possibly cannot access the file afterwards.
1054
2acceee2
JM
10551999-09-29 Doug Evans <devans@casey.cygnus.com>
1056
1057 * armos.c (SWIWrite0): Send output to stdout instead of stderr.
1058 (ARMul_OSHandleSWI, case SWI_WriteC,AngelSWI_Reason_WriteC): Ditto.
1059
d4f3574e
SS
1060Thu Sep 2 18:15:53 1999 Andrew Cagney <cagney@b1.cygnus.com>
1061
1062 * configure: Regenerated to track ../common/aclocal.m4 changes.
1063
cd0fc7c3
SS
10641999-05-08 Felix Lee <flee@cygnus.com>
1065
1066 * configure: Regenerated to track ../common/aclocal.m4 changes.
1067
7a292a7a
SS
10681999-04-06 Keith Seitz <keiths@cygnus.com>
1069
1070 * wrapper.c (stop_simulator): New global.
1071 (sim_stop): Set sim state to STOP and set
1072 stop_simulator.
1073 (sim_resume): Reset stop_simulator.
1074 (sim_stop_reason): If stop_simulator is set, tell gdb
1075 that the we took SIGINT.
1076 * armemu.c (ARMul_Emulate26): Don't loop forever. Stop if
1077 stop_simulator is set.
1078
10791999-04-02 Keith Seitz <keiths@cygnus.com>
1080
1081 * armemu.c (ARMul_Emulate26): If NEED_UI_LOOP_HOOK, call ui_loop_hook
1082 whenever the counter expires.
1083 * Makefile.in (SIM_EXTRA_CFLAGS): Include define NEED_UI_LOOP_HOOK.
1084
10851999-03-24 Nick Clifton <nickc@cygnus.com>
1086
1087 * armemu.c (ARMul_Emulate26): Handle new breakpoint value.
1088 * thumbemu.c (ARMul_ThumbDecode): Handle new breakpoint value.
1089
c906108c
SS
1090Mon Sep 14 09:00:05 1998 Nick Clifton <nickc@cygnus.com>
1091
1092 * wrapper.c (sim_open): Set endianness according to BFD or command
1093 line switch.
1094
1095 * tconfig.in: Define SIM_HAVE_BIENDIAN.
1096
1097Thu Aug 27 11:00:05 1998 Nick Clifton <nickc@cygnus.com>
1098
1099 * armemu.c (Multiply64): Test for Rm (rather than Rs) not being
1100 the same as either RdHi or RdLo.
1101
1102Thu Jul 2 10:24:35 1998 Nick Clifton <nickc@cygnus.com>
1103
1104 * armos.c (ARMul_OSHandleSWI: AngelSWI_Reason_ReportException):
1105 Set Reg[0] based on reason for for the exception.
1106
1107Thu Jun 4 15:22:03 1998 Jason Molenda (crash@bugshack.cygnus.com)
1108
1109 * armos.c (SWIwrite0): New function.
1110 (WriteCommandLineTo): New function.
1111 (SWIopen): New function.
1112 (SWIread): New function.
1113 (SWIwrite): New function.
1114 (SWIflen): New function.
1115 (ARMul_OSHandleSWI): Call new functions instead of handling
1116 these here.
1117 (ARMul_OSHandleSWI): Handle Angel SWIs correctly.
1118 (*): Reformat spacing to be a bit more GNUly.
1119 Most code taken from a patch by Anthony Thompson
1120 (athompso@cambridge.arm.com)
1121
1122Tue Jun 2 15:22:22 1998 Nick Clifton <nickc@cygnus.com>
1123
1124 * armos.h: Add Angel SWI and its reason codes.
1125 * armos.c (ARMul_OSHandleSWI): Ignore Angel SWIs (for now).
1126
1127Mon Jun 1 17:14:19 1998 Anthony Thompson (athompso@cambridge.arm.com)
1128
1129 * armos.c (ARMul_OSHandleSWI::SWI_Open): Handle special case
1130 of ":tt" to catch stdin in addition to stdout.
1131 (ARMul_OSHandleSWI::SWI_Seek): Return 0 or 1 to indicate failure
1132 or success of lseek().
1133
1134Wed May 20 17:36:25 1998 Nick Clifton <nickc@cygnus.com>
1135
1136 * armos.c (ARMul_OSHandleSWI): Special case code to catch attempts
1137 to open stdout.
1138
1139Wed Apr 29 15:29:55 1998 Jeff Johnston <jjohnstn@cygnus.com>
1140
1141 * armos.c (ARMul_OSHandleSWI): Added code for SWI_Clock,
1142 SWI_Flen, and SWI_Time. Also fixed SWI_Seek code to only
1143 seek from offset 0 and not to use R2 for whence since it is
1144 not passed as part of the SWI call.
1145
1146Tue Apr 28 18:33:31 1998 Geoffrey Noer <noer@cygnus.com>
1147
1148 * configure: Regenerated to track ../common/aclocal.m4 changes.
1149
1150Sun Apr 26 15:31:55 1998 Tom Tromey <tromey@creche>
1151
1152 * configure: Regenerated to track ../common/aclocal.m4 changes.
1153 * config.in: Ditto.
1154
1155Sun Apr 26 15:20:26 1998 Tom Tromey <tromey@cygnus.com>
1156
1157 * acconfig.h: New file.
1158 * configure.in: Reverted change of Apr 24; use sinclude again.
1159
1160Fri Apr 24 14:16:40 1998 Tom Tromey <tromey@creche>
1161
1162 * configure: Regenerated to track ../common/aclocal.m4 changes.
1163 * config.in: Ditto.
1164
1165Fri Apr 24 11:20:19 1998 Tom Tromey <tromey@cygnus.com>
1166
1167 * configure.in: Don't call sinclude.
1168
1169Sat Apr 4 20:36:25 1998 Andrew Cagney <cagney@b1.cygnus.com>
1170
1171 * configure: Regenerated to track ../common/aclocal.m4 changes.
1172
1173Fri Mar 27 16:15:52 1998 Andrew Cagney <cagney@b1.cygnus.com>
1174
1175 * configure: Regenerated to track ../common/aclocal.m4 changes.
1176
1177Wed Mar 25 12:35:29 1998 Andrew Cagney <cagney@b1.cygnus.com>
1178
1179 * configure: Regenerated to track ../common/aclocal.m4 changes.
1180
1181Wed Mar 18 12:38:12 1998 Andrew Cagney <cagney@b1.cygnus.com>
1182
1183 * configure: Regenerated to track ../common/aclocal.m4 changes.
1184
1185Tue Mar 10 09:26:38 1998 Nick Clifton <nickc@cygnus.com>
1186
1187 * armopts.h: Remove definition of LITTLEND - it is not used.
1188
1189Tue Feb 17 12:35:54 1998 Andrew Cagney <cagney@b1.cygnus.com>
1190
1191 * wrapper.c (sim_store_register, sim_fetch_register): Pass in
1192 length parameter. Return -1.
1193
1194Sun Feb 1 16:47:51 1998 Andrew Cagney <cagney@b1.cygnus.com>
1195
1196 * configure: Regenerated to track ../common/aclocal.m4 changes.
1197
1198Sat Jan 31 18:15:41 1998 Andrew Cagney <cagney@b1.cygnus.com>
1199
1200 * configure: Regenerated to track ../common/aclocal.m4 changes.
1201
1202Mon Jan 19 22:26:29 1998 Doug Evans <devans@seba>
1203
1204 * configure: Regenerated to track ../common/aclocal.m4 changes.
1205
1206Mon Dec 15 23:17:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
1207
1208 * configure: Regenerated to track ../common/aclocal.m4 changes.
1209 * config.in: Ditto.
1210
1211Tue Dec 9 11:30:48 1997 Nick Clifton <nickc@cygnus.com>
1212
1213 * Makefile.in: Updated with changes from branch.
1214 * armdefs.h: ditto
1215 * armemu.c: ditto these changes
1216 * armemu.h: ditto add support for
1217 * armos.c: ditto the Thumb instruction
1218 * armsupp.c: ditto set and the new v4
1219 * armvirt.c: ditto architecture.
1220 * wrapper.c: ditto
1221 * thumbemu.c: New file from branch.
1222
1223
1224Thu Dec 4 09:21:05 1997 Doug Evans <devans@canuck.cygnus.com>
1225
1226 * configure: Regenerated to track ../common/aclocal.m4 changes.
1227
1228Thu Oct 30 13:54:06 1997 Nick Clifton <nickc@cygnus.com>
1229
1230 * armos.c (ARMul_OSHandleSWI): Add support for GetEnv SWI. Patch
1231 from Tony Thompson at ARM: athompso@arm.com
1232
1233 * wrapper.c (sim_create_inferior): Add code to create an execution
1234 environment. Patch from Tony Thompson at ARM: athompso@arm.com
1235
1236Wed Oct 22 14:43:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
1237
1238 * wrapper.c (sim_load): Pass lma_p and sim_write args to
1239 sim_load_file.
1240
1241Fri Oct 3 09:28:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
1242
1243 * configure: Regenerated to track ../common/aclocal.m4 changes.
1244
1245Wed Sep 24 17:38:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
1246
1247 * configure: Regenerated to track ../common/aclocal.m4 changes.
1248
1249Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
1250
1251 * configure: Regenerated to track ../common/aclocal.m4 changes.
1252
1253Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
1254
1255 * configure: Regenerated to track ../common/aclocal.m4 changes.
1256
1257Fri Sep 19 17:45:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
1258
1259 * configure: Regenerated to track ../common/aclocal.m4 changes.
1260
1261Mon Sep 15 17:36:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
1262
1263 * configure: Regenerated to track ../common/aclocal.m4 changes.
1264
1265Thu Sep 4 17:21:23 1997 Doug Evans <dje@seba>
1266
1267 * configure: Regenerated to track ../common/aclocal.m4 changes.
1268
1269Wed Aug 27 18:13:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
1270
1271 * configure: Regenerated to track ../common/aclocal.m4 changes.
1272 * config.in: Ditto.
1273
1274Tue Aug 26 10:37:27 1997 Andrew Cagney <cagney@b1.cygnus.com>
1275
1276 * wrapper.c (sim_kill): Delete.
1277 (sim_create_inferior): Add ABFD argument.
1278 (sim_load): Move setting of PC from here.
1279 (sim_create_inferior): To here.
1280
1281Mon Aug 25 17:50:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
1282
1283 * configure: Regenerated to track ../common/aclocal.m4 changes.
1284 * config.in: Ditto.
1285
1286Mon Aug 25 15:35:45 1997 Andrew Cagney <cagney@b1.cygnus.com>
1287
1288 * wrapper.c (sim_open): Add ABFD argument.
1289
1290Tue May 20 10:13:26 1997 Andrew Cagney <cagney@b1.cygnus.com>
1291
1292 * wrapper.c (sim_open): Add callback argument.
1293 (sim_set_callbacks): Drop SIM_DESC argument.
1294
1295Thu Apr 24 00:39:51 1997 Doug Evans <dje@canuck.cygnus.com>
1296
1297 * configure: Regenerated to track ../common/aclocal.m4 changes.
1298
1299Fri Apr 18 13:32:23 1997 Andrew Cagney <cagney@b1.cygnus.com>
1300
1301 * wrapper.c (sim_stop): Stub sim_stop function.
1302
1303Thu Apr 17 18:33:01 1997 Fred Fish <fnf@cygnus.com>
1304
1305 * arminit.c (ARMul_NewState): Preinitialize the state to
1306 all zero/NULL.
1307
1308Thu Apr 17 02:39:02 1997 Doug Evans <dje@canuck.cygnus.com>
1309
1310 * Makefile.in (SIM_OBJS): Add sim-load.o.
1311 * wrapper.c (sim_kind,myname): New static locals.
1312 (sim_open): Set sim_kind, myname.
1313 (sim_load): Call sim_load_file to do work. Set start address from bfd.
1314 (sim_create_inferior): Return SIM_RC. Delete start_address arg.
1315
1316Thu Apr 17 11:48:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
1317
1318 * wrapper.c (sim_trace): Update so that it matches prototype.
1319
1320Mon Apr 7 15:45:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1321
1322 * configure: Regenerated to track ../common/aclocal.m4 changes.
1323 * config.in: Ditto.
1324
1325Mon Apr 7 12:01:17 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1326
1327 * Makefile.in (armemu32.o): Replace $< with autoconf recommended
1328 $(srcdir)/....
1329 (armemu26.o): Ditto.
1330
1331Wed Apr 2 15:06:28 1997 Doug Evans <dje@canuck.cygnus.com>
1332
1333 * wrapper.c (sim_open): New arg `kind'.
1334
1335 * configure: Regenerated to track ../common/aclocal.m4 changes.
1336
1337Wed Apr 2 14:50:44 1997 Ian Lance Taylor <ian@cygnus.com>
1338
1339 * COPYING: Update FSF address.
1340
1341Wed Apr 2 14:34:19 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1342
1343 * configure: Regenerated to track ../common/aclocal.m4 changes.
1344
1345Wed Mar 19 01:14:00 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1346
1347 * configure: Regenerated to track ../common/aclocal.m4 changes.
1348
1349Mon Mar 17 15:10:07 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1350
1351 * configure: Re-generate.
1352
1353Fri Mar 14 10:34:11 1997 Michael Meissner <meissner@cygnus.com>
1354
1355 * configure: Regenerate to track ../common/aclocal.m4 changes.
1356
1357Thu Mar 13 12:38:56 1997 Doug Evans <dje@canuck.cygnus.com>
1358
1359 * wrapper.c (sim_open): Has result now.
1360 (sim_*): New SIM_DESC argument.
1361
1362Tue Feb 4 13:22:21 1997 Doug Evans <dje@canuck.cygnus.com>
1363
1364 * Makefile.in (@COMMON_MAKEFILE_FRAG@): Use
1365 COMMON_{PRE,POST}_CONFIG_FRAG instead.
1366 * configure.in: sinclude ../common/aclocal.m4.
1367 * configure: Regenerated.
1368
1369Thu Jan 23 11:46:23 1997 Stu Grossman (grossman@critters.cygnus.com)
1370
1371 * configure configure.in Makefile.in: Update to new configure
1372 scheme which is more compatible with WinGDB builds.
1373 * configure.in: Improve comment on how to run autoconf.
1374 * configure: Re-run autoconf to get new ../common/aclocal.m4.
1375 * Makefile.in: Use autoconf substitution to install common
1376 makefile fragment.
1377
1378Wed Nov 20 01:05:10 1996 Doug Evans <dje@canuck.cygnus.com>
1379
1380 * run.c: Deleted, use one in ../common now.
1381 * Makefile.in: Delete everything that's been moved to
1382 ../common/Make-common.in.
1383 (SIM_OBJS): Define.
1384 * configure.in: Simplify using macros in ../common/aclocal.m4.
1385 * configure: Regenerated.
1386 * config.in: New file.
1387 * armos.c: #include config.h.
1388 * wrapper.c (mem_size): Value is in bytes now.
1389 (sim_callback): New global.
1390 (arm_sim_set_profile{,_size}): Delete.
1391 (arm_sim_set_mem_size): Rename to sim_size.
1392 (sim_do_command): Call printf_filtered via callback.
1393 (sim_set_callbacks): Record callback.
1394
1395Thu Oct 3 16:10:27 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
1396
1397 * Makefile.in (mostlyclean): Remove config.log.
1398
1399Wed Jun 26 12:17:24 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
1400
1401 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
1402 INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
1403 (docdir): Removed.
1404 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
1405 (AC_PROG_INSTALL): Added.
1406 * configure: Rebuilt.
1407
1408Wed Feb 21 12:14:31 1996 Ian Lance Taylor <ian@cygnus.com>
1409
1410 * configure: Regenerate with autoconf 2.7.
1411
1412Fri Dec 15 16:27:30 1995 Ian Lance Taylor <ian@cygnus.com>
1413
1414 * run.c (main): Use new bfd_big_endian macro.
1415
1416Mon Nov 20 17:40:38 1995 Doug Evans <dje@canuck.cygnus.com>
1417
1418 * run.c: Include "getopt.h".
1419 (verbose): Delete.
1420 (usage): Make static.
1421 (main): Call arm_sim_set_verbosity.
1422 Only load sections marked SEC_LOAD.
1423 * wrapper.c (mem_size, verbosity): New static global.
1424 (arm_sim_set_mem_size): Renamed from sim_size. Callers updated.
1425 (arm_sim_set_profile{,_size}): Renamed from sim_foo. Callers updated.
1426
1427Fri Nov 17 19:35:11 1995 Doug Evans <dje@canuck.cygnus.com>
1428
1429 * armdefs.h (ARMul_State): New member `verbose'.
1430 * armrdi.c (ARMul_ConsolePrint): Add missing va_end.
1431 * run.c (verbose): Make global.
1432 * wrapper.c (init): Set state->verbose.
1433 (ARMul_ConsolePrint): Don't print anything if !verbose.
1434
1435Fri Oct 13 15:30:30 1995 Doug Evans <dje@canuck.cygnus.com>
1436
1437 * armos.c: #include dbg_rdi.h.
1438 (ARMul_OSHandleSWI): Handle SWI_Breakpoint.
1439 * armos.h (SWI_Breakpoint): Define.
1440 * wrapper.c: #include armemu.h, dbg_rdi.h.
1441 (rc): Delete.
1442 (sim_resume): Use state->EndCondition to record stop state.
1443 Call FLUSHPIPE before returning.
1444 (sim_stop_reason): Determine reason from state->EndCondition.
1445
1446Fri Oct 13 15:04:05 1995 steve chamberlain <sac@slash.cygnus.com>
1447
1448 * wrapper.c (sim_set_callbacks): New.
1449
1450Thu Sep 28 19:45:56 1995 Doug Evans <dje@deneb.cygnus.com>
1451
1452 * armos.c (ARMul_OSHandleSWI): Result of read/write calls is
1453 number of bytes not read/written (or -1).
1454
1455Wed Sep 20 13:35:54 1995 Ian Lance Taylor <ian@cygnus.com>
1456
1457 * Makefile.in (maintainer-clean): New synonym for realclean.
1458
1459Fri Sep 8 14:27:20 1995 Ian Lance Taylor <ian@cygnus.com>
1460
1461 * configure.in: Remove AC_PROG_INSTALL.
1462 * configure: Rebuild.
1463 * Makefile.in (INSTALL): Revert to using install.sh.
1464 (INSTALL_PROGRAM, INSTALL_DATA): Set to $(INSTALL).
1465 (INSTALL_XFORM, INSTALL_XFORM1): Restore.
1466 (mostlyclean): Make the same as clean, not distclean.
1467 (clean): Remove config.log.
1468 (install): Don't install in $(tooldir).
1469
1470Thu Sep 7 12:00:17 1995 Doug Evans <dje@canuck.cygnus.com>
1471
1472 (Try to) Update to new bfd autoconf scheme.
1473 * run.c: Don't include sysdep.h.
1474 * Makefile.in (INSTALL{,_PROGRAM,_DATA}): Use autoconf computed value.
1475 (CC, CFLAGS, AR, RANLIB): Likewise.
1476 (HDEFINES, TDEFINES): Define.
1477 (CC_FOR_BUILD): Delete.
1478 (host_makefile_frag): Delete.
1479 (Makefile): Don't depend on frags.
1480 * configure.in (sysdep.h): Don't create symlink.
1481 (host_makefile_frag, frags): Deleted.
1482 (CC, CFLAGS, AR, RANLIB, INSTALL): Compute values.
1483 * configure: Regenerated.
1484
1485Thu Aug 3 10:45:37 1995 Fred Fish <fnf@cygnus.com>
1486
1487 * Update all FSF addresses except those in COPYING* files.
1488
1489Wed Jul 5 16:15:54 1995 J.T. Conklin <jtc@rtl.cygnus.com>
1490
1491 * Makefile.in (clean): Remove run, libsim.a.
1492
1493 * Makefile.in, configure.in: converted to autoconf.
1494 * configure: New file, generated with autconf 2.4.
1495
1496 * arm.mt: Removed.
1497
1498Fri Jun 30 16:49:47 1995 Stan Shebs <shebs@andros.cygnus.com>
1499
1500 * wrapper.c (sim_do_command): New function.
1501
1502Tue Jun 13 10:57:32 1995 Steve Chamberlain <sac@slash.cygnus.com>
1503
1504 * armos.c (ARMul_OSHandleSWI): New version to work with
1505 newlib simply.
1506
1507Thu Jun 8 14:37:14 1995 Steve Chamberlain <sac@slash.cygnus.com>
1508
1509 * run.c (main): Grab return value from right register.
1510
1511Wed May 24 14:37:31 1995 Steve Chamberlain <sac@slash.cygnus.com>
1512
1513 * New.
1514
1515