Get the BIT/MASK/ROT/... macros to work with any 32/64/MSB0/MSBn target.
[deliverable/binutils-gdb.git] / sim / common / ChangeLog
CommitLineData
7ec396d2
AC
1Tue Apr 15 15:08:12 1997 Andrew Cagney <cagney@b1.cygnus.com>
2
3 * sim-assert.h (SIM_ASSERT, ASSERT): Allow these macros to
4 be overriden.
5
6Wed Apr 9 16:06:44 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7
8 * sim-basics.h: Only bring in config.h and tconfig.h if
9 HAVE_CONFIG_H.
10
11Mon Apr 7 11:39:45 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
12
13 * sim-config.h (WITH_TARGET_WORD_MSB): New Macro. Define the bit
14 numbering convention of the target.
15 * sim-config.c (print_sim_config): Print WITH_TARGET_WORD_BITSIZE
16 and WITH_TARGET_WORD_MSB.
17 (sim_config): When possible, check for consistency with bitsize
18 and msb.
19
20 * sim-bits.h: Allow MSB to be other than zero.
21 * sim-bits.c: Ditto.
22 * sim-n-bits.h: Ditto.
23
24 * sim-bits.h (MSMASK*): New macros - converce to LSMASK*.
25 * sim-n-bits.h (MSMASKEDn): Ditto.
26
27Mon Apr 14 16:29:21 1997 Ian Lance Taylor <ian@cygnus.com>
28
29 * Makefile.in (INSTALL): Change install.sh to install-sh.
30
25a9c90b
DE
31Mon Apr 7 10:46:38 1997 Doug Evans <dje@canuck.cygnus.com>
32
33 * sim-base.h (sim_state_base): Move `magic' to end of struct.
34
b4d88827
AC
35Mon Apr 7 15:53:21 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
36
37 * run.c (main): Check that a program to run was specified.
38
08db4a65
AC
39Mon Apr 7 15:45:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
40
41 * aclocal.m4 (AC_TYPE_SIGNAL): Add check.
42
43 * configure: Regenerated to track ../common/aclocal.m4 changes.
44 * config.in: Ditto.
45
fbda74b1
DE
46Wed Apr 2 15:06:28 1997 Doug Evans <dje@canuck.cygnus.com>
47
21bfad86
DE
48 * sim-endian.h: Move host {LITTLE,BIG}_ENDIAN support from here,
49 * sim-config.h: To here.
50
00d74d3e
DE
51 * Make-common.in (SIM_EXTRA_DEPS): New config var.
52 (sim_main_headers): Define.
53 (sim-*.o): Depend on $(SIM_EXTRA_DEPS).
54 (BUILT_SRC_FROM_COMMON): Move here from ../d30v/Makefile.in.
55 (clean): Use it.
56 (sim-utils.o): Add rule for.
57 * sim-utils.o: New file.
58 * sim-basics.h: #include sim-base.h.
59 (zalloc): Make argument unsigned long.
60 * sim-base.h: New file.
61 * sim-inline.h (SIM_IO support): Delete.
62 * sim-io.h: Delete inline support.
63 * sim-io.c: Likewise. sim-state.h renamed to sim-main.h.
64 * sim-config.c: sim-state.h renamed to sim-main.h.
65 * sim-core.c: Likewise.
66 * sim-events.c: Likewise.
67
bcd1475a
DE
68 * run.c (main): Pass SIM_OPEN_STANDALONE to sim_open.
69
fbda74b1
DE
70 * aclocal.m4: Check for stdlib.h, string.h, strings.h, unistd.h.
71 (sim-debug): Allow arguments. Define WITH_DEBUG in addition to
72 -DDEBUG.
73 * configure: Regenerated to track ../common/aclocal.m4 changes.
74
a35e91c3
AC
75Wed Apr 2 14:34:19 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
76
77 * configure: Regenerated to track ../common/aclocal.m4 changes.
78
79Wed Apr 2 11:08:11 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
80
81 * sim-config.h (WITH_ALIGNMENT, WITH_FLOATING_POINT,
82 WITH_XOR_ENDIAN, WITH_SMP, WITH_RESERVED_BITS): Assume that these
83 are defined by the configure.
84
85 * aclocal.m4 (sim-stdio): Add option stdio from ../ppc configure.
86
87 * aclocal.m4 (floating-point, xor-endian, alignment, smp,
88 reserved-bits): Always define.
89
90 * sim-config.h, sim-config.c (sim_config): New function - and new
91 file - co-ordinate the setting/checking of the common simulator
92 configuration options.
93
94 * Make-common.in (sim-config.o): Add rule.
95
96Fri Mar 28 15:32:00 1997 Mike Meissner <meissner@cygnus.com>
97
98 * callback.c (os_{,e}vprintf_filtered): Change stdarg type to
99 va_list from void *, since va_list might not be a pointer type.
100
101Mon Mar 24 15:27:12 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
102
103 * sim-n-endian.h (offset_N): Correct assertion - word and sub word
104 in wrong order.
105 (offset_N): Correct computation of LE offset.
106
107 * sim-io.c (sim_io_error): Include a new line when reporting
108 errors.
109
110 * sim-assert.h (SIM_FILTER_PATH): Out by one when locating last
111 `/'.
112
aa7cec3f
JL
113Thu Mar 20 22:31:06 1997 Jeffrey A Law (law@cygnus.com)
114
115 * run.c: Include alloca-conf.h.
7c058c9e
JL
116
117 * callback.c (os_evprintf_filtered): Fix typo.
118
fa21d299
AC
119Fri Mar 21 13:36:20 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
120
121 * run.c (string.h, strings.h, stdlib.h): Include.
122
123 * sim-events.c (sim_events_tick): Recent cleanup failed to return
124 0 when nothing pending.
125
126 * run.c (sim_size, sim_trace): Plicate GCC - these two functions
127 will soon be going away.
128 (getopt): Plicate GCC.
129
130 * sim-endian.c (sim-io.h): Plicate GCC.
131 * sim-bits.c (sim-io.h): Ditto.
132 * sim-n-bits.h (ROTn): Ditto.
133
134 * sim-io.c (sim_io_error): Correct check for NULL.
135
136 * sim-assert.h (SIM_FILTER_PATH): Separate out the code filtering
137 the __FILE__.
138 * sim-events.c: Use SIM_FILTER_PATH to filter out the filename
139 path.
140
141Wed Mar 19 01:12:06 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
142
143 * aclocal.m4 (SIM_AC_OPTION_*: Move so that they are outside of
144 SIM_AC_COMMON - SIM_AC_COMMON was gobling arguments.
145
4a5fb09d
AC
146Tue Mar 18 20:48:12 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
147
148 * sim-alu.h: Include sim-xcat.h.
149
d11d59ac
AC
150Tue Mar 18 13:58:18 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
151
152 * Make-common.in (sim-bits.c, sim-core.c, sim-endian.c,
153 sim-events.c, sim-inline.c, sim-io.c): Define rules for building
154 these.
155
156 * sim-events.c (sim_events_at_large_int): New function. Just
157 schedules an event every large-int ticks.
158 (sim_events_init): Call.
159 (sim_events_tick, sim_events_process): Move async handing to
160 sim_events_process. Move timer decrement so that it occures after
161 events have been processed.
162
163 * sim-basics.h (struct _engine): Remove declaration.
164
165 * sim-events.h, sim-events.c: Rename type to sim_events. Prefix
166 everything with same. Rename global struct to SIM_DESC.
167 * sim-core.h, sim-core.c, sim-n-core.c: Ditto for sim_core.
168 * sim-io.h, sim-io.c: Ditto.
169
170 * sim-assert.h: New file. Optional assertion checking macros.
171 * sim-io.c (sim_io_error): Make just this function tolerant to
172 null pointers.
173
174 * sim-xcat.h: New file. Define concatenate macros.
175 * sim-basics.h (XCONCAT*): Move to sim-xcat.h.
176 * sim-n-core.h, sim-n-bits.h, sim-n-endian.h: Explicitly include
177 concat macros.
178
179
752517cc
AC
180Tue Mar 18 12:44:55 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
181
182 * sim-bits.h (LSMASK): New macro. Create mask of LS bits.
183
86eb1e29
AC
184Mon Mar 17 18:10:05 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
185
186 * sim-inline.h: Add definitions for sim-types.
187 (ALL_BY_MODULE): New macro, encapsulate full inlining by the
188 module.
189
231de1b8
AC
190Mon Mar 17 15:38:27 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
191
192 * sim-events.h: Remove defunct reference to callback struct.
193
a77aa7ec
AC
194Mon Mar 17 15:10:07 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
195
196 * configure: Re-generate.
197
198Mon Mar 17 15:04:47 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
199
200 * Make-common.in (CSEARCH): Do not include the gdb directory in
201 the search path.
202
203Mon Mar 17 13:16:26 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
204
205 * Make-common.in (SIM_ENDIAN, SIM_HOSTENDIAN, SIM_INLINE,
206 SIM_WARNING): Drop, requiring the simulator specific Makefile.in
207 to explicitly incorporate these.
208
209 * aclocal.m4 (--enable-sim-alignment); New option. Strongly
210 specify the alignment restrictions of the target architecture -
211 without this option all alignment restrictions are accomodated.
212 (--enable-sim-assert): New option. Conditionally compile in
213 assertion statements.
214 (--enable-sim-float): New option. Strongly specify the target's
215 floating point support.
216 (--enable-sim-hardware): New option. Specify the hardware devices
217 included in the simulation.
218 (--enable-sim-packages): New option. Specify the hardware
219 packages included in the simulation.
220 (--enable-sim-regparm): New option. Specify that parameters be
221 passed in registers instead of on the stack.
222 (--enable-sim-reserved-bits): New option. Specify that reserved
223 bits within an instruction are are correctly set.
224 (--enable-sim-smp): New option. Specify the level of SMP support
225 to be included in the simulator.
226 (--enable-sim-stdcall): New option. Specify an alternative
227 function call convention.
228 (--enable-sim-xor-endian): New option. Configure xor-endian
229 support used by some targets to implement bi-endian support.
230
f2de7dfd
AC
231Fri Mar 14 19:51:21 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
232
233 * aclocal.m4 (--enable-sim-hostendian): New option. Allow the
234 host endianness to be overridden.
235 (--enable-sim-endian): Allow the target platform's byte order
236 to be overridden.
237 (--enable-sim-inline): Control the inlining of common components.
238 (--enable-sim-bswap): For compatibility, also define WITH_BSWAP.
239 (--enable-sim-warnings): Enable additional GCC compiler checks.
240 * Make-common.in (SIM_ENDIAN, SIM_HOSTENDIAN, SIM_INLINE,
241 SIM_WARNINGS): Add.
242
243 * sim-n-core.h, sim-n-bits.h, sim-n-endian.h: Rename from
244 sim-*-n.h so that the names are uniq on dos machines
245 * sim-core.c, sim-bits.c, sim-endian.c: Update.
246
499aa792
DE
247Thu Mar 13 12:32:42 1997 Doug Evans <dje@canuck.cygnus.com>
248
249 * run.c: #include "libiberty.h".
250 (main): New locals sd,no_args,sim_argv.
251 Run buildargv on -a option. Pass argv to sim_open, argv[0]
252 is program name. Update call to sim_set_callbacks.
253 Record result of sim_open, pass to other sim_foo routines.
254
fd435e9f
MM
255Thu Mar 13 10:24:05 1997 Michael Meissner <meissner@cygnus.com>
256
257 * callback.c (os_printf_filtered): Do not call exit(1) or print a
258 final newline.
259
260Thu Mar 6 15:50:28 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
261
262 * callback.c: Add os_flush_stdout and vprintf_filtered callbacks.
263 Route stdout through buffered IO.
264
265 * callback.c: Add os_flush_stderr, os_write_stderr,
266 os_evprintf_filtered functions to route error output through
267 stderr.
268
269 * sim-io.h, sim-io.c (sim_io_flush_stderr, sim_io_flush_stdout):
270 Correct return type - should be void.
271
272Fri Mar 7 20:14:37 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
273
274 * sim-basics.h: Clean up. Many macro's moved to sim-inline.h.
275
276 * sim-config.h: Ditto. For some options - eg WITH_DEVICES - do
277 not provide a default value as undefined indicates disable code.
278
279Thu Mar 6 15:50:28 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
280
281 * sim-core.h, sim-core-n.h, sim-core.c: Borrow code from ppc
282 directory.
283 * sim-events.h, sim-events.c: Ditto.
284 * sim-io.h, sim-io.c: Ditto.
285
b3e426bc
AC
286Tue Mar 4 09:35:56 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
287
288 * sim-alu.h (ALU_SUB_CA, ALU*_SUB_CA): New alu operation.
289
290 * sim-bits.h, sim-bits-n.h, sim-bits.c (LSMASKED*): New macro's
291 extract the tail or least signifiant bits from an integer of the
292 specified size.
293
294 * sim-bits.h, sim-bits.c: Clean up conditionally compiled #if
295 WITH_TARGET_BITSIZE so that the compilation will fail when an
296 unsupported bitsize value is defined.
297
298 (INSERTED*): Convert to functions.
299 (EXTRACTED*): Ditto.
300
301 (SIGN_EXTEND, SEXT): Change to more terse name.
302
17bbcaad
AC
303Tue Mar 4 09:35:56 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
304
305 * sim-inline.h: Allow explicit control over which .c files will be
306 included by their header.
307
308 * sim-inline.h: Allow explicit control over which .c files use the
309 alternative - REGPARM - parameter passing mechanism.
310
311 * sim-inline.h, sim-inline.c: Don't attempt to include any of
312 icache.c, idecode.c, semantics.c or support.c. Those names are
313 not generally applicable.
314
b3e426bc
AC
315Thu Feb 27 10:17:23 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
316
317 * sim-bits.c, sim-bits-n.h (new): Split sim-bits.c into two parts
318 in a fashion similar to sim-endian-n.
319
320 * sim-endian.h: (H_word, L_word, AL_*, VL_*): Extend to include
321 both value and address macro's.
322
323Tue Feb 25 18:51:57 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
324
325 * sim-alu.h (ALU16_BEGIN, ALU16_SET, ...): Fill in.
326
327 * sim-endian.h (L_word, H_word): Replace MS2W_4, LS2W_4 with more
328 generic L_word, H_word macro's.
329
17bbcaad
AC
330Thu Feb 20 18:36:55 1997 Andrew Cagney <cagney@critters.cygnus.com>
331
332 * sim-basics.h: Borrow code from ppc directory.
333 * sim-bits.c: Ditto.
334 * sim-bits.h: Ditto.
335 * sim-config.h: Ditto.
336 * sim-endian-n.h: Ditto.
337 * sim-endian.c: Ditto.
338 * sim-endian.h: Ditto.
339 * sim-inline.c: Ditto.
340 * sim-inline.h: Ditto.
341 * sim-types.h: Ditto.
342
343Wed Feb 19 12:40:50 1997 Andrew Cagney <cagney@critters.cygnus.com>
344
345 * sim-alu.h (ALU_SET16, ALU_SET32, ALU_SET64, etc): Make available
346 all the ALU size alternatives and then auto-configure a default.
347
348 * sim-alu.h: Copy ppc/idecode_expression.h.
349
350Mon Feb 17 10:44:18 1997 Andrew Cagney <cagney@critters.cygnus.com>
351
352 * bits.h, bits.c (SIGN_EXTEND32, SIGN_EXTEND64): New functions,
353 sign extend a bit within a value.
354
355 * sim-endian.h, sim-endian-n.h (offset_N): New functions - return
356 a pointer into the middle of a host word.
357 * sim-endian.h (MS2W_4, LS2W_4): Use this function.
358
359Tue Feb 11 13:46:49 1997 Michael Meissner <meissner@tiktok.cygnus.com>
360
361 * callback.c: If HAVE_CONFIG_H is defined, include config.h from
362 autoconf. If HAVE_UNISTD_H is defined, include unistd.h to get
363 appropriate definitions of read, write, etc. Add prototype for
364 system.
365
1cc9ed29
DE
366Tue Feb 4 13:24:44 1997 Doug Evans <dje@canuck.cygnus.com>
367
368 * Makefile.in (libcommon.a): Delete.
369 (callback.o,targ-map.o): Delete, moved to Make-common.in.
370 (gentmap,targ-vals.h,targ-map.c): Likewise.
371 (run-autoconf): Delete.
372 * aclocal.m4 (SIM_AC_OUTPUT): Redo creation of Makefile.
373 (common makefile fragment): Moved back into ...
374 * Make-common.in: Resurrect.
375 * configure.in (AC_LINK_FILES): Delete, unnecessary now.
376 * configure: Regenerated.
377
8cd89e77
DE
378Fri Jan 31 07:16:49 1997 Doug Evans <dje@canuck.cygnus.com>
379
380 * aclocal.m4 (SIM_AC_COMMON): Move COMMON_MAKEFILE_FRAG from here.
381 (SIM_AC_OUTPUT): To here.
382
76e2c9ae
SG
383Fri Jan 24 10:37:17 1997 Stu Grossman (grossman@critters.cygnus.com)
384
385 * aclocal.m4 (COMMON_MAKEFILE_FRAG): Quote a couple of $'s in
386 comments and single quotes. Fixes a problem found on hpux.
387
80b7b3a5
SG
388Thu Jan 23 13:35:03 1997 Stu Grossman (grossman@critters.cygnus.com)
389
e1dfb8c5 390 * aclocal.m4: Remove Make-common.in from dependencies.
42653e99 391 * (distclean): Remove targ-vals.def.
e1dfb8c5 392
80b7b3a5
SG
393 * aclocal.m4 (SIM_AC_COMMON): Move contents of Make-common.in
394 into here. Makes insertion into makefiles easier. Also, change
395 the way that callback.o, gentmap, targ-vals.h, targ-map.c,
396 targ-map.o, and run are built. They are now built in the
397 individual simulator directories, taking sources from ../common as
398 necessary. This replaces the merging of libcommon.a into
399 linsim.a, which was problematic for the WinGDB build process.
400 * run.c: Include config.h from . instead of ../common.
401 * Make-common.in: Remove. It's no longer necessary.
402
403Mon Dec 16 15:02:33 1996 Ian Lance Taylor <ian@cygnus.com>
404
405 * Make-common.in (ALL_CLAGS): Put CFLAGS at the end.
406 (.c.o): Put $(ALL_CFLAGS) before the file being compiled.
407
408Wed Dec 11 11:30:58 1996 Jim Wilson <wilson@cygnus.com>
409
410 * run.c (main): Set target_byte_order before call to sim_open.
411
966f47b4
DE
412Sun Dec 8 18:22:06 1996 Doug Evans <dje@canuck.cygnus.com>
413
414 * callback.c: #include <stdlib.h>
415 (os_error): New function.
416 (default_callback): Add os_error.
417
418Mon Nov 25 19:44:35 1996 Doug Evans <dje@canuck.cygnus.com>
419
420 * Make-common.in (Makefile): Set CONFIG_HEADERS="".
421 * aclocal.m4: Mark the fact that --enable-sim-bswap isn't host
422 specific.
423 (SIM_AC_OUTPUT): Don't build Makefile if CONFIG_FILES="".
424
425Wed Nov 20 01:11:04 1996 Doug Evans <dje@canuck.cygnus.com>
426
427 * run.c: #include ../common/config.h, tconfig.h.
428 (myname): New static global.
429 (main): Recognize new options -a, -c. Also recognize -h if h8/300.
430 Only process -c ifdef SIM_HAVE_SIMCACHE.
431 Only process -p/-s ifdef SIM_HAVE_PROFILE.
432 Parse program name from argv[0] and use in error messages.
433 Pass sim_args to sim_open. Pass prog_args to sim_create_inferior.
434 Add support for incomplete h8/300 termination indicators.
435 (usage): Make more verbose.
436 * aclocal.m4,config.in,tconfig.in,configure.in,configure: New files.
437 * Makefile.in,Make-common.in,callback.c: New files.
438 * nltvals.def,gentmap.c,gentvals.sh: New files.
439
440Tue Nov 12 13:34:00 1996 Dawn Perchik <dawn@cygnus.com>
441
442 * run.c: Include stdarg.h if __STDC__.
443
444Tue Oct 15 11:16:31 1996 Jeffrey A Law (law@cygnus.com)
445
446 * run.c (main): Don't print out anything if the signal
447 number is zero (ie no signal).
448
57bc1a72
MM
449Tue Oct 15 11:20:44 1996 Michael Meissner <meissner@tiktok.cygnus.com>
450
451 * run.c (main): Print out if the program raised a signal.
452
453Wed Sep 18 09:52:14 1996 Michael Meissner <meissner@tiktok.cygnus.com>
454
455 * run.c (exec_bfd): Rename from sim_bfd, to use the gdb name.
456 (main): Ditto.
457
3733d109
JSC
458Tue Sep 17 11:04:50 1996 James G. Smith <jsmith@cygnus.co.uk>
459
460 * run.c (main): Explicitly cast malloc() parameter.
461
9b280a86
MM
462Thu Sep 12 11:27:21 1996 Michael Meissner <meissner@tiktok.cygnus.com>
463
464 * run.c (sim_bfd): New global to hold the bfd pointer for the
465 executable.
466 (main): Initialize sim_bfd.
467
468Fri Dec 15 16:27:49 1995 Ian Lance Taylor <ian@cygnus.com>
469
470 * run.c (main): Use new bfd_big_endian macro.
471
472Wed Nov 8 15:49:49 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk>
473
474 * run.c (main): Removed SH specific comments, so source is
475 generic. Also updated to only load relevant sections. Moved
476 sim_open() to after callback attach (to match GDB).
477
478 * run.1: Removed SH specific comments.
479
3be50301
JW
480Sat Oct 21 12:31:01 1995 Jim Wilson <wilson@chestnut.cygnus.com>
481
482 * run.c (main): Always return sigrc at end.
483
484Tue Oct 10 12:03:13 1995 J.T. Conklin <jtc@rtl.cygnus.com>
485
486 * run.c (main): Print error diagnostic and exit if bfd_openr() or
487 bfd_check_format() fails.
488
f025d903
SC
489Thu Sep 28 15:40:36 1995 steve chamberlain <sac@slash.cygnus.com>
490
491 * run.c, run.1: From sh directory.
492
493
This page took 0.090171 seconds and 4 git commands to generate.