| 1 | Tue Nov 11 13:28:02 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 2 | |
| 3 | * sim-events.c (sim_events_process): Re-compute the time - |
| 4 | update_time_from_event - as each event is processed. Reverses |
| 5 | previous change. |
| 6 | |
| 7 | Fri Nov 7 00:37:36 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 8 | |
| 9 | * callback.c (os_poll_quit): Replace _WIN32 with _MSC_VER. |
| 10 | |
| 11 | Fri Nov 7 00:37:36 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 12 | |
| 13 | * sim-events.c (sim_events_process): Delete redundant call to |
| 14 | update_time_from_event. |
| 15 | (sim_events_slip): Always decrement time_from_event. |
| 16 | (sim_events_tick, sim_events_deschedule, update_time_from_event): |
| 17 | Delete assertion that time_from_event >=0 when work in queue, no |
| 18 | longer applicable. |
| 19 | |
| 20 | Thu Nov 6 12:06:46 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 21 | |
| 22 | * sim-options.c (STANDARD_OPTIONS): Change OPTION_* to an enum. |
| 23 | (standard_option_handler): Update. |
| 24 | |
| 25 | * sim-options.h: Clarify documentation. |
| 26 | (OPTION_LONG_ONLY_P): Delete definition. |
| 27 | (OPTION_VALID_P): Define. |
| 28 | |
| 29 | * sim-options.c (sim_print_help): Allow short only options. |
| 30 | (sim_parse_args): Ditto. |
| 31 | (sim_args_command): Skip short only options. |
| 32 | (sim_parse_args): Allocate space for NUM_OPTS not just 256. Make |
| 33 | separate entries for short and long options in the HANDLERS and |
| 34 | ORIG_VAL tables. |
| 35 | (sim_parse_args): Disable argument permutation. |
| 36 | |
| 37 | Wed Nov 5 13:40:31 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 38 | |
| 39 | * sim-core.h (DECLARE_SIM_CORE_WRITE_N. DECLARE_SIM_CORE_READ_N): |
| 40 | Add argument M, size of data type. |
| 41 | (sim_core_read_misaligned_3, sim_core_write_misaligned_3): |
| 42 | Declare, ditto for 5, 6 & 7 byte transfers. |
| 43 | (sim_core_write_unaligned_1, sim_core_write_unaligned_1): Define |
| 44 | as aligned variant. |
| 45 | |
| 46 | * sim-n-core.h (sim_core_trace_M): Rename from |
| 47 | sim_core_trace_N. Add nr_bytes argument. Replace transfer argument |
| 48 | with transfer type. Print transfer direction. Handle 1 and 2 byte |
| 49 | transfers. |
| 50 | (sim_core_read_unaligned_N, sim_core_write_unaligned_N): Trace |
| 51 | unaligned accesses. |
| 52 | (unsigned_M, T2H_M, H2T_M): Rename from unsigned_N, T2H_N, H2T_N. |
| 53 | Update all functions. |
| 54 | |
| 55 | * sim-core.c: Generate functions starting with 16 not 1. |
| 56 | (sim_core_read_unaligned_3): Generate. Ditto for 3 byte write and |
| 57 | all 5, 6 & 7 byte transfers. |
| 58 | |
| 59 | * sim-n-core.h (sim_core_read_misaligned_N, |
| 60 | sim_core_write_misaligned_N): Implement. |
| 61 | |
| 62 | Mon Nov 3 15:03:04 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 63 | |
| 64 | * sim-endian.h (U16_8): Implement |
| 65 | |
| 66 | * sim-endian.c (sim_endian_split_16, sim_endian_join_16): New functions |
| 67 | |
| 68 | * sim-endian.h (VL8_16, VH8_16): Implement. |
| 69 | |
| 70 | * sim-memopt.c (memory_option_handler): Typecast 64bit value to |
| 71 | long in printf. |
| 72 | (memory_option_handler): Only zalloc modulo bytes when non-zero. |
| 73 | (memory_option_handler): Skip comma in alias address list |
| 74 | |
| 75 | Fri Oct 31 13:03:33 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 76 | |
| 77 | * sim-memopt.c (do_memopt_add, do_memopt_delete): Add level and |
| 78 | space params. |
| 79 | (parse_size, parse_addr): New functions |
| 80 | (memory_option_handler, memory_options): Parse address & size |
| 81 | using new functions. Pass level, space, modulo to do_memopt_add & |
| 82 | do_memopt_del. |
| 83 | |
| 84 | * sim-memopt.h (struct _sim_memopt): Add level & space fields. |
| 85 | |
| 86 | * sim-core.h (sim_core_arrach, sim_core_detach): Replace |
| 87 | `attach_type attach' argument with `unsigned level' argument. |
| 88 | Document. |
| 89 | |
| 90 | * sim-core.c (new_sim_core_mapping, sim_core_map_attach, |
| 91 | sim_core_attach): Replace argument attach with level. Update |
| 92 | verification of arguments. |
| 93 | (sim_core_map_detach, sim_core_detach): Replace argument attach |
| 94 | with level. |
| 95 | |
| 96 | * sim-basics.h (enum _attach_type): Delete. |
| 97 | |
| 98 | Thu Oct 30 13:45:00 1997 Doug Evans <devans@seba.cygnus.com> |
| 99 | |
| 100 | * sim-core.h (sim_core_write_8): Define. |
| 101 | |
| 102 | Tue Oct 28 12:29:22 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 103 | |
| 104 | * sim-bits.h: Document ROTn macro. |
| 105 | |
| 106 | * sim-endian.h (H2T): Handle 16 byte variables. |
| 107 | |
| 108 | * sim-n-core.h (sim_core_read_unaligned_N): Return a dummy when an |
| 109 | error. |
| 110 | |
| 111 | * sim-core.c: Do not generate sim_core_*_word. |
| 112 | |
| 113 | * sim-n-core.h (sim_core_trace_N): Add line_nr argument. |
| 114 | (sim_core_write_aligned_N, sim_core_read_aligned_N): Update. |
| 115 | |
| 116 | * sim-core.h (sim_core_read_unaligned_word, |
| 117 | sim_core_read_aligned_word, sim_core_read_word, |
| 118 | sim_core_write_unaligned_word, sim_core_write_aligned_word, |
| 119 | sim_core_write_word): Change to macros that map onto sim_core_*_N. |
| 120 | |
| 121 | Mon Oct 27 11:25:10 1997 Doug Evans <devans@canuck.cygnus.com> |
| 122 | |
| 123 | * sim-n-endian.h: Add TAGS entrys for 16 byte versions. |
| 124 | |
| 125 | * sim-endian.h: Disable 16 byte support. |
| 126 | |
| 127 | Mon Oct 27 12:00:48 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 128 | |
| 129 | * sim-endian.c (_SWAP_16): Define. Generate 126 bit swap code. |
| 130 | |
| 131 | * sim-n-core.h (sim_core_trace_N): New function. |
| 132 | (sim_core_read_aligned_N, sim_core_write_aligned_N): Use, |
| 133 | (sim_core_read_unaligned_N): Do not retyrn bogus value wden error. |
| 134 | |
| 135 | * sim-endian.h: Add 128 bit variant. |
| 136 | |
| 137 | * sim-core.h, sim-core.c: Add 128 bit variant. |
| 138 | |
| 139 | * sim-types.h: Add signed128 and unsigned128 types using a struct. |
| 140 | |
| 141 | Fri Oct 24 11:33:07 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 142 | |
| 143 | * sim-events.c (sim_events_process): Clear events->work_pending. |
| 144 | (sim_events_tickn, sim_events_tick): Accumulate, instead of |
| 145 | setting, nr_ticks_to_process. |
| 146 | (sim_events_preprocess): Allow nr_ticks_to_process to be non-zero |
| 147 | when the event queue isn't next. |
| 148 | |
| 149 | * sim-events.h, sim-events.c (sim_events_slip): New function. |
| 150 | |
| 151 | Wed Oct 22 14:18:38 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 152 | |
| 153 | * sim-hload.c (sim_load): Pass lma_p==0 and do_load=sim_load. |
| 154 | |
| 155 | * sim-utils.h, sim-load.c (sim_load_file): Add lma_p and do_load |
| 156 | arguments. |
| 157 | |
| 158 | Tue Oct 21 18:37:57 1997 Doug Evans <devans@canuck.cygnus.com> |
| 159 | |
| 160 | * nrun.c (main): Remove useless test of name != NULL. |
| 161 | Exit if bfd_openr fails. Call bfd_check_format after bfd_openr. |
| 162 | |
| 163 | Tue Oct 21 10:42:38 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 164 | |
| 165 | * sim-fpu.c (EXPMAX): Type is unsigned. |
| 166 | (MIN_INT, MAX_INT): Type is signed64. |
| 167 | (i2fpu): Type of val is signed64. |
| 168 | |
| 169 | Tue Oct 21 10:42:38 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 170 | |
| 171 | * sim-profile.h (PROFILE_PC_BUCKET_SIZE): Treat a shift of zero as |
| 172 | a bucket size of zero. |
| 173 | |
| 174 | * sim-profile.c (OPTION_PROFILE_PC_GRANULARITY, |
| 175 | OPTION_PROFILE_PC): Define. |
| 176 | (profile_option_handler): Add support for --profile-pc and |
| 177 | --profile-pc-granularity options. |
| 178 | (profile_pc_init): When possible, compute nr buckets from bucket |
| 179 | size. |
| 180 | |
| 181 | * sim-profile.c (profile_pc_init): Align the profile-pc end |
| 182 | address with the profile-pc bucket size. |
| 183 | |
| 184 | * sim-profile.h (PROFILE_PC_NR_BUCKETS): Rename PROFILE_PC_SIZE to |
| 185 | something less ambiguous. |
| 186 | (PROFILE_PC_BUCKET_SIZE): Ditto for PROFILE_PC_SAMPLE_SIZE. |
| 187 | |
| 188 | * sim-profile.c (profile_pc_cleanup): New function. Move |
| 189 | profile_pc_uninstall code to here. |
| 190 | (profile_pc_uninstall): Call. |
| 191 | (profile_pc_init): Call. |
| 192 | |
| 193 | Mon Oct 20 17:23:58 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 194 | |
| 195 | * sim-profile.c (profile_print_pc): Dump pc profile to dmon.out |
| 196 | file using BSD gprof format. |
| 197 | |
| 198 | * sim-bits.h (LSBIT, MSBIT, BIT): Force result to type |
| 199 | unsigned_word. |
| 200 | (LSBIT8, LSBIT16, LSBIT32, LSBIT64, MSBIT8, MSBIT16, MSBIT32, |
| 201 | MSBIT64): Force result to unsignedN. |
| 202 | |
| 203 | Thu Oct 16 11:38:56 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 204 | |
| 205 | * sim-alu.h (ALU16_BEGIN, ALU32_BEGIN, ALU64_BEGIN): Drop opening |
| 206 | brace from macro. |
| 207 | (ALU8_BEGIN, ALU8_SET, ALU8_ADD, ALU8_SUB, ALU8_NEGATE): Define. |
| 208 | (ALU16_ADD, ALU16_SUB, ALU16_NEGATE): Simplify arrithmetic. |
| 209 | (ALU32_ADD, ALU32_SUB, ALU32_NEGATE): Simplify arrithmetic. |
| 210 | (ALU64_ADD, ALU64_SUB, ALU64_NEGATE): Simplify arrithmetic. |
| 211 | |
| 212 | Wed Oct 15 09:24:19 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 213 | |
| 214 | * sim-core.h (struct _sim_core_mapping): Change free_buffer to |
| 215 | type void*. |
| 216 | |
| 217 | * sim-core.c (sim_core_uninstall, new_sim_core_mapping, |
| 218 | sim_core_map_attach, sim_core_map_detach): Change free_buffer to |
| 219 | type void*. |
| 220 | (sim_core_attach): Rename buffer_freed to free_buffer, type |
| 221 | void*. Ensure that allocated buffer is alligned according to |
| 222 | region's address. |
| 223 | |
| 224 | Mon Oct 13 11:34:50 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 225 | |
| 226 | * sim-alu.h (ALU64_HAD_OVERFLOW): Define. |
| 227 | (ALU64_SUB): Define. |
| 228 | |
| 229 | * Make-common.in (all): Build SIM_EXTRA_ALL first. |
| 230 | (.gdbinit): Remove dependencies, generate once per build. |
| 231 | |
| 232 | Tue Oct 14 19:20:09 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 233 | |
| 234 | * sim-n-core.h (sim_core_read_aligned_N, |
| 235 | sim_core_write_aligned_N): Make xaddr param type address_word not |
| 236 | unsigned_word. |
| 237 | |
| 238 | Fri Oct 3 09:49:18 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 239 | |
| 240 | * sim-fpu.h, sim-fpu.c: Rewrite. Change sim_fpu object to an |
| 241 | unpacked floating point struct. Pass sim_fpu object by reference. |
| 242 | Add preliminary support for rounding modes. |
| 243 | |
| 244 | Fri Oct 3 09:28:00 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 245 | |
| 246 | * configure: Regenerated to track ../common/aclocal.m4 changes. |
| 247 | |
| 248 | Thu Oct 2 19:43:52 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 249 | |
| 250 | * aclocal.m4 (sim-bitsize): Fix typo, WITH_TARGET_WORD_BITSIZE not |
| 251 | WITH_TARGET_BITSIZE. |
| 252 | |
| 253 | Thu Sep 25 23:20:20 1997 Felix Lee <flee@yin.cygnus.com> |
| 254 | |
| 255 | * sim-profile.c (profile_print_core): label needs empty statement. |
| 256 | |
| 257 | Thu Sep 25 11:20:47 1997 Stu Grossman <grossman@babylon-5.cygnus.com> |
| 258 | |
| 259 | * sim-break.c (sim_set_breakpoint sim_clear_breakpoint): Use ZALLOC |
| 260 | and zfree instead of xmalloc and free. Prevents warnings. |
| 261 | |
| 262 | Wed Sep 24 17:38:57 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 263 | |
| 264 | * configure: Regenerated to track ../common/aclocal.m4 changes. |
| 265 | |
| 266 | Wed Sep 24 17:23:31 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 267 | |
| 268 | * Make-common.in (SIM_BITSIZE): Assign from configured value. |
| 269 | (CONFIG_CFLAGS): Add SIM_BITSIZE. |
| 270 | |
| 271 | * aclocal.m4 (--enable-sim-bitsize): Developer option for |
| 272 | controling the bitsize/msb of the target. |
| 273 | |
| 274 | Wed Sep 24 17:41:40 1997 Stu Grossman <grossman@babylon-5.cygnus.com> |
| 275 | |
| 276 | * Make-common.in: New files sim-break.c, sim-break.h. |
| 277 | * sim-base.h: Add point to breakpoint list to sim_state_base. |
| 278 | * sim-break.c sim-break.h: New modules that implement intrinsic |
| 279 | breakpoint support. |
| 280 | * sim-module.c: Add breakpoint module. |
| 281 | |
| 282 | Tue Sep 23 00:26:39 1997 Felix Lee <flee@yin.cygnus.com> |
| 283 | |
| 284 | * sim-events.c (SIM_EVENTS_POLL_RATE): poll more often than once |
| 285 | an hour. |
| 286 | * sim-n-core.h (WITH_XOR_ENDIAN): MSVC barfs on |
| 287 | if (0) { 1 % 0; } |
| 288 | * sim-core.c (sim_core_xor_write_buffer): WITH_XOR_ENDIAN + 1. |
| 289 | (SIGBUS) define for Windows. |
| 290 | * sim-trace.c (trace_printf,debug_printf): added ALMOST_STDC. |
| 291 | * sim-resume.c: define SIGTRAP for windows. |
| 292 | * sim-xcat.h: use token pasting if ALMOST_STDC. |
| 293 | |
| 294 | Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 295 | |
| 296 | * Make-common.in (SIM_SCACHE, SIM_DEFAULT_MODEL): Assign |
| 297 | configured values. |
| 298 | (CONFIG_CFLAGS): Add same. |
| 299 | |
| 300 | Mon Sep 22 17:20:27 1997 Felix Lee <flee@cygnus.com> |
| 301 | |
| 302 | * sim-types.h (SIGNED64): ##i64 when _MSC_VER, not _WIN32. |
| 303 | (SIGNED32): use ##i32. |
| 304 | |
| 305 | Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 306 | |
| 307 | * configure: Regenerated to track ../common/aclocal.m4 changes. |
| 308 | |
| 309 | Tue Sep 23 10:07:47 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 310 | |
| 311 | * aclocal.m4 (sim-endian): Simplify logic determining [default] |
| 312 | endian of target. |
| 313 | |
| 314 | * Make-common.in (SIM_WARNINGS, SIM_ALIGNMENT, SIM_ENDIAN, |
| 315 | SIM_HOSTENDIAN, SIM_RESERVED_BITS, SIM_ASSERT, SIM_FLOAT, |
| 316 | SIM_HARDWARE, SIM_INLINE, SIM_PACKAGES, SIM_REGPARM, SIM_SMP, |
| 317 | SIM_STDCALL, SIM_XOR_ENDIAN): Assign configured values. |
| 318 | (CONFIG_CFLAGS): Add same. |
| 319 | |
| 320 | * aclocal.m4: Perform AC_SUBST on optional options. |
| 321 | |
| 322 | Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 323 | |
| 324 | * sim-config.h (WITH_DEFAULT_ALIGNMENT): Don't hardwire any alignment. |
| 325 | |
| 326 | * sim-options.c (standard_option_handler): Typo in warning message. |
| 327 | |
| 328 | * sim-base.h (STATE_MODEL): Make conditional on SIM_HAVE_MODEL. |
| 329 | |
| 330 | * sim-profile.c (profile_print_insn): Check 0 .. MAX_INSN for any |
| 331 | insn count. Make count conditional on there being a valid |
| 332 | INSN_NAME. |
| 333 | (profile_pc_init): Make default PC profile frequency an arbitrary |
| 334 | 256. |
| 335 | |
| 336 | * sim-base.h: Ditto. |
| 337 | |
| 338 | * sim-profile.h (WITH_PROFILE_MODEL_P): Only enable modeling when |
| 339 | SIM_HAVE_MODEL. |
| 340 | |
| 341 | * sim-model.h (struct MACH): Depreciate, to be replaced by bfd |
| 342 | archure struct. |
| 343 | |
| 344 | Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 345 | |
| 346 | * configure: Regenerated to track ../common/aclocal.m4 changes. |
| 347 | |
| 348 | Mon Sep 22 11:45:00 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 349 | |
| 350 | * aclocal.m4 (sim_alignment): Simplify logic for selecting the |
| 351 | configured alignment. |
| 352 | |
| 353 | Fri Sep 19 17:45:25 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 354 | |
| 355 | * configure: Regenerated to track ../common/aclocal.m4 changes. |
| 356 | |
| 357 | Fri Sep 19 17:26:14 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 358 | |
| 359 | * sim-config.c (sim_config): Check for default alignment. |
| 360 | |
| 361 | * sim-options.c (standard_option_handler): Add alignment option. |
| 362 | |
| 363 | * aclocal.m4 (sim_alignment): Allow configuration of hardwired and |
| 364 | default alignment requirements on memory accesses. |
| 365 | |
| 366 | Fri Sep 19 11:51:35 1997 Jeffrey A Law (law@cygnus.com) |
| 367 | |
| 368 | * sim-load.c (sim_load_file): Return failure if the executable |
| 369 | had no loadable sections. |
| 370 | |
| 371 | Wed Sep 17 13:33:28 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 372 | |
| 373 | * sim-events.c (ETRACE): Use trace_printf not sim_io_printf for |
| 374 | trace output. |
| 375 | |
| 376 | * sim-core.c (sim_core_signal): When bad access halt simulator |
| 377 | SIGSEGV / SIGBUS instead of aborting. |
| 378 | (signal.h): Include. |
| 379 | |
| 380 | * sim-watch.c (sim_watchpoint_install): Handler for watchpoint |
| 381 | options was missing. |
| 382 | |
| 383 | * sim-bits.h (MOVED): Define |
| 384 | |
| 385 | Wed Sep 17 10:33:28 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 386 | |
| 387 | * sim-alu.h (ALU32_HAD_OVERFLOW): Pacify GCC, Use MSBIT instead of |
| 388 | BIT. |
| 389 | |
| 390 | * sim-bits.h (LSBIT, MSBIT): Check for overflow of shift value. |
| 391 | |
| 392 | * sim-bits.c: Add 8 bit versions of bit macros. |
| 393 | |
| 394 | * sim-bits.h: Ditto. |
| 395 | |
| 396 | Tue Sep 16 16:15:16 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 397 | |
| 398 | * sim-bits.c (LSSEXT, MSSEXT): Replace SEXT. |
| 399 | (LSINSERTED, MSINSERTED): Ditto for INSERTED. |
| 400 | |
| 401 | * sim-n-bits.h (MSSEXTn, LSSEXTn): Replace SEXTn. |
| 402 | (LSINSERTDn, MSINSERTEDN): Ditto for INSERTEDn. |
| 403 | |
| 404 | * sim-bits.h (SEXT*): Define as MSEXT/LSEXT. |
| 405 | (INSERTED*): Ditto for LSINSERTED/MSINSERTED. |
| 406 | |
| 407 | Mon Sep 15 17:36:15 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 408 | |
| 409 | * aclocal.m4 (SIM_AC_COMMON): Add optional config.h file argument. |
| 410 | configure.in: Output to cconfig.h instead of config.h. |
| 411 | |
| 412 | * configure: Regenerated to track ../common/aclocal.m4 changes. |
| 413 | |
| 414 | Mon Sep 15 15:39:28 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 415 | |
| 416 | * sim-utils.c (sim_analyze_program): Set STATE_ARCHITECTURE from |
| 417 | BFD if known. |
| 418 | |
| 419 | Tue Sep 9 21:46:46 1997 Felix Lee <flee@cygnus.com> |
| 420 | |
| 421 | * callback.c (os_write): divert stdout and stderr to their |
| 422 | respective hooks. |
| 423 | |
| 424 | Thu Sep 11 10:08:48 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 425 | |
| 426 | * sim-profile.c (profile_print_speed): Call |
| 427 | sim_events_elapsed_time instead of PROFILE_EXEC_TIME for moment. |
| 428 | |
| 429 | * sim-events.c (sim_events_elapsed_time): New function return nr |
| 430 | host MS consumed by the simulator. |
| 431 | (sim_watch_valid): Use. |
| 432 | |
| 433 | * sim-module.c (modules): Install sim_events very very early. |
| 434 | |
| 435 | * sim-profile.c (profile_print): Call profile_print_pc. |
| 436 | (print_bar): |
| 437 | (profile_pc_init): New function, set up processor for PC |
| 438 | profiling. |
| 439 | (profile_print_pc): New function, print a PC profile. |
| 440 | (profile_pc_event): New function, sample PC. |
| 441 | |
| 442 | * sim-profile.h (PROFILE_PC_COUNT, PROFILE_PC_START, |
| 443 | PROFILE_PC_END, PROFILE_PC_SHIFT, PROFILE_PC_SAMPLE_SIZE): Add to |
| 444 | profile struct. |
| 445 | |
| 446 | * sim-options.c (sim_print_help): Pacify GCC. |
| 447 | |
| 448 | * sim-n-core.h (sim_core_read_aligned_N, |
| 449 | sim_core_write_aligned_N): Add un-conditional profile call. |
| 450 | (sim_core_read_unaligned_N, sim_core_write_unaligned_N): Add |
| 451 | profile call when aligned read/write isn't used. |
| 452 | |
| 453 | * sim-base.h: Include sim-profile, sim-model after sim-core & |
| 454 | sim-events allow sim-core to define useful values. |
| 455 | |
| 456 | * sim-profile.c (OPTION_PROFILE_CORE): Define. |
| 457 | (profile_option_handler, profile_options): Add support for |
| 458 | --profile-core option. |
| 459 | (print_bar): Include when core profiling. |
| 460 | (profile_print_core): New function, print core profile. |
| 461 | |
| 462 | * sim-config.c (print_sim_config): Print profile status. |
| 463 | |
| 464 | * sim-profile.h (PROFILE_NEXT_IDX, PROFILE_core, |
| 465 | WITH_PROFILE_PC_P): Define. |
| 466 | (PROFILE_CORE_COUNT): Count each core-map/size separatly. |
| 467 | (PROFILE_COUNT_CORE): Define. |
| 468 | |
| 469 | Thu Sep 11 08:44:52 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 470 | |
| 471 | * sim-watch.c (handle_watchpoint): Pass a char** index into the |
| 472 | interrupt_names array as the data. |
| 473 | (sim-watch.h): Document. |
| 474 | |
| 475 | Wed Sep 10 16:15:22 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 476 | |
| 477 | * sim-options.c (sim_print_help): When the doc string is to long |
| 478 | word wrap it. |
| 479 | |
| 480 | * sim-watch.c (sim_watchpoint_install): Use option.doc_name so |
| 481 | that only the first few the watch options are listed. Generate |
| 482 | meanginful usage messages. |
| 483 | |
| 484 | * sim-options.h (struct OPTION): Clarify use of doc_name field |
| 485 | |
| 486 | Wed Sep 10 13:23:24 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 487 | |
| 488 | * sim-options.c (OPTION_ARCHITECTURE_INFO): New option. |
| 489 | (standard_option_handler): Handle --architecture-info. |
| 490 | |
| 491 | Tue Sep 9 21:46:46 1997 Felix Lee <flee@cygnus.com> |
| 492 | |
| 493 | * sim-core.h (sim_cpu_core): [WITH_XOR_ENDIAN + 1], to avoid |
| 494 | illegal zero-sized array. |
| 495 | * sim-core.c (sim_core_xor_read_buffer): same. |
| 496 | |
| 497 | Tue Sep 9 11:20:35 1997 Doug Evans <dje@canuck.cygnus.com> |
| 498 | |
| 499 | * nltvals.def: Regenerate. |
| 500 | |
| 501 | Tue Sep 9 02:10:36 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 502 | |
| 503 | * sim-fpu.c (DP_FRACHIGH2): Define LL using SIGNED64. |
| 504 | |
| 505 | Mon Sep 8 12:22:20 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 506 | |
| 507 | * sim-bits.c (MASKED): Delete. |
| 508 | (EXTRACTED): Delete. |
| 509 | (LSEXTRACTED, MSEXTRACTED): New functions. |
| 510 | |
| 511 | * sim-n-bits.h (MASKEDn): Delete, define as MSMASKED or LSMASKED. |
| 512 | (MSMASKEDn, LSMASKEDn): Add last argument. |
| 513 | (MSMASK*): Ditto. |
| 514 | |
| 515 | * sim-bits.h (EXTEND8, EXTEND16): Define. |
| 516 | (EXTRACTED64): Define as 64 bit extract, not 32 bit. |
| 517 | |
| 518 | * sim-run.c (sim_engine_run): Use CPU_CIA macro. |
| 519 | |
| 520 | * sim-engine.h (SIM_ENGINE_HALT_HOOK): Use CPU_CIA to get at |
| 521 | current instruction address. |
| 522 | |
| 523 | * sim-inline.h (*_ENGINE): Define. |
| 524 | |
| 525 | Fri Sep 5 08:39:02 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 526 | |
| 527 | * sim-core.c (sim_core_attach): Fix checks of modulo/mask. |
| 528 | |
| 529 | * sim-watch.c (delete_watchpoint): Delete by ident and type. |
| 530 | (watch_option_handler): Call delete_watchpoint with ident or type. |
| 531 | (sim_watchpoint_install): Create interrupt specific watchpoint |
| 532 | commands on the fly. |
| 533 | (do_watchpoint_create): New function, create a watch point using |
| 534 | type/int-nr info encoded in the option nr. |
| 535 | (do_watchpoint_info): New function. List active watchpoints. |
| 536 | |
| 537 | * sim-watch.h: Change data structure to a list. |
| 538 | |
| 539 | * sim-memopt.c (memory_option_handler): Require explicit "all" |
| 540 | before deleting all memory regions. |
| 541 | |
| 542 | * sim-utils.c (sim_do_commandf): New function, printf version of |
| 543 | sim_do_command. |
| 544 | |
| 545 | * sim-basics.h (asprintf, vasprintf): Hack, define for CYGWIN32. |
| 546 | |
| 547 | * sim-alu.h (ALU64_ADD): Use explicit MSEXTRACTED64, do not assume |
| 548 | bit endianness. |
| 549 | (SIGNED64, UNSIGNED64): Delete. |
| 550 | (ALU64_ADD): Don't rely on bit endianness. |
| 551 | (ALU64_BEGIN): Define. |
| 552 | |
| 553 | * sim-n-bits.h (MSEXTRACTEDn, LSEXTRACTED): New functions. |
| 554 | (EXTRACTEDn): Delete, define as either LSEXTRACTED or MSEXTRACTED. |
| 555 | |
| 556 | * sim-types.h (SIGNED64, UNSIGNED64): New macros, attach relevant |
| 557 | suffix - u64, LL - to 64 bit constants. |
| 558 | |
| 559 | Thu Sep 4 09:27:54 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 560 | |
| 561 | * sim-config.c (sim_config): Add assert for SIM_MAGIC_NUMBER. |
| 562 | |
| 563 | * sim-utils.h (NZALLOC): Define - zalloc * N. |
| 564 | |
| 565 | * sim-hrw.c (sim_read, sim_write): New file. Provide generic |
| 566 | implementation of read/write functions. |
| 567 | |
| 568 | * Make-common.in (sim-hrw.o): New target. |
| 569 | |
| 570 | * sim-base.h (STATE_MEMOPT_P): Delete, simulators _always_ add |
| 571 | memory. |
| 572 | |
| 573 | * sim-memopt.c (memory_option_handler): Implement memory-size |
| 574 | command. Implement memory-alias command. Let memory-delete delete |
| 575 | all memory regions. |
| 576 | (add_memopt): New function. Add a memory region. |
| 577 | (do_memopt_delete): New function. Delete a memory region. |
| 578 | |
| 579 | * sim-utils.c (sim_elapsed_time_get): Never return zero. |
| 580 | |
| 581 | * sim-core.c (sim_core_detach): New function. |
| 582 | (sim_core_map_detach): New function. Perform the actual detach. |
| 583 | (sim_core_init): Move initialization code from here. |
| 584 | (sim_core_install): To here. |
| 585 | (sim_core_uninstall): And here. |
| 586 | |
| 587 | * sim-module.c: Add memopt module. |
| 588 | |
| 589 | * sim-base.h (STATE_MEMOPT, STATE_MEMOPT_P): Add memopt to |
| 590 | simulator base type. |
| 591 | |
| 592 | * Make-common.in (sim_main_headers): Add sim-memopt.h |
| 593 | (sim-memopt.o): New target. |
| 594 | |
| 595 | * sim-core.c (sim_core_install): Add core_options to the option |
| 596 | table. |
| 597 | |
| 598 | * sim-watch.c (watch_options): Make --delete-watch a synonym for |
| 599 | --watch-delete. |
| 600 | |
| 601 | * sim-config.h (WITH_MODULO_MEMORY): Define as 0. Update |
| 602 | comments. |
| 603 | |
| 604 | * sim-core.h (struct _sim_core_mapping): Change nr_bytes to type |
| 605 | address_word, add mask member. |
| 606 | |
| 607 | * sim-core.h, sim-core.c (sim_core_attach): Make nr_bytes of type |
| 608 | address_word, allow for 64bit targets in 32bit host. Add modulo |
| 609 | argument. |
| 610 | (sim_core_map_attach): Ditto. |
| 611 | (new_sim_core_mapping): Ditto. |
| 612 | (sim_core_translate): Mask address when modulo memory. |
| 613 | |
| 614 | Wed Sep 3 17:32:54 1997 Doug Evans <dje@seba.cygnus.com> |
| 615 | |
| 616 | * sim-hload.c (sim_load): Add assert for SIM_MAGIC_NUMBER. |
| 617 | |
| 618 | * gdbinit.in: New file. |
| 619 | * aclocal.m4 (SIM_AC_OUTPUT): Build .gdbinit. |
| 620 | * Make-common.in (distclean): Delete .gdbinit. |
| 621 | (.gdbinit): Add rule for. |
| 622 | * configure: Regenerated to track ../common/aclocal.m4 changes. |
| 623 | |
| 624 | * Make-common.in (cgen-run.o): Add rule for. |
| 625 | |
| 626 | Wed Sep 3 10:08:21 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 627 | |
| 628 | * sim-resume.c (sim_resume): Suspend/resume the simulator. |
| 629 | |
| 630 | * sim-events.c (sim_watch_valid): Compute total elapsed time from |
| 631 | both resumed and previous elapsed time. |
| 632 | (sim_events_init): Set initial_wallclock and current_wallclock to |
| 633 | zero. |
| 634 | (sim_events_install): Install sim_events_suspend and |
| 635 | sim_events_resume. |
| 636 | (sim_events_watch_clock): Allow for suspended simulator when |
| 637 | computing the time of the clock event. |
| 638 | |
| 639 | * sim-events.h (struct _sim_event): Add resume_wallclock, rename |
| 640 | initial_wallclock to elapsed_wallclock, set both to zero. |
| 641 | (sim_events_init, sim_events_uninstall): Delete prototypes. |
| 642 | |
| 643 | * sim-module.h (MODULE_SUSPEND_FN, MODULE_RESUME_FN): Define types. |
| 644 | |
| 645 | * sim-module.c(sim_module_resume, sim_module_suspend): New |
| 646 | functions. |
| 647 | |
| 648 | Wed Sep 3 10:08:21 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 649 | |
| 650 | * sim-core.c (sim_core_map_attach): Clarify memory overlap error |
| 651 | message. |
| 652 | |
| 653 | Tue Sep 2 14:57:06 1997 Doug Evans <dje@canuck.cygnus.com> |
| 654 | |
| 655 | * Makefile.in (TAGS): Add support for "/* TAGS: foo */" marker. |
| 656 | * Make-common.in (TAGS): Likewise. |
| 657 | * sim-n-bits.h: Add TAGS comments for all functions. |
| 658 | * sim-n-core.h: Likewise. |
| 659 | * sim-n-endian.h: Likewise. |
| 660 | |
| 661 | Mon Sep 1 10:50:11 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 662 | |
| 663 | * sim-utils.c (sim_state_alloc): Set CPU backlinks, callback and |
| 664 | kind. |
| 665 | |
| 666 | * sim-base.h (sim_state_alloc): Add callback and kind arguments. |
| 667 | |
| 668 | * sim-base.h (INVALID_INSTRUCTION_ADDRESS): Add default |
| 669 | definition. |
| 670 | |
| 671 | Sat Aug 30 09:47:21 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 672 | |
| 673 | * sim-fpu.c (DP_GARDMSB, ...): Make unsigned. |
| 674 | (DP_FRACHIGH, DP_FRACHIGH2, ..): Use MSMASK to avoid LL. |
| 675 | |
| 676 | Fri Aug 29 13:37:44 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 677 | |
| 678 | * sim-core.c (sim_core_map_attach): Cast attach enum to int. |
| 679 | (sim_core_xor_read_buffer, sim_core_xor_write_buffer): Make |
| 680 | nr_transfered and nr_this_transfer unsigned. |
| 681 | |
| 682 | * sim-events.c (sim_events_tickn): N is signed, as limited to |
| 683 | MAXINT. |
| 684 | |
| 685 | * sim-n-endian.h (offset_N): Change size to unsigned. |
| 686 | |
| 687 | * callback.c (os_poll_quit): Add prototypes for kbhit and getkey. |
| 688 | |
| 689 | Fri Aug 29 10:10:53 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 690 | |
| 691 | * sim-utils.c (sim_copy_argv): Delete, replaced by dupargv. |
| 692 | |
| 693 | * sim-options.c (sim_parse_args): Use dupargv. |
| 694 | |
| 695 | Thu Aug 28 10:36:34 1997 Doug Evans <dje@canuck.cygnus.com> |
| 696 | |
| 697 | * sim-options.c (standard_option_handler): Use xstrdup, not strdup. |
| 698 | |
| 699 | Thu Aug 28 12:09:15 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 700 | |
| 701 | * sim-base.h (STATE_ARCHITECTURE, STATE_TARGET): Add to simulator |
| 702 | base type. |
| 703 | |
| 704 | * sim-options.c (standard_options): Add --architecture=MACHINE and |
| 705 | --target=TARGET options. |
| 706 | (OPTION_ARCHITECTURE, OPTION_TARGET): Define. |
| 707 | (standard_option_handler): Handle architecture and target options. |
| 708 | (bfd.h): Include. |
| 709 | |
| 710 | * sim-utils.c (sim_analyze_program): Pass STATE_TARGET to |
| 711 | bfd_openr. |
| 712 | (sim_analyze_program): Set prog_bfd architecture from |
| 713 | STATE_ARCHITECTURE if known. |
| 714 | |
| 715 | Wed Aug 27 18:13:22 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 716 | |
| 717 | * configure: Regenerated to track ../common/aclocal.m4 changes. |
| 718 | * config.in: Ditto. |
| 719 | |
| 720 | Wed Aug 27 18:11:30 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 721 | |
| 722 | * aclocal.m4 (enable-sim-warnings): Remove comment stating |
| 723 | that option does not apply to certain files. |
| 724 | |
| 725 | Wed Aug 27 15:13:04 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 726 | |
| 727 | * sim-bits.h (LSBIT8, LSBIT16, LSBIT32, LSBIT64, LSBIT, MSBIT8, |
| 728 | MSBIT16, MSBIT32, MSBIT64, MSBIT): New macros - single bit as |
| 729 | offset from MSB/LSB. |
| 730 | |
| 731 | * sim-endian.h (A1_8, A2_8, A4_8, A1_4, A2_4, A1_2): New macro, |
| 732 | access address of sub word quantity of a hosts 16, 32, 64 bit word |
| 733 | type. |
| 734 | (V1_2, V1_4, V2_4, V1_8, V2_8, V4_8): Ditto for values. |
| 735 | (U8_1, U8_2, U8_4, U4_1, U4_2, U2_1): Ditto for set of values. |
| 736 | (V2_H1, V2_L1, V4_H2, V4_L2, V8_L4, V8_H4): Given N byte argument, |
| 737 | return N*2 byte value with argument in Hi/Lo word. Renamed from |
| 738 | V1_H2, V1_L2, V2_H4, V2_L4, V4_H8, V4_L8. |
| 739 | |
| 740 | * sim-alu.h (ALU32_HAD_OVERFLOW): Use 64 bit mask not 32bit. |
| 741 | (ALU16_HAD_CARRY, ALU32_HAD_CARRY, ALU16_HAD_OVERFLOW): Use MSBIT |
| 742 | so that bit offset is explicit. |
| 743 | |
| 744 | Wed Aug 27 11:55:35 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 745 | |
| 746 | * sim-utils.c (sim_analyze_program): Add prog_name argument. |
| 747 | Update STATE_PROG_BFD when needed with a dup'd copy of the |
| 748 | program. |
| 749 | |
| 750 | * sim-config.c (sim_config): Delete ABFD argument, use |
| 751 | STATE_PROG_BFD directly. |
| 752 | |
| 753 | Tue Aug 26 12:55:26 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 754 | |
| 755 | * run.c (main): Pass the open ABFD to sim_create_inferior. |
| 756 | |
| 757 | * nrun.c (main): Determine prog_bfd. Pass to sim_create_inferior |
| 758 | and sim_load. |
| 759 | (bfd.h): Include. |
| 760 | |
| 761 | * sim-hload.c (sim_load): New file. Implement generic sim_load for |
| 762 | hardware only simulator targets. |
| 763 | |
| 764 | * Make-common.in (sim-hload.o): Add rule. |
| 765 | |
| 766 | Wed Aug 27 09:51:42 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 767 | |
| 768 | * sim-utils.c (sim_copy_argv): Rewrite to match malloc strategy |
| 769 | used by copyargv and freeargv. |
| 770 | |
| 771 | * sim-options.c (sim_parse_args): Save a copy of PROG-ARGS in |
| 772 | STATE_PROG_ARGV, not just a pointer. |
| 773 | |
| 774 | Mon Aug 25 17:50:22 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 775 | |
| 776 | * configure: Regenerated to track ../common/aclocal.m4 changes. |
| 777 | * config.in: Ditto. |
| 778 | |
| 779 | Mon Aug 25 12:11:06 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 780 | |
| 781 | * aclocal.m4 (sim-endian): Add second argument to |
| 782 | SIM_AC_OPTION_ENDIAN. First is hardwired endian, second is |
| 783 | default endian when not hardwired. |
| 784 | |
| 785 | * sim-config.h (WITH_DEFAULT_TARGET_BYTE_ORDER): New macro, if all |
| 786 | else failes value for target byte order. |
| 787 | |
| 788 | * sim-config.c (sim_config): Add abfd arguments. Set |
| 789 | STATE_PROG_BFD accordingly. Determine prefered_target_byte_order |
| 790 | from same. |
| 791 | (sim_config): Return SIM_RC, don't abort. |
| 792 | (bfd.h): Include. |
| 793 | |
| 794 | * run.c (main): Update call to sim_open - add ABFD argument. |
| 795 | * nrun.c (main): Add NULL ABFD argument. |
| 796 | |
| 797 | Thu Aug 14 12:48:57 1997 Doug Evans <dje@canuck.cygnus.com> |
| 798 | |
| 799 | * callback.c (os_poll_quit): Make static. |
| 800 | Call sim_cb_eprintf, not p->eprintf. |
| 801 | (sim_cb_printf, sim_cb_eprintf): New functions. |
| 802 | * sim-utils.h (sim_cb_printf, sim_cb_eprintf): Declare. |
| 803 | |
| 804 | * sim-basics.h (zalloc,zfree,sim_add_commas,SIM_ELAPSED_TIME, |
| 805 | sim_elapsed_time_get,sim_elapsed_time_since): Move decls to |
| 806 | sim-utils.h. #include sim-utils.h. |
| 807 | * sim-utils.h: Above decls moved here. |
| 808 | (sim_analyze_program,sim_load_file): Use `struct _bfd', not `bfd'. |
| 809 | |
| 810 | * sim-watch.c (action_watchpoint): Fix thinkos. |
| 811 | |
| 812 | Thu Jul 24 08:48:05 1997 Stu Grossman (grossman@critters.cygnus.com) |
| 813 | |
| 814 | * sim-types.h: Fix defs of 64 bit data types for MSVC. |
| 815 | |
| 816 | Tue Jul 22 10:35:37 1997 Doug Evans <dje@canuck.cygnus.com> |
| 817 | |
| 818 | * sim-n-core.h (sim_core_write_unaligned_N): Add missing break |
| 819 | to FORCED_ALIGNMENT case. |
| 820 | |
| 821 | Thu Jun 5 13:48:37 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 822 | |
| 823 | * callback.c (target_to_host_open): Handle hosts with O_BINARY. |
| 824 | |
| 825 | Thu Jun 5 08:47:10 1997 Jeffrey A Law (law@cygnus.com) |
| 826 | |
| 827 | * Make-common.in (libsim.a): Fix typo. |
| 828 | |
| 829 | Thu Jun 5 13:48:37 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 830 | |
| 831 | * nrun.c (main): Verify the structure returned before using it. |
| 832 | |
| 833 | Wed Jun 4 11:44:06 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 834 | |
| 835 | * sim-config.h (WITH_ENGINE): Enable the sim-engine module by |
| 836 | default. |
| 837 | |
| 838 | * sim-engine.c (sim_engine_install): New function. Install the |
| 839 | engine init functions. |
| 840 | (sim_engine_init): [Re]initialize the simulator engine. |
| 841 | |
| 842 | * sim-module.c: Add sim_engine to list of modules that always |
| 843 | install. |
| 844 | |
| 845 | Tue Jun 3 04:52:04 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 846 | |
| 847 | * sim-watch.c (schedule_watchpoint): Use sim_unschedule_watchpoint |
| 848 | to remove the old watchpoint, not delete_watchpoint. |
| 849 | (watch_option_handler): Action the correct watchpoint, not just |
| 850 | cycles. |
| 851 | |
| 852 | Wed May 28 14:47:41 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 853 | |
| 854 | * sim-n-core.h (sim_core_write_aligned_N): For 8byte reads, output |
| 855 | both low and high word. |
| 856 | (sim_core_write_aligned_N): Ditto. |
| 857 | |
| 858 | * sim-trace.c (set_trace_options): Delete code explicitly setting |
| 859 | core->trace. |
| 860 | |
| 861 | * sim-options.c (sim_print_help): Call the list commands if not a |
| 862 | standalone simulator. |
| 863 | (sim_print_help): Advise that some options may not be applicable. |
| 864 | |
| 865 | * sim-trace.c (set_trace_options): Assume core present. |
| 866 | |
| 867 | * sim-events.c (sim_events_schedule_after_signal): Overflow signal |
| 868 | buffer when full not almost full. |
| 869 | |
| 870 | Tue May 27 14:32:00 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 871 | |
| 872 | * sim-events.c (sim_events_process): Don't blat the event queue |
| 873 | when processing watchpoints. |
| 874 | |
| 875 | * sim-watch.h: Make arg unsigned long - stop sign extension. |
| 876 | |
| 877 | * sim-events.c (sim_watch_valid): rewrite so debugable. |
| 878 | |
| 879 | * sim-config.h (WITH_XOR_ENDIAN): Default to zero. |
| 880 | |
| 881 | * sim-watch.c (schedule_watchpoint): Add is_within option so that |
| 882 | inequality test is possible. |
| 883 | (handle_watchpoint): Re-pass is_within arg. |
| 884 | (watch_option_handler): When `!' prefix to pc-watchpoint arg pass |
| 885 | 0 to schedule_watchpoint's is_within arg. |
| 886 | (sim_watchpoint_init): Re-pass is_within arg. |
| 887 | |
| 888 | * sim-options.c (sim_print_help): Add is_command argument. Don't |
| 889 | include -- prefix when called from the command line interpreter. |
| 890 | |
| 891 | * sim-watch.c (schedule_watchpoint): Pass true is_within argument. |
| 892 | |
| 893 | * sim-events.c (sim_events_watch_sim): Add is_within argument, |
| 894 | zero indicates that the test should be reversed. |
| 895 | (sim_events_watch_core): Ditto. |
| 896 | (WATCH_CORE): Compare range against is_within. |
| 897 | (WATCH_SIM): Ditto. |
| 898 | |
| 899 | Tue May 27 12:48:03 1997 Andrew Cagney <cagney@b2.cygnus.com> |
| 900 | |
| 901 | * sim-events.c (WATCH_CORE): Pass NULL cpu argument to |
| 902 | sim_core_read_buffer. Check nr-bytes transfered. |
| 903 | |
| 904 | * sim-core.h (sim_core_common): Define a new struct that contains |
| 905 | the common data. to sd and cpu structures. |
| 906 | * sim-core.c (sim_core_attach): Update. |
| 907 | (sim_core_init): Update. Remember to copy initialized data to each |
| 908 | cpu. |
| 909 | (sim_core_find_mapping): Ditto. |
| 910 | |
| 911 | * sim-core.c (sim_core_read_buffer): Add cpu argument. |
| 912 | (sim_core_write_buffer): Ditto. |
| 913 | |
| 914 | * sim-n-core.h (sim_core_read_unaligned_N): When mis-aligned |
| 915 | transfer use xor version of read buffer. |
| 916 | (sim_core_write_unaligned_N): Ditto for write. |
| 917 | |
| 918 | * sim-core.c (sim_core_xor_read_buffer): New function implement |
| 919 | xor-endian data read breaking transfer up into xor-endian sized |
| 920 | blocks. |
| 921 | (sim_core_xor_write_buffer): Ditto for write. |
| 922 | (reverse_n): Reverse order of arbitrary number of bytes in buffer |
| 923 | - needed for xor-endian transfers. |
| 924 | |
| 925 | Fri May 23 14:24:31 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 926 | |
| 927 | * sim-inline.h: Review description. |
| 928 | |
| 929 | * sim-core.h, sim-core.c: Reduce number of functions being inlined |
| 930 | to just those involved in data transfers and configuration. |
| 931 | |
| 932 | * sim-xcat.h (XSTRING): New macro, map macro definition onto |
| 933 | string. |
| 934 | * sim-n-core.h (sim_core_read_aligned_N): Use. |
| 935 | (sim_core_read_unaligned_N): Ditto. |
| 936 | (sim_core_read_unaligned_N): Ditto.. |
| 937 | (sim_core_write_unaligned_N): Ditto. |
| 938 | |
| 939 | * sim-core.h: Add xor endian bitmap to main structure. * |
| 940 | |
| 941 | sim-n-core.h (sim_core_write_aligned_N): Add suport for xor |
| 942 | endian. |
| 943 | (sim_core_read_aligned_N): Ditto. |
| 944 | |
| 945 | * sim-core.c (sim_core_set_xor_endian): New function. |
| 946 | (sim_core_attach): Don't overwrite the per-cpu xor map when |
| 947 | cloning the global core. |
| 948 | |
| 949 | Fri May 23 10:53:13 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 950 | |
| 951 | * sim-engine.h: Update below so that it is using an enumerated |
| 952 | type. |
| 953 | |
| 954 | Thu May 22 09:12:16 1997 Gavin Koch <gavin@cygnus.com> |
| 955 | |
| 956 | * sim-engine.c (sim_engine_restart): |
| 957 | * sim-resume.c (sim_resume): Change longjmp param/setjmp |
| 958 | return value used for simulator restart from 0 to 2. |
| 959 | |
| 960 | Wed May 21 08:47:30 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 961 | |
| 962 | * cgen-scache.c (scache_option_handler): Add is_command arg. |
| 963 | |
| 964 | * sim-model.c (model_option_handler): Add is_command argument. |
| 965 | |
| 966 | * sim-profile.c (profile_option_handler): Add is_command arg. |
| 967 | |
| 968 | * sim-events.c (sim_watch_valid): Use ub64, lb64 when 64bit value |
| 969 | involved. |
| 970 | |
| 971 | * sim-module.c (sim_module_add_init_fn): Call init fn in the same |
| 972 | order that they are registered. |
| 973 | |
| 974 | * sim-options.h (OPTION_HANDLER): Add argument to differentiate |
| 975 | between option and command line processing. |
| 976 | |
| 977 | * sim-options.c: Include stdlib.h, ctype.h. |
| 978 | |
| 979 | * Make-common.in (sim-watch.o): Add rule. |
| 980 | (sim_main_headers): Assume sim-assert.h included. |
| 981 | (sim-*.o): Simplify make rule. |
| 982 | |
| 983 | * sim-module.c: Add sim_watch_install to module list. |
| 984 | |
| 985 | Tue May 20 14:15:23 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 986 | |
| 987 | * sim-base.h (STATE_LOADED_P): New predicate. Set once everything |
| 988 | has been loaded. |
| 989 | |
| 990 | * sim-trace.c (trace_install): Check magic. Include sim-assert.h. |
| 991 | * sim-events.c (sim_events_install): Ditto. |
| 992 | * sim-core.c (sim_core_install): Ditto. |
| 993 | * sim-model.c (model_install): Ditto. |
| 994 | * sim-options.c (standard_install): Ditto. |
| 995 | * sim-profile.c (profile_install): Ditto. |
| 996 | * sim-reason.c (sim_stop_reason): Ditto. |
| 997 | * sim-run.c (sim_engine_run): Ditto. |
| 998 | * sim-utils.c (sim_analyze_program): Ditto. |
| 999 | |
| 1000 | * sim-module.c (modules): Make profile_install and trace_install |
| 1001 | optional. |
| 1002 | |
| 1003 | * sim-base.h (STATE_MEM_BASE): Define for flat memory systems. |
| 1004 | |
| 1005 | * sim-options.c (standard_option_handler): Set the byte order. |
| 1006 | |
| 1007 | * sim-events.c (sim_events_process): Allow multi tick processing. |
| 1008 | (sim_events_tickn): New function - multi cycle tick. |
| 1009 | |
| 1010 | * sim-events.h (sim_events_tickn, sim_events_timewarp): Add |
| 1011 | prototypes. Under development. |
| 1012 | (sim_events): Replace processing with nr_ticks_to_process. |
| 1013 | |
| 1014 | Tue May 20 09:39:22 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1015 | |
| 1016 | * nrun.c (main): Pass callbacks to sim_open instead of using |
| 1017 | sim_set_callbacks. |
| 1018 | |
| 1019 | * run.c (main): Ditto. |
| 1020 | |
| 1021 | Mon May 19 12:07:22 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1022 | |
| 1023 | * sim-events.c (sim_events_zalloc): Signal save memory allocator - |
| 1024 | stop tk interrupting malloc calls. |
| 1025 | (sim_events_zalloc): Converse. |
| 1026 | |
| 1027 | * Make-common.in (sim_main_headers): Add sim-events.h. |
| 1028 | |
| 1029 | * sim-events.c (sim_events_schedule_after_signal): Change return |
| 1030 | type to void - signal events are strictly internal. |
| 1031 | (sim_events_init): Allocate a finite buffer for signal events. |
| 1032 | (sim_events_schedule_after_signal): Enter signal events into the |
| 1033 | signal buffer. |
| 1034 | |
| 1035 | * sim-engine.c (sim_engine_halt): Check SIM_DESC magic. |
| 1036 | (sim_engine_restart): Ditto. |
| 1037 | (sim_engine_abort): Ditto. |
| 1038 | * sim-stop.c (sim_stop): Ditto. |
| 1039 | (control_c_simulation): Ditto. |
| 1040 | * sim-resume.c (sim_resume): Ditto. |
| 1041 | (has_stepped): Ditto. |
| 1042 | * sim-abort.c (sim_engine_abort): Ditto. |
| 1043 | |
| 1044 | * sim-basics.h (transfer_type): New type. |
| 1045 | |
| 1046 | * sim-core.c (sim_core_signal): New function. Print core signal |
| 1047 | information. |
| 1048 | (sim_core_find_mapping): Add transfer argument. |
| 1049 | |
| 1050 | * sim-n-core.h (sim_core_{write,write}_unaligned_N): Call |
| 1051 | SIM_CORE_SIGNAL if a recoverable abort. |
| 1052 | * sim-core.c (sim_core_find_mapping): Ditto. |
| 1053 | |
| 1054 | Fri May 16 15:13:21 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1055 | |
| 1056 | * sim-core.c (sim_core_find_mapping): Replace calls to |
| 1057 | sim_io_error to more resiliant sim_engine_abort. |
| 1058 | |
| 1059 | * sim-n-core.h (sim_core_read_unaligned_N): Ditto. |
| 1060 | (sim_core_write_unaligned_N): Ditto. |
| 1061 | |
| 1062 | Tue May 13 13:50:06 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1063 | |
| 1064 | * sim-module.c: Add sim_events_install to list. |
| 1065 | |
| 1066 | * sim-events.c (sim_events_install, sim_events_uninstall): Clonse |
| 1067 | from sim_core_*. |
| 1068 | (sim_events_init): Now returns SIG_RC. |
| 1069 | |
| 1070 | * sim-run.c: New file. Generic sim_engine_run. |
| 1071 | * sim-reason.c: New file. Generic sim_stop_reason. |
| 1072 | * sim-stop.c: New file. Generic sim_stop. |
| 1073 | * sim-resume.c: New file. Generic sim_resume. |
| 1074 | |
| 1075 | * Make-common.in (sim-engine.o): Add rule. |
| 1076 | (sim-run.o, sim-reason.o, sim-stop.o, sim-resume.o): Ditto. |
| 1077 | |
| 1078 | * sim-engine.h, sim-engine.c: New file. Provide generic |
| 1079 | implementation of sim_engine_halt, sim_engine_error. et.al. |
| 1080 | |
| 1081 | * sim-base.h (sim_state_base): Add member halt. |
| 1082 | (sim-engine.h): Include. |
| 1083 | |
| 1084 | * sim-events.h (sim_event_handler): Always pass SIM_DESC to event |
| 1085 | handlers. |
| 1086 | * sim-events.c (sim_events_poll): Update event handler. |
| 1087 | |
| 1088 | Tue May 13 09:57:49 1997 Andrew Cagney <cagney@b2.cygnus.com> |
| 1089 | |
| 1090 | * sim-events.h, sim-events.c (sim_events_watch_clock): New |
| 1091 | function. |
| 1092 | (sim_events_watch_sim): New function. |
| 1093 | (sim_events_watch_core): New function. |
| 1094 | (sim_watch_valid): New function. |
| 1095 | (sim_events_preprocess): New function. |
| 1096 | (sim_events_process): Process the watchpoints as well as the timer |
| 1097 | queue. |
| 1098 | (sim_events_tick): Check WORK_PENDING instead of the hold queue. |
| 1099 | (sim_events_deschedule): Check all the queues when removing an |
| 1100 | event. |
| 1101 | (sim_events_init): Ditto for cleaning. |
| 1102 | |
| 1103 | Mon May 19 12:07:22 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1104 | |
| 1105 | * sim-fpu.c (is_ufpu_number): Comment out - currently unused. |
| 1106 | |
| 1107 | Mon May 19 11:23:03 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1108 | |
| 1109 | * callback.c (os_open): Type of arg flags is int. |
| 1110 | |
| 1111 | Fri May 16 22:26:43 1997 Michael Meissner <meissner@cygnus.com> |
| 1112 | |
| 1113 | * sim-fpu.c (sim_fpu_is_{eq,ne,lt,le,gt,ge}): Compare Infinities |
| 1114 | just like normal numbers as per IEEE rules. |
| 1115 | |
| 1116 | Wed May 14 21:20:38 1997 Bob Manson <manson@charmed.cygnus.com> |
| 1117 | |
| 1118 | * callback.c (os_close): Mark the descriptor as being |
| 1119 | available if the close succeeded. |
| 1120 | (os_open): Pass 0644 as the mode of the file being created. |
| 1121 | |
| 1122 | Thu May 15 10:58:52 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1123 | |
| 1124 | * sim-fpu.c (pack_fpu, unpack_fpu): New functions - decode a |
| 1125 | float. |
| 1126 | |
| 1127 | * sim-inline.c (SIM_INLINE_C): Rename from _SIM_INLINE_C_. |
| 1128 | * sim-lnline.h: Update. |
| 1129 | |
| 1130 | * sim-fpu.h, sim-fpu.c (sim_fpu_[iu]{32,64}to): New int2fp |
| 1131 | conversion functions. |
| 1132 | (sim_fpu_to{32,64}[iu]): New fp2int functions. |
| 1133 | |
| 1134 | * sim-fpu.h, sim-fpu.c (sim_fpu_is_{lt,le,eq,ne,ge,gt}): New fp |
| 1135 | compare functions. Replacing. |
| 1136 | (sim_fpu_cmp): This. Delete. |
| 1137 | |
| 1138 | Mon May 12 14:49:05 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1139 | |
| 1140 | * sim-core.c (sim_core_find_mapping): Call engine_error not |
| 1141 | sim_io_error when possible. |
| 1142 | |
| 1143 | Mon May 12 08:55:07 1997 Andrew Cagney <cagney@b2.cygnus.com> |
| 1144 | |
| 1145 | * sim-endian.h (V1_H2): Add macro's to insert a word into a |
| 1146 | high/low double word. |
| 1147 | |
| 1148 | * sim-trace.h: Remove definition of attribute - defined in |
| 1149 | sim_basics.h. |
| 1150 | |
| 1151 | Mon May 12 08:55:07 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1152 | |
| 1153 | * sim-options.h (struct OPTION): Add doc_opt as the documenting |
| 1154 | name of the option - or family of options. |
| 1155 | |
| 1156 | * sim-options.c (sim_args_command): Match command `a-b c' with |
| 1157 | option `--a-b-c' from option table. |
| 1158 | |
| 1159 | Thu May 8 12:40:07 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1160 | |
| 1161 | * sim-options.c (sim_print_help): For optional arguments, wrap |
| 1162 | them in []. |
| 1163 | |
| 1164 | * sim-trace.c (set_trace_options): New function, handle optional |
| 1165 | argument and multiple assignment. |
| 1166 | (trace_option_handler): Update. |
| 1167 | |
| 1168 | * sim-trace.c (trace_option_handler): Trace branch and not fpu |
| 1169 | when branch tracing selected. |
| 1170 | |
| 1171 | Wed May 7 15:19:58 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1172 | |
| 1173 | * sim-trace.c (trace_one_insn): Make a va-args function. |
| 1174 | |
| 1175 | * sim-trace.c (trace_vprintf): New function, va-arg version of |
| 1176 | trace_printf. |
| 1177 | |
| 1178 | Tue May 6 16:38:16 1997 Doug Evans <dje@canuck.cygnus.com> |
| 1179 | |
| 1180 | * sim-trace.c (trace_uninstall): Don't close a file twice. |
| 1181 | * sim-profile.c (profile_uninstall): Likewise. |
| 1182 | |
| 1183 | Tue May 6 06:14:01 1997 Mike Meissner <meissner@cygnus.com> |
| 1184 | |
| 1185 | * sim-trace.c (toplevel): Include bfd.h. |
| 1186 | (trace_options): Note that --trace-linenum also turns on |
| 1187 | --trace-insn. Add --trace-{branch,semantics}. |
| 1188 | (trace_option_handler): If --trace-linenum, also turn on |
| 1189 | --trace-insn. Add --trace-branch support. If --trace-semantics, |
| 1190 | turn on ALU, FPU, branch, and memory tracing. |
| 1191 | (trace_one_insn): New function to trace an instruction. Support |
| 1192 | --trace-linenum. |
| 1193 | (OPTION_TRACE_*): Use an enum, rather than lots of defines. |
| 1194 | |
| 1195 | * sim-trace.h (TRACE_{SEMANTICS,BRANCH}_IDX): Add new macros. |
| 1196 | (MAX_TRACE_VALUES): Use 32, not 12 by default. |
| 1197 | (TRACE_branch): Add new mask. |
| 1198 | (TRACE_*_P): Define all possible trace_p macros. |
| 1199 | (trace_one_insn): Declare function. |
| 1200 | |
| 1201 | Mon May 5 14:08:34 1997 Mike Meissner <meissner@cygnus.com> |
| 1202 | |
| 1203 | * sim-trace.h (__attribute__): Define as nothing if not GNU C or |
| 1204 | GNU C doesn't support __attributes__. |
| 1205 | ({trace,debug}_printf): Add attribute's so -Wformat can check the |
| 1206 | format strings. |
| 1207 | |
| 1208 | Mon May 5 11:16:12 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1209 | |
| 1210 | * sim-config.h (FORCED_ALIGNMENT): New alignment option - |
| 1211 | addresses are masked forcing them to be correctly aligned. |
| 1212 | (WITH_ALIGNMENT): Make NONSTRICT_ALIGNMENT the default. |
| 1213 | * sim-config.c (config_alignment_to_a): Update. |
| 1214 | |
| 1215 | * sim-core.h (sim_cpu_core): New data type contains cpu specific |
| 1216 | core data. |
| 1217 | * sim-base.h (CPU_CORE): Add cpu specific core data to cpu base |
| 1218 | type. |
| 1219 | * sim-core.c (sim_core_attach): Add CPU argument. Ready for |
| 1220 | processor specific core maps. |
| 1221 | (sim_core_map_attach): Copy the core map data to each of the |
| 1222 | processor specific core data structures. |
| 1223 | * sim-core.c (sim_core_find_mapping): Update. |
| 1224 | |
| 1225 | * sim-n-core.h (sim_core_read_N, sim_core_write_N): Rename. |
| 1226 | (sim_core_write_aligned_N, sim_core_write_aligned_N): New names. |
| 1227 | (sim_core_write_unaligned_N, sim_core_write_unaligned_N): New |
| 1228 | alternatives that handle unaligned addresses. |
| 1229 | (sim_core_{read,write}_{,un}aligned_N): Drop SIM_DESC arg, replace |
| 1230 | with just CPU arg. |
| 1231 | * cgen-utils.c (sim_disassemble_insn): Update. |
| 1232 | |
| 1233 | Mon May 5 13:19:16 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1234 | |
| 1235 | * sim-trace.h (TRACE_FPU_IDX): Add Floating-point specific |
| 1236 | tracing. |
| 1237 | |
| 1238 | * sim-fpu.h, sim-fpu.c: New files - prototype for generic target |
| 1239 | fpu support. |
| 1240 | |
| 1241 | * sim-inline.h, sim-inline.c: Add support for SIM_FPU. |
| 1242 | |
| 1243 | Fri May 2 17:59:42 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1244 | |
| 1245 | * sim-core.c (sim_core_map_to_str): New function ascii equivalent |
| 1246 | to map type. |
| 1247 | |
| 1248 | * sim-n-core.h (sim_core_read_N, sim_core_write_N): Use in trace |
| 1249 | statement. |
| 1250 | |
| 1251 | Fri May 2 17:28:02 1997 Andrew Cagney <cagney@b2.cygnus.com> |
| 1252 | |
| 1253 | * cgen-trace.c: Prepend additional trace_printf argument. |
| 1254 | |
| 1255 | * cgen-utils.c (sim_disassemble_insn): Add additional core |
| 1256 | arguments. |
| 1257 | |
| 1258 | Fri May 2 11:40:23 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1259 | |
| 1260 | * nrun.c (main): Catch/report errorenous simulator states. |
| 1261 | |
| 1262 | * sim-module.c: #include "libiberty.h" so that xmalloc is defined. |
| 1263 | * sim-trace.c: #include string.h/strings.h so that memset is |
| 1264 | defined. |
| 1265 | * sim-utils.c: Ditto. |
| 1266 | * sim-profile.c: Ditto. And stdlib.h. |
| 1267 | (print_bar): Only define when used by instruction or memory profiler. |
| 1268 | |
| 1269 | * sim-options.c (standard_option_handler): Make ul more local. |
| 1270 | |
| 1271 | * sim-load.c (sim_load_file): Make the name constant. |
| 1272 | (sim_load_file): Passify gcc. |
| 1273 | |
| 1274 | * sim-utils.h: New file, pre-declare utilites in corresponding .c |
| 1275 | file. |
| 1276 | * sim-utils.c, sim-load.c: Include sim-utils.h. |
| 1277 | |
| 1278 | * sim-base.h (sim_cpu): Pre define here so available to all. |
| 1279 | |
| 1280 | * sim-core.h (DECLARE_SIM_CORE_WRITE_N, DECLARE_SIM_CORE_READ_N): |
| 1281 | Restore the sim_cpu and instruction_address arguments so that full |
| 1282 | information is available to the abort function. |
| 1283 | * sim-core.c (sim_core_find_mapping, sim_core_write_buffer): Ditto. |
| 1284 | * sim-n-core.h (sim_core_write_N, sim_core_read_N): Update. |
| 1285 | |
| 1286 | * sim-trace.h, sim-trace.c (trace_option_handler): Add interim |
| 1287 | tracing support for sim-events and sim-core. |
| 1288 | (trace_option_handler): Convert #if to if where possible so always |
| 1289 | compiled/checked by C compiler. |
| 1290 | * sim-n-core.h (sim_core_write_N, sim_core_read_N): Update. |
| 1291 | |
| 1292 | * sim-base.h: Adjust comment documenting how to define the cpu |
| 1293 | structure. |
| 1294 | (sim_state_base): Add sim_core and sim_events to simulator base |
| 1295 | object. |
| 1296 | |
| 1297 | * sim-trace.h, sim-trace.c (trace_printf): Add SIM_DESC argument. |
| 1298 | * sim-core.c (sim_core_init, sim_core_attach, |
| 1299 | sim_core_find_mapping): Update. |
| 1300 | * sim-events.c (ETRACE, sim_events_init, sim_events_time, |
| 1301 | update_time_from_event, insert_sim_event, |
| 1302 | sim_events_schedule_after_signal, sim_events_deschedule, |
| 1303 | sim_events_tick): Ditto. |
| 1304 | |
| 1305 | * sim-basics.h (sim-module.h, sim-trace.h, sim-profile.h, |
| 1306 | sim-model.h): Move #includes from here. |
| 1307 | * sim-base.h: To here. |
| 1308 | (sim-core.h, sim-events.h, sim-io.h): Include also |
| 1309 | |
| 1310 | Wed Apr 30 15:37:54 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1311 | |
| 1312 | * callback.c (default_callback): Missing initialisers. |
| 1313 | |
| 1314 | Thu May 1 10:40:47 1997 Doug Evans <dje@canuck.cygnus.com> |
| 1315 | |
| 1316 | * sim-utils.c (sim_add_commas): New function. |
| 1317 | * sim-basics.h (sim_add_commas): Add prototype. |
| 1318 | * cgen-scache.c (scache_print_profile): Print commas in numbers. |
| 1319 | * sim-profile.c (COMMAS): New macro. |
| 1320 | (print_*): Use it to print commas in numbers. |
| 1321 | |
| 1322 | * configure: Regenerated. |
| 1323 | |
| 1324 | * cgen-sim.h (sim_signal_type): Add SIM_SIGINT. |
| 1325 | (cgen_state): New member run_fast_p. |
| 1326 | (cgen_init): Add prototype. |
| 1327 | (sim_disassemble_insn): New arg `cpu'. |
| 1328 | * cgen-trace.c (trace_insn): Update call to sim_disassemble_insn. |
| 1329 | * cgen-utils.c (cgen_init): New function. |
| 1330 | (sim_disassemble_insn): New arg `cpu'. Rewrite fetching of insn. |
| 1331 | * genmloop.sh: Call engine_halt if loop exits. |
| 1332 | |
| 1333 | * Makefile.in (sim-options_h): Define. |
| 1334 | (sim-{module,options,trace,profile,utils}.o): Clean up dependencies. |
| 1335 | (sim-model.o): Add new rule. |
| 1336 | (cgen-{scache,trace,utils}.o): Add new rules. |
| 1337 | * aclocal.m4 (SIM_AC_OPTION_{SCACHE,DEFAULT_MODEL}): Add. |
| 1338 | * cgen-scache.c (scache_print_profile): Change `sd' arg to `cpu'. |
| 1339 | Indent output by 2 spaces. |
| 1340 | * cgen-scache.h (scache_print_profile): Update. |
| 1341 | * cgen-trace.c (trace_insn_fini): Indent output by 2 spaces. |
| 1342 | Use trace_printf, not fprintf. |
| 1343 | (trace_extract): Use trace_printf, not cgen_trace_printf. |
| 1344 | * genmloop.sh (!FAST case): Increment `insn_count'. |
| 1345 | * sim-base.h (sim_state_base): Only include scache_size if WITH_SCACHE. |
| 1346 | (sim_cpu_base): Rename member `sd' to `state' to be consistent with |
| 1347 | access macro's name. |
| 1348 | * sim-core.c (sim_core_init): Use EXTERN_SIM_CORE to define it. |
| 1349 | Change return type to SIM_RC. |
| 1350 | (sim_core_{install,uninstall}): New functions. |
| 1351 | * sim-core.h (sim_core_{install,uninstall}): Declare. |
| 1352 | (sim_core_init): Use EXTERN_SIM_CORE to define it. |
| 1353 | Change return type to SIM_RC. |
| 1354 | * sim-model.h (models,machs,model_install): Declare. |
| 1355 | * sim-module.c (modules): Add scache_install, model_install. |
| 1356 | (sim_post_argv_init): Set cpu->state backlinks. |
| 1357 | * sim-options.c (standard_options): Delete --simcache-size,--max-insns. |
| 1358 | (standard_option_handler): Likewise. |
| 1359 | * sim-profile.c (PROFILE_{HISTOGRAM,LABEL}_WIDTH): Move to |
| 1360 | sim-profile.h. |
| 1361 | (*): Assume ANSI C. |
| 1362 | (profile_options): Delete --profile-simcache. |
| 1363 | (profile_option_handler): Likewise. |
| 1364 | (profile_print_insn): Change `sd' arg to `cpu'. Indent output 2 |
| 1365 | spaces. |
| 1366 | (profile_print_{memory,model}): Likewise. |
| 1367 | (profile_print_simcache): Delete. |
| 1368 | (profile_print_speed): New function. |
| 1369 | (profile_print): Rewrite. |
| 1370 | * sim-profile.h (PROFILE_scache): Renamed from PROFILE_simcache. |
| 1371 | (WITH_PROFILE_SCACHE_P): Renamed from WITH_PROFILE_SIMCACHE_P. |
| 1372 | (PROFILE_DATA): Delete members simcache_{hits,misses}. |
| 1373 | (PROFILE_COUNT_SIMCACHE_{HIT,MISS}): Delete. |
| 1374 | (PROFILE_{CALLBACK,CPU_CALLBACK}): New types. |
| 1375 | (profile_print): Update prototype. |
| 1376 | |
| 1377 | Wed Apr 30 11:34:14 1997 Doug Evans <dje@canuck.cygnus.com> |
| 1378 | |
| 1379 | * cgen-scache.[ch], cgen-sim.h: New files. |
| 1380 | * cgen-trace.[ch], cgen-types.h, cgen-utils.c, genmloop.sh: New files. |
| 1381 | * sim-model.c: New file. |
| 1382 | |
| 1383 | * Make-common.in (clean targets): Undo patch of Apr. 22. |
| 1384 | |
| 1385 | Fri Apr 25 15:28:32 1997 Mike Meissner <meissner@cygnus.com> |
| 1386 | |
| 1387 | * sim-n-bits.h (signed): If we have a standard compiler, undef |
| 1388 | signed, so that signedN is defined correctly. |
| 1389 | |
| 1390 | Thu Apr 24 00:00:07 1997 Doug Evans <dje@canuck.cygnus.com> |
| 1391 | |
| 1392 | * sim-module.h, sim-model.h, sim-profile.h: New files. |
| 1393 | * sim-module.c, sim-profile.c: New files. |
| 1394 | * Make-common.in (SIM_PROFILE): Define |
| 1395 | (CONFIG_CFLAGS): Add $(SIM_PROFILE). |
| 1396 | (sim_main_headers): Add sim-module.h, sim-model.h, sim-profile.h. |
| 1397 | (sim_module.o,sim-profile.o): Add rules for. |
| 1398 | * aclocal.m4 (--enable-sim-trace): Allow symbolic arguments. |
| 1399 | (--enable-sim-profile): Add. |
| 1400 | * configure: Regenerated. |
| 1401 | * sim-base.h (sim_state_base): New members init_list, uninstall_list, |
| 1402 | model. Move trace and profile support to sim-{trace,profile}.h. |
| 1403 | New members trace_data, profile_data. |
| 1404 | * sim-basics.h: #include sim-module.h, sim-model.h, sim-profile.h. |
| 1405 | * sim-config.h: Provide default definition of WITH_PROFILE. |
| 1406 | (WITH_TRACE): Change default to -1. |
| 1407 | (MAX_NR_PROCESSORS): Always define. |
| 1408 | * sim-options.c: Move trace and profile support to |
| 1409 | sim-{trace,profile}.h. |
| 1410 | (sim_pre_argv_init): Moved to sim-model.c. |
| 1411 | (standard_install): New function. |
| 1412 | * sim-options.h (sim_pre_argv_init): Move decl to sim-model.c. |
| 1413 | (standard_install): Declare. |
| 1414 | * sim-trace.c: Tracing option handling moved here from sim-options.c. |
| 1415 | (trace_install, trace_uninstall): New functions. |
| 1416 | (trace_printf): Update reference to TRACE_FILE. |
| 1417 | * sim-trace.h (TRACE_FOO_IDX): Moved here from sim-base.h. |
| 1418 | (TRACE_foo): Bit masks for symbolic arguments to --enable-sim-trace. |
| 1419 | (WITH_TRACE_FOO_P): Define. |
| 1420 | (trace_install): Declare. |
| 1421 | (TRACE_DATA): New struct. |
| 1422 | |
| 1423 | Wed Apr 23 17:23:15 1997 Doug Evans <dje@canuck.cygnus.com> |
| 1424 | |
| 1425 | * run.c: Undo last exec_bfd patch. |
| 1426 | (main): Only pass -E ifdef SIM_HAVE_BIENDIAN. |
| 1427 | |
| 1428 | Wed Apr 23 17:54:27 1997 Mike Meissner <meissner@cygnus.com> |
| 1429 | |
| 1430 | * run.c (exec_bfd): Add back in. |
| 1431 | (main): Set exec_bfd. |
| 1432 | |
| 1433 | Tue Apr 22 14:43:46 1997 Doug Evans <dje@canuck.cygnus.com> |
| 1434 | |
| 1435 | * sim-load.c (sim_load_file): #include <stdio.h> for NULL. |
| 1436 | |
| 1437 | Wed Apr 23 02:55:54 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1438 | |
| 1439 | * sim-events.c (insert_sim_event): Call sim_io_error instead of |
| 1440 | less well defined engine_error. |
| 1441 | * sim-core.c: Ditto. |
| 1442 | |
| 1443 | Tue Apr 22 08:48:16 1997 Stu Grossman (grossman@critters.cygnus.com) |
| 1444 | |
| 1445 | * Make-common.in: Change clean targets to use :: so that other |
| 1446 | Makefiles can have their own clean targets. |
| 1447 | * sim-load.c (xprintf eprintf): Use ANSI_PROTOTYPES instead of |
| 1448 | __STDC__ to control use of stdarg vs. varargs syntax. Some |
| 1449 | systems can't use __STDC__, but require stdarg. |
| 1450 | |
| 1451 | Fri Apr 18 11:14:43 1997 Doug Evans <dje@canuck.cygnus.com> |
| 1452 | |
| 1453 | * sim-options.c (standard_options): Add --endian. |
| 1454 | (standard_option_handler): Likewise. |
| 1455 | |
| 1456 | * nrun.c: #include <signal.h>. |
| 1457 | (main, cntrl_c): Wrap calls to sim_resume in a SIGINT |
| 1458 | handler that calls sim_stop (). |
| 1459 | |
| 1460 | Fri Apr 18 13:11:36 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1461 | |
| 1462 | * run.c (main, cntrl_c): Wrap calls to sim_resume in a SIGINT |
| 1463 | handler that calls sim_stop (). Simulators may still be |
| 1464 | establishing their own handler. |
| 1465 | |
| 1466 | * sim-events.c (sim_events_poll): Rename from |
| 1467 | sim_events_at_large_int. Poll IO. |
| 1468 | |
| 1469 | * sim-io.c (sim_io_poll_quit): New function - pass on a polling |
| 1470 | request. |
| 1471 | |
| 1472 | * callback.c (os_poll_quit): New function poll for quit signal |
| 1473 | where needed. |
| 1474 | (default_callback): Include magic number. |
| 1475 | |
| 1476 | Thu Apr 17 02:25:11 1997 Doug Evans <dje@canuck.cygnus.com> |
| 1477 | |
| 1478 | * aclocal.m4: Check for headers time.h, sys/time.h, sys/resource.h. |
| 1479 | Check for functions getrusage, time. |
| 1480 | * sim-basics.h (SIM_ELAPSED_TIME): New typedef. |
| 1481 | (sim_elapsed_time_get, sim_elapsed_time_since): Add prototypes. |
| 1482 | * sim-utils.c: #include time.h, sys/time.h, sys/resource.h if able. |
| 1483 | (sim_elapsed_time_get, sim_elapsed_time_since): New functions. |
| 1484 | |
| 1485 | * sim-utils.c (sim_copy_argv, sim_analyze_program): New functions. |
| 1486 | |
| 1487 | * sim-options.c, sim-options.h: New files. |
| 1488 | * sim-config.h (WITH_DEBUG): Provide default value of zero. |
| 1489 | * Make-common.in (nrun.o): Add rules for. |
| 1490 | * nrun.c: New file. |
| 1491 | |
| 1492 | * run.c (main): Check return value of sim_open. |
| 1493 | |
| 1494 | * Make-common.in (sim-options.o, sim-load.o, sim-trace.o): Add rules. |
| 1495 | (sim_main_headers): Add sim-trace.h. |
| 1496 | * run.c (exec_bfd, target_byte_order): Delete. |
| 1497 | (main): Pass -E <endian> to sim_open. Delete code to load sections, |
| 1498 | call sim_load instead. Check return code of sim_create_inferior. |
| 1499 | * sim-base.h (CURRENT_STATE): Define. |
| 1500 | (sim_state_base): Make typedef. New members options, prog_argv, |
| 1501 | prog_bfd, text_{section,start,end}, start_addr, simcache_size, |
| 1502 | mem_size, memory [+ corresponding access macros]. |
| 1503 | (sim_cpu_base): New typedef. |
| 1504 | * sim-trace.h: New file. |
| 1505 | * sim-trace.c: New file. |
| 1506 | * sim-basics.h: #include it. |
| 1507 | * sim-load.c: New file. |
| 1508 | |
| 1509 | Tue Apr 15 15:10:13 1997 Ian Lance Taylor <ian@cygnus.com> |
| 1510 | |
| 1511 | * Make-common.in (INSTALL): Set to @INSTALL@. |
| 1512 | (INSTALL_XFORM, INSTALL_XFORM1): Remove. |
| 1513 | (install-common): Depend upon installdirs. Use |
| 1514 | $(program_transform_name) directly, rather than using |
| 1515 | $(INSTALL_XFORM). |
| 1516 | (installdirs): New target. |
| 1517 | * Makefile.in (INSTALL): Set to @INSTALL@. |
| 1518 | (INSTALL_XFORM, INSTALL_XFORM1): Remove. |
| 1519 | (install-man): Depend upon installdirs. Use |
| 1520 | $(program_transform_name) directly, rather than using |
| 1521 | $(INSTALL_XFORM). |
| 1522 | (installdirs): New target. |
| 1523 | |
| 1524 | Tue Apr 15 15:08:12 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1525 | |
| 1526 | * sim-assert.h (SIM_ASSERT, ASSERT): Allow these macros to |
| 1527 | be overriden. |
| 1528 | |
| 1529 | Wed Apr 9 16:06:44 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 1530 | |
| 1531 | * sim-basics.h: Only bring in config.h and tconfig.h if |
| 1532 | HAVE_CONFIG_H. |
| 1533 | |
| 1534 | Mon Apr 7 11:39:45 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 1535 | |
| 1536 | * sim-config.h (WITH_TARGET_WORD_MSB): New Macro. Define the bit |
| 1537 | numbering convention of the target. |
| 1538 | * sim-config.c (print_sim_config): Print WITH_TARGET_WORD_BITSIZE |
| 1539 | and WITH_TARGET_WORD_MSB. |
| 1540 | (sim_config): When possible, check for consistency with bitsize |
| 1541 | and msb. |
| 1542 | |
| 1543 | * sim-bits.h: Allow MSB to be other than zero. |
| 1544 | * sim-bits.c: Ditto. |
| 1545 | * sim-n-bits.h: Ditto. |
| 1546 | |
| 1547 | * sim-bits.h (MSMASK*): New macros - converce to LSMASK*. |
| 1548 | * sim-n-bits.h (MSMASKEDn): Ditto. |
| 1549 | |
| 1550 | Mon Apr 14 16:29:21 1997 Ian Lance Taylor <ian@cygnus.com> |
| 1551 | |
| 1552 | * Makefile.in (INSTALL): Change install.sh to install-sh. |
| 1553 | |
| 1554 | Mon Apr 7 10:46:38 1997 Doug Evans <dje@canuck.cygnus.com> |
| 1555 | |
| 1556 | * sim-base.h (sim_state_base): Move `magic' to end of struct. |
| 1557 | |
| 1558 | Mon Apr 7 15:53:21 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 1559 | |
| 1560 | * run.c (main): Check that a program to run was specified. |
| 1561 | |
| 1562 | Mon Apr 7 15:45:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 1563 | |
| 1564 | * aclocal.m4 (AC_TYPE_SIGNAL): Add check. |
| 1565 | |
| 1566 | * configure: Regenerated to track ../common/aclocal.m4 changes. |
| 1567 | * config.in: Ditto. |
| 1568 | |
| 1569 | Wed Apr 2 15:06:28 1997 Doug Evans <dje@canuck.cygnus.com> |
| 1570 | |
| 1571 | * sim-endian.h: Move host {LITTLE,BIG}_ENDIAN support from here, |
| 1572 | * sim-config.h: To here. |
| 1573 | |
| 1574 | * Make-common.in (SIM_EXTRA_DEPS): New config var. |
| 1575 | (sim_main_headers): Define. |
| 1576 | (sim-*.o): Depend on $(SIM_EXTRA_DEPS). |
| 1577 | (BUILT_SRC_FROM_COMMON): Move here from ../d30v/Makefile.in. |
| 1578 | (clean): Use it. |
| 1579 | (sim-utils.o): Add rule for. |
| 1580 | * sim-utils.o: New file. |
| 1581 | * sim-basics.h: #include sim-base.h. |
| 1582 | (zalloc): Make argument unsigned long. |
| 1583 | * sim-base.h: New file. |
| 1584 | * sim-inline.h (SIM_IO support): Delete. |
| 1585 | * sim-io.h: Delete inline support. |
| 1586 | * sim-io.c: Likewise. sim-state.h renamed to sim-main.h. |
| 1587 | * sim-config.c: sim-state.h renamed to sim-main.h. |
| 1588 | * sim-core.c: Likewise. |
| 1589 | * sim-events.c: Likewise. |
| 1590 | |
| 1591 | * run.c (main): Pass SIM_OPEN_STANDALONE to sim_open. |
| 1592 | |
| 1593 | * aclocal.m4: Check for stdlib.h, string.h, strings.h, unistd.h. |
| 1594 | (sim-debug): Allow arguments. Define WITH_DEBUG in addition to |
| 1595 | -DDEBUG. |
| 1596 | * configure: Regenerated to track ../common/aclocal.m4 changes. |
| 1597 | |
| 1598 | Wed Apr 2 14:34:19 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 1599 | |
| 1600 | * configure: Regenerated to track ../common/aclocal.m4 changes. |
| 1601 | |
| 1602 | Wed Apr 2 11:08:11 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 1603 | |
| 1604 | * sim-config.h (WITH_ALIGNMENT, WITH_FLOATING_POINT, |
| 1605 | WITH_XOR_ENDIAN, WITH_SMP, WITH_RESERVED_BITS): Assume that these |
| 1606 | are defined by the configure. |
| 1607 | |
| 1608 | * aclocal.m4 (sim-stdio): Add option stdio from ../ppc configure. |
| 1609 | |
| 1610 | * aclocal.m4 (floating-point, xor-endian, alignment, smp, |
| 1611 | reserved-bits): Always define. |
| 1612 | |
| 1613 | * sim-config.h, sim-config.c (sim_config): New function - and new |
| 1614 | file - co-ordinate the setting/checking of the common simulator |
| 1615 | configuration options. |
| 1616 | |
| 1617 | * Make-common.in (sim-config.o): Add rule. |
| 1618 | |
| 1619 | Fri Mar 28 15:32:00 1997 Mike Meissner <meissner@cygnus.com> |
| 1620 | |
| 1621 | * callback.c (os_{,e}vprintf_filtered): Change stdarg type to |
| 1622 | va_list from void *, since va_list might not be a pointer type. |
| 1623 | |
| 1624 | Mon Mar 24 15:27:12 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 1625 | |
| 1626 | * sim-n-endian.h (offset_N): Correct assertion - word and sub word |
| 1627 | in wrong order. |
| 1628 | (offset_N): Correct computation of LE offset. |
| 1629 | |
| 1630 | * sim-io.c (sim_io_error): Include a new line when reporting |
| 1631 | errors. |
| 1632 | |
| 1633 | * sim-assert.h (SIM_FILTER_PATH): Out by one when locating last |
| 1634 | `/'. |
| 1635 | |
| 1636 | Thu Mar 20 22:31:06 1997 Jeffrey A Law (law@cygnus.com) |
| 1637 | |
| 1638 | * run.c: Include alloca-conf.h. |
| 1639 | |
| 1640 | * callback.c (os_evprintf_filtered): Fix typo. |
| 1641 | |
| 1642 | Fri Mar 21 13:36:20 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 1643 | |
| 1644 | * run.c (string.h, strings.h, stdlib.h): Include. |
| 1645 | |
| 1646 | * sim-events.c (sim_events_tick): Recent cleanup failed to return |
| 1647 | 0 when nothing pending. |
| 1648 | |
| 1649 | * run.c (sim_size, sim_trace): Plicate GCC - these two functions |
| 1650 | will soon be going away. |
| 1651 | (getopt): Plicate GCC. |
| 1652 | |
| 1653 | * sim-endian.c (sim-io.h): Plicate GCC. |
| 1654 | * sim-bits.c (sim-io.h): Ditto. |
| 1655 | * sim-n-bits.h (ROTn): Ditto. |
| 1656 | |
| 1657 | * sim-io.c (sim_io_error): Correct check for NULL. |
| 1658 | |
| 1659 | * sim-assert.h (SIM_FILTER_PATH): Separate out the code filtering |
| 1660 | the __FILE__. |
| 1661 | * sim-events.c: Use SIM_FILTER_PATH to filter out the filename |
| 1662 | path. |
| 1663 | |
| 1664 | Wed Mar 19 01:12:06 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 1665 | |
| 1666 | * aclocal.m4 (SIM_AC_OPTION_*: Move so that they are outside of |
| 1667 | SIM_AC_COMMON - SIM_AC_COMMON was gobling arguments. |
| 1668 | |
| 1669 | Tue Mar 18 20:48:12 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 1670 | |
| 1671 | * sim-alu.h: Include sim-xcat.h. |
| 1672 | |
| 1673 | Tue Mar 18 13:58:18 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 1674 | |
| 1675 | * Make-common.in (sim-bits.c, sim-core.c, sim-endian.c, |
| 1676 | sim-events.c, sim-inline.c, sim-io.c): Define rules for building |
| 1677 | these. |
| 1678 | |
| 1679 | * sim-events.c (sim_events_at_large_int): New function. Just |
| 1680 | schedules an event every large-int ticks. |
| 1681 | (sim_events_init): Call. |
| 1682 | (sim_events_tick, sim_events_process): Move async handing to |
| 1683 | sim_events_process. Move timer decrement so that it occures after |
| 1684 | events have been processed. |
| 1685 | |
| 1686 | * sim-basics.h (struct _engine): Remove declaration. |
| 1687 | |
| 1688 | * sim-events.h, sim-events.c: Rename type to sim_events. Prefix |
| 1689 | everything with same. Rename global struct to SIM_DESC. |
| 1690 | * sim-core.h, sim-core.c, sim-n-core.c: Ditto for sim_core. |
| 1691 | * sim-io.h, sim-io.c: Ditto. |
| 1692 | |
| 1693 | * sim-assert.h: New file. Optional assertion checking macros. |
| 1694 | * sim-io.c (sim_io_error): Make just this function tolerant to |
| 1695 | null pointers. |
| 1696 | |
| 1697 | * sim-xcat.h: New file. Define concatenate macros. |
| 1698 | * sim-basics.h (XCONCAT*): Move to sim-xcat.h. |
| 1699 | * sim-n-core.h, sim-n-bits.h, sim-n-endian.h: Explicitly include |
| 1700 | concat macros. |
| 1701 | |
| 1702 | |
| 1703 | Tue Mar 18 12:44:55 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 1704 | |
| 1705 | * sim-bits.h (LSMASK): New macro. Create mask of LS bits. |
| 1706 | |
| 1707 | Mon Mar 17 18:10:05 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 1708 | |
| 1709 | * sim-inline.h: Add definitions for sim-types. |
| 1710 | (ALL_BY_MODULE): New macro, encapsulate full inlining by the |
| 1711 | module. |
| 1712 | |
| 1713 | Mon Mar 17 15:38:27 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 1714 | |
| 1715 | * sim-events.h: Remove defunct reference to callback struct. |
| 1716 | |
| 1717 | Mon Mar 17 15:10:07 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 1718 | |
| 1719 | * configure: Re-generate. |
| 1720 | |
| 1721 | Mon Mar 17 15:04:47 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 1722 | |
| 1723 | * Make-common.in (CSEARCH): Do not include the gdb directory in |
| 1724 | the search path. |
| 1725 | |
| 1726 | Mon Mar 17 13:16:26 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 1727 | |
| 1728 | * Make-common.in (SIM_ENDIAN, SIM_HOSTENDIAN, SIM_INLINE, |
| 1729 | SIM_WARNING): Drop, requiring the simulator specific Makefile.in |
| 1730 | to explicitly incorporate these. |
| 1731 | |
| 1732 | * aclocal.m4 (--enable-sim-alignment); New option. Strongly |
| 1733 | specify the alignment restrictions of the target architecture - |
| 1734 | without this option all alignment restrictions are accomodated. |
| 1735 | (--enable-sim-assert): New option. Conditionally compile in |
| 1736 | assertion statements. |
| 1737 | (--enable-sim-float): New option. Strongly specify the target's |
| 1738 | floating point support. |
| 1739 | (--enable-sim-hardware): New option. Specify the hardware devices |
| 1740 | included in the simulation. |
| 1741 | (--enable-sim-packages): New option. Specify the hardware |
| 1742 | packages included in the simulation. |
| 1743 | (--enable-sim-regparm): New option. Specify that parameters be |
| 1744 | passed in registers instead of on the stack. |
| 1745 | (--enable-sim-reserved-bits): New option. Specify that reserved |
| 1746 | bits within an instruction are are correctly set. |
| 1747 | (--enable-sim-smp): New option. Specify the level of SMP support |
| 1748 | to be included in the simulator. |
| 1749 | (--enable-sim-stdcall): New option. Specify an alternative |
| 1750 | function call convention. |
| 1751 | (--enable-sim-xor-endian): New option. Configure xor-endian |
| 1752 | support used by some targets to implement bi-endian support. |
| 1753 | |
| 1754 | Fri Mar 14 19:51:21 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 1755 | |
| 1756 | * aclocal.m4 (--enable-sim-hostendian): New option. Allow the |
| 1757 | host endianness to be overridden. |
| 1758 | (--enable-sim-endian): Allow the target platform's byte order |
| 1759 | to be overridden. |
| 1760 | (--enable-sim-inline): Control the inlining of common components. |
| 1761 | (--enable-sim-bswap): For compatibility, also define WITH_BSWAP. |
| 1762 | (--enable-sim-warnings): Enable additional GCC compiler checks. |
| 1763 | * Make-common.in (SIM_ENDIAN, SIM_HOSTENDIAN, SIM_INLINE, |
| 1764 | SIM_WARNINGS): Add. |
| 1765 | |
| 1766 | * sim-n-core.h, sim-n-bits.h, sim-n-endian.h: Rename from |
| 1767 | sim-*-n.h so that the names are uniq on dos machines |
| 1768 | * sim-core.c, sim-bits.c, sim-endian.c: Update. |
| 1769 | |
| 1770 | Thu Mar 13 12:32:42 1997 Doug Evans <dje@canuck.cygnus.com> |
| 1771 | |
| 1772 | * run.c: #include "libiberty.h". |
| 1773 | (main): New locals sd,no_args,sim_argv. |
| 1774 | Run buildargv on -a option. Pass argv to sim_open, argv[0] |
| 1775 | is program name. Update call to sim_set_callbacks. |
| 1776 | Record result of sim_open, pass to other sim_foo routines. |
| 1777 | |
| 1778 | Thu Mar 13 10:24:05 1997 Michael Meissner <meissner@cygnus.com> |
| 1779 | |
| 1780 | * callback.c (os_printf_filtered): Do not call exit(1) or print a |
| 1781 | final newline. |
| 1782 | |
| 1783 | Thu Mar 6 15:50:28 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 1784 | |
| 1785 | * callback.c: Add os_flush_stdout and vprintf_filtered callbacks. |
| 1786 | Route stdout through buffered IO. |
| 1787 | |
| 1788 | * callback.c: Add os_flush_stderr, os_write_stderr, |
| 1789 | os_evprintf_filtered functions to route error output through |
| 1790 | stderr. |
| 1791 | |
| 1792 | * sim-io.h, sim-io.c (sim_io_flush_stderr, sim_io_flush_stdout): |
| 1793 | Correct return type - should be void. |
| 1794 | |
| 1795 | Fri Mar 7 20:14:37 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 1796 | |
| 1797 | * sim-basics.h: Clean up. Many macro's moved to sim-inline.h. |
| 1798 | |
| 1799 | * sim-config.h: Ditto. For some options - eg WITH_DEVICES - do |
| 1800 | not provide a default value as undefined indicates disable code. |
| 1801 | |
| 1802 | Thu Mar 6 15:50:28 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 1803 | |
| 1804 | * sim-core.h, sim-core-n.h, sim-core.c: Borrow code from ppc |
| 1805 | directory. |
| 1806 | * sim-events.h, sim-events.c: Ditto. |
| 1807 | * sim-io.h, sim-io.c: Ditto. |
| 1808 | |
| 1809 | Tue Mar 4 09:35:56 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 1810 | |
| 1811 | * sim-alu.h (ALU_SUB_CA, ALU*_SUB_CA): New alu operation. |
| 1812 | |
| 1813 | * sim-bits.h, sim-bits-n.h, sim-bits.c (LSMASKED*): New macro's |
| 1814 | extract the tail or least signifiant bits from an integer of the |
| 1815 | specified size. |
| 1816 | |
| 1817 | * sim-bits.h, sim-bits.c: Clean up conditionally compiled #if |
| 1818 | WITH_TARGET_BITSIZE so that the compilation will fail when an |
| 1819 | unsupported bitsize value is defined. |
| 1820 | |
| 1821 | (INSERTED*): Convert to functions. |
| 1822 | (EXTRACTED*): Ditto. |
| 1823 | |
| 1824 | (SIGN_EXTEND, SEXT): Change to more terse name. |
| 1825 | |
| 1826 | Tue Mar 4 09:35:56 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 1827 | |
| 1828 | * sim-inline.h: Allow explicit control over which .c files will be |
| 1829 | included by their header. |
| 1830 | |
| 1831 | * sim-inline.h: Allow explicit control over which .c files use the |
| 1832 | alternative - REGPARM - parameter passing mechanism. |
| 1833 | |
| 1834 | * sim-inline.h, sim-inline.c: Don't attempt to include any of |
| 1835 | icache.c, idecode.c, semantics.c or support.c. Those names are |
| 1836 | not generally applicable. |
| 1837 | |
| 1838 | Thu Feb 27 10:17:23 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 1839 | |
| 1840 | * sim-bits.c, sim-bits-n.h (new): Split sim-bits.c into two parts |
| 1841 | in a fashion similar to sim-endian-n. |
| 1842 | |
| 1843 | * sim-endian.h: (H_word, L_word, AL_*, VL_*): Extend to include |
| 1844 | both value and address macro's. |
| 1845 | |
| 1846 | Tue Feb 25 18:51:57 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 1847 | |
| 1848 | * sim-alu.h (ALU16_BEGIN, ALU16_SET, ...): Fill in. |
| 1849 | |
| 1850 | * sim-endian.h (L_word, H_word): Replace MS2W_4, LS2W_4 with more |
| 1851 | generic L_word, H_word macro's. |
| 1852 | |
| 1853 | Thu Feb 20 18:36:55 1997 Andrew Cagney <cagney@critters.cygnus.com> |
| 1854 | |
| 1855 | * sim-basics.h: Borrow code from ppc directory. |
| 1856 | * sim-bits.c: Ditto. |
| 1857 | * sim-bits.h: Ditto. |
| 1858 | * sim-config.h: Ditto. |
| 1859 | * sim-endian-n.h: Ditto. |
| 1860 | * sim-endian.c: Ditto. |
| 1861 | * sim-endian.h: Ditto. |
| 1862 | * sim-inline.c: Ditto. |
| 1863 | * sim-inline.h: Ditto. |
| 1864 | * sim-types.h: Ditto. |
| 1865 | |
| 1866 | Wed Feb 19 12:40:50 1997 Andrew Cagney <cagney@critters.cygnus.com> |
| 1867 | |
| 1868 | * sim-alu.h (ALU_SET16, ALU_SET32, ALU_SET64, etc): Make available |
| 1869 | all the ALU size alternatives and then auto-configure a default. |
| 1870 | |
| 1871 | * sim-alu.h: Copy ppc/idecode_expression.h. |
| 1872 | |
| 1873 | Mon Feb 17 10:44:18 1997 Andrew Cagney <cagney@critters.cygnus.com> |
| 1874 | |
| 1875 | * bits.h, bits.c (SIGN_EXTEND32, SIGN_EXTEND64): New functions, |
| 1876 | sign extend a bit within a value. |
| 1877 | |
| 1878 | * sim-endian.h, sim-endian-n.h (offset_N): New functions - return |
| 1879 | a pointer into the middle of a host word. |
| 1880 | * sim-endian.h (MS2W_4, LS2W_4): Use this function. |
| 1881 | |
| 1882 | Tue Feb 11 13:46:49 1997 Michael Meissner <meissner@tiktok.cygnus.com> |
| 1883 | |
| 1884 | * callback.c: If HAVE_CONFIG_H is defined, include config.h from |
| 1885 | autoconf. If HAVE_UNISTD_H is defined, include unistd.h to get |
| 1886 | appropriate definitions of read, write, etc. Add prototype for |
| 1887 | system. |
| 1888 | |
| 1889 | Tue Feb 4 13:24:44 1997 Doug Evans <dje@canuck.cygnus.com> |
| 1890 | |
| 1891 | * Makefile.in (libcommon.a): Delete. |
| 1892 | (callback.o,targ-map.o): Delete, moved to Make-common.in. |
| 1893 | (gentmap,targ-vals.h,targ-map.c): Likewise. |
| 1894 | (run-autoconf): Delete. |
| 1895 | * aclocal.m4 (SIM_AC_OUTPUT): Redo creation of Makefile. |
| 1896 | (common makefile fragment): Moved back into ... |
| 1897 | * Make-common.in: Resurrect. |
| 1898 | * configure.in (AC_LINK_FILES): Delete, unnecessary now. |
| 1899 | * configure: Regenerated. |
| 1900 | |
| 1901 | Fri Jan 31 07:16:49 1997 Doug Evans <dje@canuck.cygnus.com> |
| 1902 | |
| 1903 | * aclocal.m4 (SIM_AC_COMMON): Move COMMON_MAKEFILE_FRAG from here. |
| 1904 | (SIM_AC_OUTPUT): To here. |
| 1905 | |
| 1906 | Fri Jan 24 10:37:17 1997 Stu Grossman (grossman@critters.cygnus.com) |
| 1907 | |
| 1908 | * aclocal.m4 (COMMON_MAKEFILE_FRAG): Quote a couple of $'s in |
| 1909 | comments and single quotes. Fixes a problem found on hpux. |
| 1910 | |
| 1911 | Thu Jan 23 13:35:03 1997 Stu Grossman (grossman@critters.cygnus.com) |
| 1912 | |
| 1913 | * aclocal.m4: Remove Make-common.in from dependencies. |
| 1914 | * (distclean): Remove targ-vals.def. |
| 1915 | |
| 1916 | * aclocal.m4 (SIM_AC_COMMON): Move contents of Make-common.in |
| 1917 | into here. Makes insertion into makefiles easier. Also, change |
| 1918 | the way that callback.o, gentmap, targ-vals.h, targ-map.c, |
| 1919 | targ-map.o, and run are built. They are now built in the |
| 1920 | individual simulator directories, taking sources from ../common as |
| 1921 | necessary. This replaces the merging of libcommon.a into |
| 1922 | linsim.a, which was problematic for the WinGDB build process. |
| 1923 | * run.c: Include config.h from . instead of ../common. |
| 1924 | * Make-common.in: Remove. It's no longer necessary. |
| 1925 | |
| 1926 | Mon Dec 16 15:02:33 1996 Ian Lance Taylor <ian@cygnus.com> |
| 1927 | |
| 1928 | * Make-common.in (ALL_CLAGS): Put CFLAGS at the end. |
| 1929 | (.c.o): Put $(ALL_CFLAGS) before the file being compiled. |
| 1930 | |
| 1931 | Wed Dec 11 11:30:58 1996 Jim Wilson <wilson@cygnus.com> |
| 1932 | |
| 1933 | * run.c (main): Set target_byte_order before call to sim_open. |
| 1934 | |
| 1935 | Sun Dec 8 18:22:06 1996 Doug Evans <dje@canuck.cygnus.com> |
| 1936 | |
| 1937 | * callback.c: #include <stdlib.h> |
| 1938 | (os_error): New function. |
| 1939 | (default_callback): Add os_error. |
| 1940 | |
| 1941 | Mon Nov 25 19:44:35 1996 Doug Evans <dje@canuck.cygnus.com> |
| 1942 | |
| 1943 | * Make-common.in (Makefile): Set CONFIG_HEADERS="". |
| 1944 | * aclocal.m4: Mark the fact that --enable-sim-bswap isn't host |
| 1945 | specific. |
| 1946 | (SIM_AC_OUTPUT): Don't build Makefile if CONFIG_FILES="". |
| 1947 | |
| 1948 | Wed Nov 20 01:11:04 1996 Doug Evans <dje@canuck.cygnus.com> |
| 1949 | |
| 1950 | * run.c: #include ../common/config.h, tconfig.h. |
| 1951 | (myname): New static global. |
| 1952 | (main): Recognize new options -a, -c. Also recognize -h if h8/300. |
| 1953 | Only process -c ifdef SIM_HAVE_SIMCACHE. |
| 1954 | Only process -p/-s ifdef SIM_HAVE_PROFILE. |
| 1955 | Parse program name from argv[0] and use in error messages. |
| 1956 | Pass sim_args to sim_open. Pass prog_args to sim_create_inferior. |
| 1957 | Add support for incomplete h8/300 termination indicators. |
| 1958 | (usage): Make more verbose. |
| 1959 | * aclocal.m4,config.in,tconfig.in,configure.in,configure: New files. |
| 1960 | * Makefile.in,Make-common.in,callback.c: New files. |
| 1961 | * nltvals.def,gentmap.c,gentvals.sh: New files. |
| 1962 | |
| 1963 | Tue Nov 12 13:34:00 1996 Dawn Perchik <dawn@cygnus.com> |
| 1964 | |
| 1965 | * run.c: Include stdarg.h if __STDC__. |
| 1966 | |
| 1967 | Tue Oct 15 11:16:31 1996 Jeffrey A Law (law@cygnus.com) |
| 1968 | |
| 1969 | * run.c (main): Don't print out anything if the signal |
| 1970 | number is zero (ie no signal). |
| 1971 | |
| 1972 | Tue Oct 15 11:20:44 1996 Michael Meissner <meissner@tiktok.cygnus.com> |
| 1973 | |
| 1974 | * run.c (main): Print out if the program raised a signal. |
| 1975 | |
| 1976 | Wed Sep 18 09:52:14 1996 Michael Meissner <meissner@tiktok.cygnus.com> |
| 1977 | |
| 1978 | * run.c (exec_bfd): Rename from sim_bfd, to use the gdb name. |
| 1979 | (main): Ditto. |
| 1980 | |
| 1981 | Tue Sep 17 11:04:50 1996 James G. Smith <jsmith@cygnus.co.uk> |
| 1982 | |
| 1983 | * run.c (main): Explicitly cast malloc() parameter. |
| 1984 | |
| 1985 | Thu Sep 12 11:27:21 1996 Michael Meissner <meissner@tiktok.cygnus.com> |
| 1986 | |
| 1987 | * run.c (sim_bfd): New global to hold the bfd pointer for the |
| 1988 | executable. |
| 1989 | (main): Initialize sim_bfd. |
| 1990 | |
| 1991 | Fri Dec 15 16:27:49 1995 Ian Lance Taylor <ian@cygnus.com> |
| 1992 | |
| 1993 | * run.c (main): Use new bfd_big_endian macro. |
| 1994 | |
| 1995 | Wed Nov 8 15:49:49 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk> |
| 1996 | |
| 1997 | * run.c (main): Removed SH specific comments, so source is |
| 1998 | generic. Also updated to only load relevant sections. Moved |
| 1999 | sim_open() to after callback attach (to match GDB). |
| 2000 | |
| 2001 | * run.1: Removed SH specific comments. |
| 2002 | |
| 2003 | Sat Oct 21 12:31:01 1995 Jim Wilson <wilson@chestnut.cygnus.com> |
| 2004 | |
| 2005 | * run.c (main): Always return sigrc at end. |
| 2006 | |
| 2007 | Tue Oct 10 12:03:13 1995 J.T. Conklin <jtc@rtl.cygnus.com> |
| 2008 | |
| 2009 | * run.c (main): Print error diagnostic and exit if bfd_openr() or |
| 2010 | bfd_check_format() fails. |
| 2011 | |
| 2012 | Thu Sep 28 15:40:36 1995 steve chamberlain <sac@slash.cygnus.com> |
| 2013 | |
| 2014 | * run.c, run.1: From sh directory. |
| 2015 | |
| 2016 | |