| 1 | Wed May 7 15:19:58 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 2 | |
| 3 | * sim-trace.c (trace_one_insn): Make a va-args function. |
| 4 | |
| 5 | * sim-trace.c (trace_vprintf): New function, va-arg version of |
| 6 | trace_printf. |
| 7 | |
| 8 | Tue May 6 16:38:16 1997 Doug Evans <dje@canuck.cygnus.com> |
| 9 | |
| 10 | * sim-trace.c (trace_uninstall): Don't close a file twice. |
| 11 | * sim-profile.c (profile_uninstall): Likewise. |
| 12 | |
| 13 | Tue May 6 06:14:01 1997 Mike Meissner <meissner@cygnus.com> |
| 14 | |
| 15 | * sim-trace.c (toplevel): Include bfd.h. |
| 16 | (trace_options): Note that --trace-linenum also turns on |
| 17 | --trace-insn. Add --trace-{branch,semantics}. |
| 18 | (trace_option_handler): If --trace-linenum, also turn on |
| 19 | --trace-insn. Add --trace-branch support. If --trace-semantics, |
| 20 | turn on ALU, FPU, branch, and memory tracing. |
| 21 | (trace_one_insn): New function to trace an instruction. Support |
| 22 | --trace-linenum. |
| 23 | (OPTION_TRACE_*): Use an enum, rather than lots of defines. |
| 24 | |
| 25 | * sim-trace.h (TRACE_{SEMANTICS,BRANCH}_IDX): Add new macros. |
| 26 | (MAX_TRACE_VALUES): Use 32, not 12 by default. |
| 27 | (TRACE_branch): Add new mask. |
| 28 | (TRACE_*_P): Define all possible trace_p macros. |
| 29 | (trace_one_insn): Declare function. |
| 30 | |
| 31 | Mon May 5 14:08:34 1997 Mike Meissner <meissner@cygnus.com> |
| 32 | |
| 33 | * sim-trace.h (__attribute__): Define as nothing if not GNU C or |
| 34 | GNU C doesn't support __attributes__. |
| 35 | ({trace,debug}_printf): Add attribute's so -Wformat can check the |
| 36 | format strings. |
| 37 | |
| 38 | Mon May 5 11:16:12 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 39 | |
| 40 | * sim-config.h (FORCED_ALIGNMENT): New alignment option - |
| 41 | addresses are masked forcing them to be correctly aligned. |
| 42 | (WITH_ALIGNMENT): Make NONSTRICT_ALIGNMENT the default. |
| 43 | * sim-config.c (config_alignment_to_a): Update. |
| 44 | |
| 45 | * sim-core.h (sim_cpu_core): New data type contains cpu specific |
| 46 | core data. |
| 47 | * sim-base.h (CPU_CORE): Add cpu specific core data to cpu base |
| 48 | type. |
| 49 | * sim-core.c (sim_core_attach): Add CPU argument. Ready for |
| 50 | processor specific core maps. |
| 51 | (sim_core_map_attach): Copy the core map data to each of the |
| 52 | processor specific core data structures. |
| 53 | * sim-core.c (sim_core_find_mapping): Update. |
| 54 | |
| 55 | * sim-n-core.h (sim_core_read_N, sim_core_write_N): Rename. |
| 56 | (sim_core_write_aligned_N, sim_core_write_aligned_N): New names. |
| 57 | (sim_core_write_unaligned_N, sim_core_write_unaligned_N): New |
| 58 | alternatives that handle unaligned addresses. |
| 59 | (sim_core_{read,write}_{,un}aligned_N): Drop SIM_DESC arg, replace |
| 60 | with just CPU arg. |
| 61 | * cgen-utils.c (sim_disassemble_insn): Update. |
| 62 | |
| 63 | Mon May 5 13:19:16 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 64 | |
| 65 | * sim-trace.h (TRACE_FPU_IDX): Add Floating-point specific |
| 66 | tracing. |
| 67 | |
| 68 | * sim-fpu.h, sim-fpu.c: New files - prototype for generic target |
| 69 | fpu support. |
| 70 | |
| 71 | * sim-inline.h, sim-inline.c: Add support for SIM_FPU. |
| 72 | |
| 73 | Fri May 2 17:59:42 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 74 | |
| 75 | * sim-core.c (sim_core_map_to_str): New function ascii equivalent |
| 76 | to map type. |
| 77 | |
| 78 | * sim-n-core.h (sim_core_read_N, sim_core_write_N): Use in trace |
| 79 | statement. |
| 80 | |
| 81 | Fri May 2 17:28:02 1997 Andrew Cagney <cagney@b2.cygnus.com> |
| 82 | |
| 83 | * cgen-trace.c: Prepend additional trace_printf argument. |
| 84 | |
| 85 | * cgen-utils.c (sim_disassemble_insn): Add additional core |
| 86 | arguments. |
| 87 | |
| 88 | Fri May 2 11:40:23 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 89 | |
| 90 | * nrun.c (main): Catch/report errorenous simulator states. |
| 91 | |
| 92 | * sim-module.c: #include "libiberty.h" so that xmalloc is defined. |
| 93 | * sim-trace.c: #include string.h/strings.h so that memset is |
| 94 | defined. |
| 95 | * sim-utils.c: Ditto. |
| 96 | * sim-profile.c: Ditto. And stdlib.h. |
| 97 | (print_bar): Only define when used by instruction or memory profiler. |
| 98 | |
| 99 | * sim-options.c (standard_option_handler): Make ul more local. |
| 100 | |
| 101 | * sim-load.c (sim_load_file): Make the name constant. |
| 102 | (sim_load_file): Passify gcc. |
| 103 | |
| 104 | * sim-utils.h: New file, pre-declare utilites in corresponding .c |
| 105 | file. |
| 106 | * sim-utils.c, sim-load.c: Include sim-utils.h. |
| 107 | |
| 108 | * sim-base.h (sim_cpu): Pre define here so available to all. |
| 109 | |
| 110 | * sim-core.h (DECLARE_SIM_CORE_WRITE_N, DECLARE_SIM_CORE_READ_N): |
| 111 | Restore the sim_cpu and instruction_address arguments so that full |
| 112 | information is available to the abort function. |
| 113 | * sim-core.c (sim_core_find_mapping, sim_core_write_buffer): Ditto. |
| 114 | * sim-n-core.h (sim_core_write_N, sim_core_read_N): Update. |
| 115 | |
| 116 | * sim-trace.h, sim-trace.c (trace_option_handler): Add interim |
| 117 | tracing support for sim-events and sim-core. |
| 118 | (trace_option_handler): Convert #if to if where possible so always |
| 119 | compiled/checked by C compiler. |
| 120 | * sim-n-core.h (sim_core_write_N, sim_core_read_N): Update. |
| 121 | |
| 122 | * sim-base.h: Adjust comment documenting how to define the cpu |
| 123 | structure. |
| 124 | (sim_state_base): Add sim_core and sim_events to simulator base |
| 125 | object. |
| 126 | |
| 127 | * sim-trace.h, sim-trace.c (trace_printf): Add SIM_DESC argument. |
| 128 | * sim-core.c (sim_core_init, sim_core_attach, |
| 129 | sim_core_find_mapping): Update. |
| 130 | * sim-events.c (ETRACE, sim_events_init, sim_events_time, |
| 131 | update_time_from_event, insert_sim_event, |
| 132 | sim_events_schedule_after_signal, sim_events_deschedule, |
| 133 | sim_events_tick): Ditto. |
| 134 | |
| 135 | * sim-basics.h (sim-module.h, sim-trace.h, sim-profile.h, |
| 136 | sim-model.h): Move #includes from here. |
| 137 | * sim-base.h: To here. |
| 138 | (sim-core.h, sim-events.h, sim-io.h): Include also |
| 139 | |
| 140 | Wed Apr 30 15:37:54 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 141 | |
| 142 | * callback.c (default_callback): Missing initialisers. |
| 143 | |
| 144 | Thu May 1 10:40:47 1997 Doug Evans <dje@canuck.cygnus.com> |
| 145 | |
| 146 | * sim-utils.c (sim_add_commas): New function. |
| 147 | * sim-basics.h (sim_add_commas): Add prototype. |
| 148 | * cgen-scache.c (scache_print_profile): Print commas in numbers. |
| 149 | * sim-profile.c (COMMAS): New macro. |
| 150 | (print_*): Use it to print commas in numbers. |
| 151 | |
| 152 | * configure: Regenerated. |
| 153 | |
| 154 | * cgen-sim.h (sim_signal_type): Add SIM_SIGINT. |
| 155 | (cgen_state): New member run_fast_p. |
| 156 | (cgen_init): Add prototype. |
| 157 | (sim_disassemble_insn): New arg `cpu'. |
| 158 | * cgen-trace.c (trace_insn): Update call to sim_disassemble_insn. |
| 159 | * cgen-utils.c (cgen_init): New function. |
| 160 | (sim_disassemble_insn): New arg `cpu'. Rewrite fetching of insn. |
| 161 | * genmloop.sh: Call engine_halt if loop exits. |
| 162 | |
| 163 | * Makefile.in (sim-options_h): Define. |
| 164 | (sim-{module,options,trace,profile,utils}.o): Clean up dependencies. |
| 165 | (sim-model.o): Add new rule. |
| 166 | (cgen-{scache,trace,utils}.o): Add new rules. |
| 167 | * aclocal.m4 (SIM_AC_OPTION_{SCACHE,DEFAULT_MODEL}): Add. |
| 168 | * cgen-scache.c (scache_print_profile): Change `sd' arg to `cpu'. |
| 169 | Indent output by 2 spaces. |
| 170 | * cgen-scache.h (scache_print_profile): Update. |
| 171 | * cgen-trace.c (trace_insn_fini): Indent output by 2 spaces. |
| 172 | Use trace_printf, not fprintf. |
| 173 | (trace_extract): Use trace_printf, not cgen_trace_printf. |
| 174 | * genmloop.sh (!FAST case): Increment `insn_count'. |
| 175 | * sim-base.h (sim_state_base): Only include scache_size if WITH_SCACHE. |
| 176 | (sim_cpu_base): Rename member `sd' to `state' to be consistent with |
| 177 | access macro's name. |
| 178 | * sim-core.c (sim_core_init): Use EXTERN_SIM_CORE to define it. |
| 179 | Change return type to SIM_RC. |
| 180 | (sim_core_{install,uninstall}): New functions. |
| 181 | * sim-core.h (sim_core_{install,uninstall}): Declare. |
| 182 | (sim_core_init): Use EXTERN_SIM_CORE to define it. |
| 183 | Change return type to SIM_RC. |
| 184 | * sim-model.h (models,machs,model_install): Declare. |
| 185 | * sim-module.c (modules): Add scache_install, model_install. |
| 186 | (sim_post_argv_init): Set cpu->state backlinks. |
| 187 | * sim-options.c (standard_options): Delete --simcache-size,--max-insns. |
| 188 | (standard_option_handler): Likewise. |
| 189 | * sim-profile.c (PROFILE_{HISTOGRAM,LABEL}_WIDTH): Move to |
| 190 | sim-profile.h. |
| 191 | (*): Assume ANSI C. |
| 192 | (profile_options): Delete --profile-simcache. |
| 193 | (profile_option_handler): Likewise. |
| 194 | (profile_print_insn): Change `sd' arg to `cpu'. Indent output 2 |
| 195 | spaces. |
| 196 | (profile_print_{memory,model}): Likewise. |
| 197 | (profile_print_simcache): Delete. |
| 198 | (profile_print_speed): New function. |
| 199 | (profile_print): Rewrite. |
| 200 | * sim-profile.h (PROFILE_scache): Renamed from PROFILE_simcache. |
| 201 | (WITH_PROFILE_SCACHE_P): Renamed from WITH_PROFILE_SIMCACHE_P. |
| 202 | (PROFILE_DATA): Delete members simcache_{hits,misses}. |
| 203 | (PROFILE_COUNT_SIMCACHE_{HIT,MISS}): Delete. |
| 204 | (PROFILE_{CALLBACK,CPU_CALLBACK}): New types. |
| 205 | (profile_print): Update prototype. |
| 206 | |
| 207 | Wed Apr 30 11:34:14 1997 Doug Evans <dje@canuck.cygnus.com> |
| 208 | |
| 209 | * cgen-scache.[ch], cgen-sim.h: New files. |
| 210 | * cgen-trace.[ch], cgen-types.h, cgen-utils.c, genmloop.sh: New files. |
| 211 | * sim-model.c: New file. |
| 212 | |
| 213 | * Make-common.in (clean targets): Undo patch of Apr. 22. |
| 214 | |
| 215 | Fri Apr 25 15:28:32 1997 Mike Meissner <meissner@cygnus.com> |
| 216 | |
| 217 | * sim-n-bits.h (signed): If we have a standard compiler, undef |
| 218 | signed, so that signedN is defined correctly. |
| 219 | |
| 220 | Thu Apr 24 00:00:07 1997 Doug Evans <dje@canuck.cygnus.com> |
| 221 | |
| 222 | * sim-module.h, sim-model.h, sim-profile.h: New files. |
| 223 | * sim-module.c, sim-profile.c: New files. |
| 224 | * Make-common.in (SIM_PROFILE): Define |
| 225 | (CONFIG_CFLAGS): Add $(SIM_PROFILE). |
| 226 | (sim_main_headers): Add sim-module.h, sim-model.h, sim-profile.h. |
| 227 | (sim_module.o,sim-profile.o): Add rules for. |
| 228 | * aclocal.m4 (--enable-sim-trace): Allow symbolic arguments. |
| 229 | (--enable-sim-profile): Add. |
| 230 | * configure: Regenerated. |
| 231 | * sim-base.h (sim_state_base): New members init_list, uninstall_list, |
| 232 | model. Move trace and profile support to sim-{trace,profile}.h. |
| 233 | New members trace_data, profile_data. |
| 234 | * sim-basics.h: #include sim-module.h, sim-model.h, sim-profile.h. |
| 235 | * sim-config.h: Provide default definition of WITH_PROFILE. |
| 236 | (WITH_TRACE): Change default to -1. |
| 237 | (MAX_NR_PROCESSORS): Always define. |
| 238 | * sim-options.c: Move trace and profile support to |
| 239 | sim-{trace,profile}.h. |
| 240 | (sim_pre_argv_init): Moved to sim-model.c. |
| 241 | (standard_install): New function. |
| 242 | * sim-options.h (sim_pre_argv_init): Move decl to sim-model.c. |
| 243 | (standard_install): Declare. |
| 244 | * sim-trace.c: Tracing option handling moved here from sim-options.c. |
| 245 | (trace_install, trace_uninstall): New functions. |
| 246 | (trace_printf): Update reference to TRACE_FILE. |
| 247 | * sim-trace.h (TRACE_FOO_IDX): Moved here from sim-base.h. |
| 248 | (TRACE_foo): Bit masks for symbolic arguments to --enable-sim-trace. |
| 249 | (WITH_TRACE_FOO_P): Define. |
| 250 | (trace_install): Declare. |
| 251 | (TRACE_DATA): New struct. |
| 252 | |
| 253 | Wed Apr 23 17:23:15 1997 Doug Evans <dje@canuck.cygnus.com> |
| 254 | |
| 255 | * run.c: Undo last exec_bfd patch. |
| 256 | (main): Only pass -E ifdef SIM_HAVE_BIENDIAN. |
| 257 | |
| 258 | Wed Apr 23 17:54:27 1997 Mike Meissner <meissner@cygnus.com> |
| 259 | |
| 260 | * run.c (exec_bfd): Add back in. |
| 261 | (main): Set exec_bfd. |
| 262 | |
| 263 | Tue Apr 22 14:43:46 1997 Doug Evans <dje@canuck.cygnus.com> |
| 264 | |
| 265 | * sim-load.c (sim_load_file): #include <stdio.h> for NULL. |
| 266 | |
| 267 | Wed Apr 23 02:55:54 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 268 | |
| 269 | * sim-events.c (insert_sim_event): Call sim_io_error instead of |
| 270 | less well defined engine_error. |
| 271 | * sim-core.c: Ditto. |
| 272 | |
| 273 | Tue Apr 22 08:48:16 1997 Stu Grossman (grossman@critters.cygnus.com) |
| 274 | |
| 275 | * Make-common.in: Change clean targets to use :: so that other |
| 276 | Makefiles can have their own clean targets. |
| 277 | * sim-load.c (xprintf eprintf): Use ANSI_PROTOTYPES instead of |
| 278 | __STDC__ to control use of stdarg vs. varargs syntax. Some |
| 279 | systems can't use __STDC__, but require stdarg. |
| 280 | |
| 281 | Fri Apr 18 11:14:43 1997 Doug Evans <dje@canuck.cygnus.com> |
| 282 | |
| 283 | * sim-options.c (standard_options): Add --endian. |
| 284 | (standard_option_handler): Likewise. |
| 285 | |
| 286 | * nrun.c: #include <signal.h>. |
| 287 | (main, cntrl_c): Wrap calls to sim_resume in a SIGINT |
| 288 | handler that calls sim_stop (). |
| 289 | |
| 290 | Fri Apr 18 13:11:36 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 291 | |
| 292 | * run.c (main, cntrl_c): Wrap calls to sim_resume in a SIGINT |
| 293 | handler that calls sim_stop (). Simulators may still be |
| 294 | establishing their own handler. |
| 295 | |
| 296 | * sim-events.c (sim_events_poll): Rename from |
| 297 | sim_events_at_large_int. Poll IO. |
| 298 | |
| 299 | * sim-io.c (sim_io_poll_quit): New function - pass on a polling |
| 300 | request. |
| 301 | |
| 302 | * callback.c (os_poll_quit): New function poll for quit signal |
| 303 | where needed. |
| 304 | (default_callback): Include magic number. |
| 305 | |
| 306 | Thu Apr 17 02:25:11 1997 Doug Evans <dje@canuck.cygnus.com> |
| 307 | |
| 308 | * aclocal.m4: Check for headers time.h, sys/time.h, sys/resource.h. |
| 309 | Check for functions getrusage, time. |
| 310 | * sim-basics.h (SIM_ELAPSED_TIME): New typedef. |
| 311 | (sim_elapsed_time_get, sim_elapsed_time_since): Add prototypes. |
| 312 | * sim-utils.c: #include time.h, sys/time.h, sys/resource.h if able. |
| 313 | (sim_elapsed_time_get, sim_elapsed_time_since): New functions. |
| 314 | |
| 315 | * sim-utils.c (sim_copy_argv, sim_analyze_program): New functions. |
| 316 | |
| 317 | * sim-options.c, sim-options.h: New files. |
| 318 | * sim-config.h (WITH_DEBUG): Provide default value of zero. |
| 319 | * Make-common.in (nrun.o): Add rules for. |
| 320 | * nrun.c: New file. |
| 321 | |
| 322 | * run.c (main): Check return value of sim_open. |
| 323 | |
| 324 | * Make-common.in (sim-options.o, sim-load.o, sim-trace.o): Add rules. |
| 325 | (sim_main_headers): Add sim-trace.h. |
| 326 | * run.c (exec_bfd, target_byte_order): Delete. |
| 327 | (main): Pass -E <endian> to sim_open. Delete code to load sections, |
| 328 | call sim_load instead. Check return code of sim_create_inferior. |
| 329 | * sim-base.h (CURRENT_STATE): Define. |
| 330 | (sim_state_base): Make typedef. New members options, prog_argv, |
| 331 | prog_bfd, text_{section,start,end}, start_addr, simcache_size, |
| 332 | mem_size, memory [+ corresponding access macros]. |
| 333 | (sim_cpu_base): New typedef. |
| 334 | * sim-trace.h: New file. |
| 335 | * sim-trace.c: New file. |
| 336 | * sim-basics.h: #include it. |
| 337 | * sim-load.c: New file. |
| 338 | |
| 339 | Tue Apr 15 15:10:13 1997 Ian Lance Taylor <ian@cygnus.com> |
| 340 | |
| 341 | * Make-common.in (INSTALL): Set to @INSTALL@. |
| 342 | (INSTALL_XFORM, INSTALL_XFORM1): Remove. |
| 343 | (install-common): Depend upon installdirs. Use |
| 344 | $(program_transform_name) directly, rather than using |
| 345 | $(INSTALL_XFORM). |
| 346 | (installdirs): New target. |
| 347 | * Makefile.in (INSTALL): Set to @INSTALL@. |
| 348 | (INSTALL_XFORM, INSTALL_XFORM1): Remove. |
| 349 | (install-man): Depend upon installdirs. Use |
| 350 | $(program_transform_name) directly, rather than using |
| 351 | $(INSTALL_XFORM). |
| 352 | (installdirs): New target. |
| 353 | |
| 354 | Tue Apr 15 15:08:12 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 355 | |
| 356 | * sim-assert.h (SIM_ASSERT, ASSERT): Allow these macros to |
| 357 | be overriden. |
| 358 | |
| 359 | Wed Apr 9 16:06:44 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 360 | |
| 361 | * sim-basics.h: Only bring in config.h and tconfig.h if |
| 362 | HAVE_CONFIG_H. |
| 363 | |
| 364 | Mon Apr 7 11:39:45 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 365 | |
| 366 | * sim-config.h (WITH_TARGET_WORD_MSB): New Macro. Define the bit |
| 367 | numbering convention of the target. |
| 368 | * sim-config.c (print_sim_config): Print WITH_TARGET_WORD_BITSIZE |
| 369 | and WITH_TARGET_WORD_MSB. |
| 370 | (sim_config): When possible, check for consistency with bitsize |
| 371 | and msb. |
| 372 | |
| 373 | * sim-bits.h: Allow MSB to be other than zero. |
| 374 | * sim-bits.c: Ditto. |
| 375 | * sim-n-bits.h: Ditto. |
| 376 | |
| 377 | * sim-bits.h (MSMASK*): New macros - converce to LSMASK*. |
| 378 | * sim-n-bits.h (MSMASKEDn): Ditto. |
| 379 | |
| 380 | Mon Apr 14 16:29:21 1997 Ian Lance Taylor <ian@cygnus.com> |
| 381 | |
| 382 | * Makefile.in (INSTALL): Change install.sh to install-sh. |
| 383 | |
| 384 | Mon Apr 7 10:46:38 1997 Doug Evans <dje@canuck.cygnus.com> |
| 385 | |
| 386 | * sim-base.h (sim_state_base): Move `magic' to end of struct. |
| 387 | |
| 388 | Mon Apr 7 15:53:21 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 389 | |
| 390 | * run.c (main): Check that a program to run was specified. |
| 391 | |
| 392 | Mon Apr 7 15:45:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 393 | |
| 394 | * aclocal.m4 (AC_TYPE_SIGNAL): Add check. |
| 395 | |
| 396 | * configure: Regenerated to track ../common/aclocal.m4 changes. |
| 397 | * config.in: Ditto. |
| 398 | |
| 399 | Wed Apr 2 15:06:28 1997 Doug Evans <dje@canuck.cygnus.com> |
| 400 | |
| 401 | * sim-endian.h: Move host {LITTLE,BIG}_ENDIAN support from here, |
| 402 | * sim-config.h: To here. |
| 403 | |
| 404 | * Make-common.in (SIM_EXTRA_DEPS): New config var. |
| 405 | (sim_main_headers): Define. |
| 406 | (sim-*.o): Depend on $(SIM_EXTRA_DEPS). |
| 407 | (BUILT_SRC_FROM_COMMON): Move here from ../d30v/Makefile.in. |
| 408 | (clean): Use it. |
| 409 | (sim-utils.o): Add rule for. |
| 410 | * sim-utils.o: New file. |
| 411 | * sim-basics.h: #include sim-base.h. |
| 412 | (zalloc): Make argument unsigned long. |
| 413 | * sim-base.h: New file. |
| 414 | * sim-inline.h (SIM_IO support): Delete. |
| 415 | * sim-io.h: Delete inline support. |
| 416 | * sim-io.c: Likewise. sim-state.h renamed to sim-main.h. |
| 417 | * sim-config.c: sim-state.h renamed to sim-main.h. |
| 418 | * sim-core.c: Likewise. |
| 419 | * sim-events.c: Likewise. |
| 420 | |
| 421 | * run.c (main): Pass SIM_OPEN_STANDALONE to sim_open. |
| 422 | |
| 423 | * aclocal.m4: Check for stdlib.h, string.h, strings.h, unistd.h. |
| 424 | (sim-debug): Allow arguments. Define WITH_DEBUG in addition to |
| 425 | -DDEBUG. |
| 426 | * configure: Regenerated to track ../common/aclocal.m4 changes. |
| 427 | |
| 428 | Wed Apr 2 14:34:19 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 429 | |
| 430 | * configure: Regenerated to track ../common/aclocal.m4 changes. |
| 431 | |
| 432 | Wed Apr 2 11:08:11 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 433 | |
| 434 | * sim-config.h (WITH_ALIGNMENT, WITH_FLOATING_POINT, |
| 435 | WITH_XOR_ENDIAN, WITH_SMP, WITH_RESERVED_BITS): Assume that these |
| 436 | are defined by the configure. |
| 437 | |
| 438 | * aclocal.m4 (sim-stdio): Add option stdio from ../ppc configure. |
| 439 | |
| 440 | * aclocal.m4 (floating-point, xor-endian, alignment, smp, |
| 441 | reserved-bits): Always define. |
| 442 | |
| 443 | * sim-config.h, sim-config.c (sim_config): New function - and new |
| 444 | file - co-ordinate the setting/checking of the common simulator |
| 445 | configuration options. |
| 446 | |
| 447 | * Make-common.in (sim-config.o): Add rule. |
| 448 | |
| 449 | Fri Mar 28 15:32:00 1997 Mike Meissner <meissner@cygnus.com> |
| 450 | |
| 451 | * callback.c (os_{,e}vprintf_filtered): Change stdarg type to |
| 452 | va_list from void *, since va_list might not be a pointer type. |
| 453 | |
| 454 | Mon Mar 24 15:27:12 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 455 | |
| 456 | * sim-n-endian.h (offset_N): Correct assertion - word and sub word |
| 457 | in wrong order. |
| 458 | (offset_N): Correct computation of LE offset. |
| 459 | |
| 460 | * sim-io.c (sim_io_error): Include a new line when reporting |
| 461 | errors. |
| 462 | |
| 463 | * sim-assert.h (SIM_FILTER_PATH): Out by one when locating last |
| 464 | `/'. |
| 465 | |
| 466 | Thu Mar 20 22:31:06 1997 Jeffrey A Law (law@cygnus.com) |
| 467 | |
| 468 | * run.c: Include alloca-conf.h. |
| 469 | |
| 470 | * callback.c (os_evprintf_filtered): Fix typo. |
| 471 | |
| 472 | Fri Mar 21 13:36:20 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 473 | |
| 474 | * run.c (string.h, strings.h, stdlib.h): Include. |
| 475 | |
| 476 | * sim-events.c (sim_events_tick): Recent cleanup failed to return |
| 477 | 0 when nothing pending. |
| 478 | |
| 479 | * run.c (sim_size, sim_trace): Plicate GCC - these two functions |
| 480 | will soon be going away. |
| 481 | (getopt): Plicate GCC. |
| 482 | |
| 483 | * sim-endian.c (sim-io.h): Plicate GCC. |
| 484 | * sim-bits.c (sim-io.h): Ditto. |
| 485 | * sim-n-bits.h (ROTn): Ditto. |
| 486 | |
| 487 | * sim-io.c (sim_io_error): Correct check for NULL. |
| 488 | |
| 489 | * sim-assert.h (SIM_FILTER_PATH): Separate out the code filtering |
| 490 | the __FILE__. |
| 491 | * sim-events.c: Use SIM_FILTER_PATH to filter out the filename |
| 492 | path. |
| 493 | |
| 494 | Wed Mar 19 01:12:06 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 495 | |
| 496 | * aclocal.m4 (SIM_AC_OPTION_*: Move so that they are outside of |
| 497 | SIM_AC_COMMON - SIM_AC_COMMON was gobling arguments. |
| 498 | |
| 499 | Tue Mar 18 20:48:12 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 500 | |
| 501 | * sim-alu.h: Include sim-xcat.h. |
| 502 | |
| 503 | Tue Mar 18 13:58:18 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 504 | |
| 505 | * Make-common.in (sim-bits.c, sim-core.c, sim-endian.c, |
| 506 | sim-events.c, sim-inline.c, sim-io.c): Define rules for building |
| 507 | these. |
| 508 | |
| 509 | * sim-events.c (sim_events_at_large_int): New function. Just |
| 510 | schedules an event every large-int ticks. |
| 511 | (sim_events_init): Call. |
| 512 | (sim_events_tick, sim_events_process): Move async handing to |
| 513 | sim_events_process. Move timer decrement so that it occures after |
| 514 | events have been processed. |
| 515 | |
| 516 | * sim-basics.h (struct _engine): Remove declaration. |
| 517 | |
| 518 | * sim-events.h, sim-events.c: Rename type to sim_events. Prefix |
| 519 | everything with same. Rename global struct to SIM_DESC. |
| 520 | * sim-core.h, sim-core.c, sim-n-core.c: Ditto for sim_core. |
| 521 | * sim-io.h, sim-io.c: Ditto. |
| 522 | |
| 523 | * sim-assert.h: New file. Optional assertion checking macros. |
| 524 | * sim-io.c (sim_io_error): Make just this function tolerant to |
| 525 | null pointers. |
| 526 | |
| 527 | * sim-xcat.h: New file. Define concatenate macros. |
| 528 | * sim-basics.h (XCONCAT*): Move to sim-xcat.h. |
| 529 | * sim-n-core.h, sim-n-bits.h, sim-n-endian.h: Explicitly include |
| 530 | concat macros. |
| 531 | |
| 532 | |
| 533 | Tue Mar 18 12:44:55 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 534 | |
| 535 | * sim-bits.h (LSMASK): New macro. Create mask of LS bits. |
| 536 | |
| 537 | Mon Mar 17 18:10:05 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 538 | |
| 539 | * sim-inline.h: Add definitions for sim-types. |
| 540 | (ALL_BY_MODULE): New macro, encapsulate full inlining by the |
| 541 | module. |
| 542 | |
| 543 | Mon Mar 17 15:38:27 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 544 | |
| 545 | * sim-events.h: Remove defunct reference to callback struct. |
| 546 | |
| 547 | Mon Mar 17 15:10:07 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 548 | |
| 549 | * configure: Re-generate. |
| 550 | |
| 551 | Mon Mar 17 15:04:47 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 552 | |
| 553 | * Make-common.in (CSEARCH): Do not include the gdb directory in |
| 554 | the search path. |
| 555 | |
| 556 | Mon Mar 17 13:16:26 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 557 | |
| 558 | * Make-common.in (SIM_ENDIAN, SIM_HOSTENDIAN, SIM_INLINE, |
| 559 | SIM_WARNING): Drop, requiring the simulator specific Makefile.in |
| 560 | to explicitly incorporate these. |
| 561 | |
| 562 | * aclocal.m4 (--enable-sim-alignment); New option. Strongly |
| 563 | specify the alignment restrictions of the target architecture - |
| 564 | without this option all alignment restrictions are accomodated. |
| 565 | (--enable-sim-assert): New option. Conditionally compile in |
| 566 | assertion statements. |
| 567 | (--enable-sim-float): New option. Strongly specify the target's |
| 568 | floating point support. |
| 569 | (--enable-sim-hardware): New option. Specify the hardware devices |
| 570 | included in the simulation. |
| 571 | (--enable-sim-packages): New option. Specify the hardware |
| 572 | packages included in the simulation. |
| 573 | (--enable-sim-regparm): New option. Specify that parameters be |
| 574 | passed in registers instead of on the stack. |
| 575 | (--enable-sim-reserved-bits): New option. Specify that reserved |
| 576 | bits within an instruction are are correctly set. |
| 577 | (--enable-sim-smp): New option. Specify the level of SMP support |
| 578 | to be included in the simulator. |
| 579 | (--enable-sim-stdcall): New option. Specify an alternative |
| 580 | function call convention. |
| 581 | (--enable-sim-xor-endian): New option. Configure xor-endian |
| 582 | support used by some targets to implement bi-endian support. |
| 583 | |
| 584 | Fri Mar 14 19:51:21 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 585 | |
| 586 | * aclocal.m4 (--enable-sim-hostendian): New option. Allow the |
| 587 | host endianness to be overridden. |
| 588 | (--enable-sim-endian): Allow the target platform's byte order |
| 589 | to be overridden. |
| 590 | (--enable-sim-inline): Control the inlining of common components. |
| 591 | (--enable-sim-bswap): For compatibility, also define WITH_BSWAP. |
| 592 | (--enable-sim-warnings): Enable additional GCC compiler checks. |
| 593 | * Make-common.in (SIM_ENDIAN, SIM_HOSTENDIAN, SIM_INLINE, |
| 594 | SIM_WARNINGS): Add. |
| 595 | |
| 596 | * sim-n-core.h, sim-n-bits.h, sim-n-endian.h: Rename from |
| 597 | sim-*-n.h so that the names are uniq on dos machines |
| 598 | * sim-core.c, sim-bits.c, sim-endian.c: Update. |
| 599 | |
| 600 | Thu Mar 13 12:32:42 1997 Doug Evans <dje@canuck.cygnus.com> |
| 601 | |
| 602 | * run.c: #include "libiberty.h". |
| 603 | (main): New locals sd,no_args,sim_argv. |
| 604 | Run buildargv on -a option. Pass argv to sim_open, argv[0] |
| 605 | is program name. Update call to sim_set_callbacks. |
| 606 | Record result of sim_open, pass to other sim_foo routines. |
| 607 | |
| 608 | Thu Mar 13 10:24:05 1997 Michael Meissner <meissner@cygnus.com> |
| 609 | |
| 610 | * callback.c (os_printf_filtered): Do not call exit(1) or print a |
| 611 | final newline. |
| 612 | |
| 613 | Thu Mar 6 15:50:28 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 614 | |
| 615 | * callback.c: Add os_flush_stdout and vprintf_filtered callbacks. |
| 616 | Route stdout through buffered IO. |
| 617 | |
| 618 | * callback.c: Add os_flush_stderr, os_write_stderr, |
| 619 | os_evprintf_filtered functions to route error output through |
| 620 | stderr. |
| 621 | |
| 622 | * sim-io.h, sim-io.c (sim_io_flush_stderr, sim_io_flush_stdout): |
| 623 | Correct return type - should be void. |
| 624 | |
| 625 | Fri Mar 7 20:14:37 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 626 | |
| 627 | * sim-basics.h: Clean up. Many macro's moved to sim-inline.h. |
| 628 | |
| 629 | * sim-config.h: Ditto. For some options - eg WITH_DEVICES - do |
| 630 | not provide a default value as undefined indicates disable code. |
| 631 | |
| 632 | Thu Mar 6 15:50:28 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 633 | |
| 634 | * sim-core.h, sim-core-n.h, sim-core.c: Borrow code from ppc |
| 635 | directory. |
| 636 | * sim-events.h, sim-events.c: Ditto. |
| 637 | * sim-io.h, sim-io.c: Ditto. |
| 638 | |
| 639 | Tue Mar 4 09:35:56 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 640 | |
| 641 | * sim-alu.h (ALU_SUB_CA, ALU*_SUB_CA): New alu operation. |
| 642 | |
| 643 | * sim-bits.h, sim-bits-n.h, sim-bits.c (LSMASKED*): New macro's |
| 644 | extract the tail or least signifiant bits from an integer of the |
| 645 | specified size. |
| 646 | |
| 647 | * sim-bits.h, sim-bits.c: Clean up conditionally compiled #if |
| 648 | WITH_TARGET_BITSIZE so that the compilation will fail when an |
| 649 | unsupported bitsize value is defined. |
| 650 | |
| 651 | (INSERTED*): Convert to functions. |
| 652 | (EXTRACTED*): Ditto. |
| 653 | |
| 654 | (SIGN_EXTEND, SEXT): Change to more terse name. |
| 655 | |
| 656 | Tue Mar 4 09:35:56 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 657 | |
| 658 | * sim-inline.h: Allow explicit control over which .c files will be |
| 659 | included by their header. |
| 660 | |
| 661 | * sim-inline.h: Allow explicit control over which .c files use the |
| 662 | alternative - REGPARM - parameter passing mechanism. |
| 663 | |
| 664 | * sim-inline.h, sim-inline.c: Don't attempt to include any of |
| 665 | icache.c, idecode.c, semantics.c or support.c. Those names are |
| 666 | not generally applicable. |
| 667 | |
| 668 | Thu Feb 27 10:17:23 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 669 | |
| 670 | * sim-bits.c, sim-bits-n.h (new): Split sim-bits.c into two parts |
| 671 | in a fashion similar to sim-endian-n. |
| 672 | |
| 673 | * sim-endian.h: (H_word, L_word, AL_*, VL_*): Extend to include |
| 674 | both value and address macro's. |
| 675 | |
| 676 | Tue Feb 25 18:51:57 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 677 | |
| 678 | * sim-alu.h (ALU16_BEGIN, ALU16_SET, ...): Fill in. |
| 679 | |
| 680 | * sim-endian.h (L_word, H_word): Replace MS2W_4, LS2W_4 with more |
| 681 | generic L_word, H_word macro's. |
| 682 | |
| 683 | Thu Feb 20 18:36:55 1997 Andrew Cagney <cagney@critters.cygnus.com> |
| 684 | |
| 685 | * sim-basics.h: Borrow code from ppc directory. |
| 686 | * sim-bits.c: Ditto. |
| 687 | * sim-bits.h: Ditto. |
| 688 | * sim-config.h: Ditto. |
| 689 | * sim-endian-n.h: Ditto. |
| 690 | * sim-endian.c: Ditto. |
| 691 | * sim-endian.h: Ditto. |
| 692 | * sim-inline.c: Ditto. |
| 693 | * sim-inline.h: Ditto. |
| 694 | * sim-types.h: Ditto. |
| 695 | |
| 696 | Wed Feb 19 12:40:50 1997 Andrew Cagney <cagney@critters.cygnus.com> |
| 697 | |
| 698 | * sim-alu.h (ALU_SET16, ALU_SET32, ALU_SET64, etc): Make available |
| 699 | all the ALU size alternatives and then auto-configure a default. |
| 700 | |
| 701 | * sim-alu.h: Copy ppc/idecode_expression.h. |
| 702 | |
| 703 | Mon Feb 17 10:44:18 1997 Andrew Cagney <cagney@critters.cygnus.com> |
| 704 | |
| 705 | * bits.h, bits.c (SIGN_EXTEND32, SIGN_EXTEND64): New functions, |
| 706 | sign extend a bit within a value. |
| 707 | |
| 708 | * sim-endian.h, sim-endian-n.h (offset_N): New functions - return |
| 709 | a pointer into the middle of a host word. |
| 710 | * sim-endian.h (MS2W_4, LS2W_4): Use this function. |
| 711 | |
| 712 | Tue Feb 11 13:46:49 1997 Michael Meissner <meissner@tiktok.cygnus.com> |
| 713 | |
| 714 | * callback.c: If HAVE_CONFIG_H is defined, include config.h from |
| 715 | autoconf. If HAVE_UNISTD_H is defined, include unistd.h to get |
| 716 | appropriate definitions of read, write, etc. Add prototype for |
| 717 | system. |
| 718 | |
| 719 | Tue Feb 4 13:24:44 1997 Doug Evans <dje@canuck.cygnus.com> |
| 720 | |
| 721 | * Makefile.in (libcommon.a): Delete. |
| 722 | (callback.o,targ-map.o): Delete, moved to Make-common.in. |
| 723 | (gentmap,targ-vals.h,targ-map.c): Likewise. |
| 724 | (run-autoconf): Delete. |
| 725 | * aclocal.m4 (SIM_AC_OUTPUT): Redo creation of Makefile. |
| 726 | (common makefile fragment): Moved back into ... |
| 727 | * Make-common.in: Resurrect. |
| 728 | * configure.in (AC_LINK_FILES): Delete, unnecessary now. |
| 729 | * configure: Regenerated. |
| 730 | |
| 731 | Fri Jan 31 07:16:49 1997 Doug Evans <dje@canuck.cygnus.com> |
| 732 | |
| 733 | * aclocal.m4 (SIM_AC_COMMON): Move COMMON_MAKEFILE_FRAG from here. |
| 734 | (SIM_AC_OUTPUT): To here. |
| 735 | |
| 736 | Fri Jan 24 10:37:17 1997 Stu Grossman (grossman@critters.cygnus.com) |
| 737 | |
| 738 | * aclocal.m4 (COMMON_MAKEFILE_FRAG): Quote a couple of $'s in |
| 739 | comments and single quotes. Fixes a problem found on hpux. |
| 740 | |
| 741 | Thu Jan 23 13:35:03 1997 Stu Grossman (grossman@critters.cygnus.com) |
| 742 | |
| 743 | * aclocal.m4: Remove Make-common.in from dependencies. |
| 744 | * (distclean): Remove targ-vals.def. |
| 745 | |
| 746 | * aclocal.m4 (SIM_AC_COMMON): Move contents of Make-common.in |
| 747 | into here. Makes insertion into makefiles easier. Also, change |
| 748 | the way that callback.o, gentmap, targ-vals.h, targ-map.c, |
| 749 | targ-map.o, and run are built. They are now built in the |
| 750 | individual simulator directories, taking sources from ../common as |
| 751 | necessary. This replaces the merging of libcommon.a into |
| 752 | linsim.a, which was problematic for the WinGDB build process. |
| 753 | * run.c: Include config.h from . instead of ../common. |
| 754 | * Make-common.in: Remove. It's no longer necessary. |
| 755 | |
| 756 | Mon Dec 16 15:02:33 1996 Ian Lance Taylor <ian@cygnus.com> |
| 757 | |
| 758 | * Make-common.in (ALL_CLAGS): Put CFLAGS at the end. |
| 759 | (.c.o): Put $(ALL_CFLAGS) before the file being compiled. |
| 760 | |
| 761 | Wed Dec 11 11:30:58 1996 Jim Wilson <wilson@cygnus.com> |
| 762 | |
| 763 | * run.c (main): Set target_byte_order before call to sim_open. |
| 764 | |
| 765 | Sun Dec 8 18:22:06 1996 Doug Evans <dje@canuck.cygnus.com> |
| 766 | |
| 767 | * callback.c: #include <stdlib.h> |
| 768 | (os_error): New function. |
| 769 | (default_callback): Add os_error. |
| 770 | |
| 771 | Mon Nov 25 19:44:35 1996 Doug Evans <dje@canuck.cygnus.com> |
| 772 | |
| 773 | * Make-common.in (Makefile): Set CONFIG_HEADERS="". |
| 774 | * aclocal.m4: Mark the fact that --enable-sim-bswap isn't host |
| 775 | specific. |
| 776 | (SIM_AC_OUTPUT): Don't build Makefile if CONFIG_FILES="". |
| 777 | |
| 778 | Wed Nov 20 01:11:04 1996 Doug Evans <dje@canuck.cygnus.com> |
| 779 | |
| 780 | * run.c: #include ../common/config.h, tconfig.h. |
| 781 | (myname): New static global. |
| 782 | (main): Recognize new options -a, -c. Also recognize -h if h8/300. |
| 783 | Only process -c ifdef SIM_HAVE_SIMCACHE. |
| 784 | Only process -p/-s ifdef SIM_HAVE_PROFILE. |
| 785 | Parse program name from argv[0] and use in error messages. |
| 786 | Pass sim_args to sim_open. Pass prog_args to sim_create_inferior. |
| 787 | Add support for incomplete h8/300 termination indicators. |
| 788 | (usage): Make more verbose. |
| 789 | * aclocal.m4,config.in,tconfig.in,configure.in,configure: New files. |
| 790 | * Makefile.in,Make-common.in,callback.c: New files. |
| 791 | * nltvals.def,gentmap.c,gentvals.sh: New files. |
| 792 | |
| 793 | Tue Nov 12 13:34:00 1996 Dawn Perchik <dawn@cygnus.com> |
| 794 | |
| 795 | * run.c: Include stdarg.h if __STDC__. |
| 796 | |
| 797 | Tue Oct 15 11:16:31 1996 Jeffrey A Law (law@cygnus.com) |
| 798 | |
| 799 | * run.c (main): Don't print out anything if the signal |
| 800 | number is zero (ie no signal). |
| 801 | |
| 802 | Tue Oct 15 11:20:44 1996 Michael Meissner <meissner@tiktok.cygnus.com> |
| 803 | |
| 804 | * run.c (main): Print out if the program raised a signal. |
| 805 | |
| 806 | Wed Sep 18 09:52:14 1996 Michael Meissner <meissner@tiktok.cygnus.com> |
| 807 | |
| 808 | * run.c (exec_bfd): Rename from sim_bfd, to use the gdb name. |
| 809 | (main): Ditto. |
| 810 | |
| 811 | Tue Sep 17 11:04:50 1996 James G. Smith <jsmith@cygnus.co.uk> |
| 812 | |
| 813 | * run.c (main): Explicitly cast malloc() parameter. |
| 814 | |
| 815 | Thu Sep 12 11:27:21 1996 Michael Meissner <meissner@tiktok.cygnus.com> |
| 816 | |
| 817 | * run.c (sim_bfd): New global to hold the bfd pointer for the |
| 818 | executable. |
| 819 | (main): Initialize sim_bfd. |
| 820 | |
| 821 | Fri Dec 15 16:27:49 1995 Ian Lance Taylor <ian@cygnus.com> |
| 822 | |
| 823 | * run.c (main): Use new bfd_big_endian macro. |
| 824 | |
| 825 | Wed Nov 8 15:49:49 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk> |
| 826 | |
| 827 | * run.c (main): Removed SH specific comments, so source is |
| 828 | generic. Also updated to only load relevant sections. Moved |
| 829 | sim_open() to after callback attach (to match GDB). |
| 830 | |
| 831 | * run.1: Removed SH specific comments. |
| 832 | |
| 833 | Sat Oct 21 12:31:01 1995 Jim Wilson <wilson@chestnut.cygnus.com> |
| 834 | |
| 835 | * run.c (main): Always return sigrc at end. |
| 836 | |
| 837 | Tue Oct 10 12:03:13 1995 J.T. Conklin <jtc@rtl.cygnus.com> |
| 838 | |
| 839 | * run.c (main): Print error diagnostic and exit if bfd_openr() or |
| 840 | bfd_check_format() fails. |
| 841 | |
| 842 | Thu Sep 28 15:40:36 1995 steve chamberlain <sac@slash.cygnus.com> |
| 843 | |
| 844 | * run.c, run.1: From sh directory. |
| 845 | |
| 846 | |