| 1 | Tue Mar 3 10:53:05 1998 Andrew Cagney <cagney@b1.cygnus.com> |
| 2 | |
| 3 | * sim-types.h (SIGNED32, SIGNED64): Pacify GCC. |
| 4 | |
| 5 | * sim-alu.h (ALU64_BEGIN): Make alu64_r unsigned. |
| 6 | |
| 7 | Mon Mar 2 10:20:06 1998 Doug Evans <devans@seba.cygnus.com> |
| 8 | |
| 9 | * Make-common.in (TAGS): Make smarter. |
| 10 | * Makefile.in (TAGS): Ditto. |
| 11 | |
| 12 | * sim-core.c (sim_core_attach): Use xmalloc instead of zalloc. |
| 13 | Use 0xa5 as initial value. |
| 14 | (sim_core_map_detach): Use free instead of zfree. |
| 15 | |
| 16 | Fri Feb 27 19:09:57 1998 Doug Evans <devans@canuck.cygnus.com> |
| 17 | |
| 18 | * sim-module.c (*): Fix typos in assertion tests. |
| 19 | |
| 20 | Sat Feb 28 13:54:10 1998 Andrew Cagney <cagney@b1.cygnus.com> |
| 21 | |
| 22 | * sim-module.c (sim_pre_argv_init): String passed to asprintf |
| 23 | can't be constant. |
| 24 | |
| 25 | * sim-options.c (sim_parse_args): Ditto. |
| 26 | (sim_args_command): Return OK, instead of nothing, for an empty |
| 27 | command. |
| 28 | |
| 29 | Fri Feb 27 13:29:13 1998 Andrew Cagney <cagney@b1.cygnus.com> |
| 30 | |
| 31 | * sim-profile.c (profile_info): Rename from profile_print. Drop |
| 32 | misc and misc_cpu callback arguments. Use |
| 33 | PROFILE_INFO_CPU_CALLBACK and STATE_PROFILE_INFO_CALLBACK instead. |
| 34 | (profile_install): Install profile_info function. |
| 35 | |
| 36 | * sim-profile.h (PROFILE_INFO_CPU_CALLBACK, |
| 37 | STATE_PROFILE_INFO_CALLBACK): Define. |
| 38 | (struct PROFILE_DATA): Add field info_cpu_callback. |
| 39 | (profile_print): Delete function. |
| 40 | |
| 41 | * sim-base.h (STATE_MODULES): Define. Replace individual |
| 42 | STATE_*_LIST with single struct module_list. |
| 43 | |
| 44 | * sim-module.h (MODULE_INFO_FN, MODULE_INFO_LIST): Declare. |
| 45 | (struct module_list): Declare. |
| 46 | |
| 47 | * sim-module.h, sim-module.c (sim_module_add_info_fn, |
| 48 | sim_module_info): New functions. |
| 49 | (sim_module_install): Clean up module data structures. |
| 50 | |
| 51 | * sim-info.c (sim_info): New file. New function. Call |
| 52 | sim_module_info. |
| 53 | |
| 54 | * Make-common.in (sim-info.o): Define rule. |
| 55 | (SIM_NEW_COMMON_OBJS): Add sim-info.o. |
| 56 | |
| 57 | |
| 58 | Fri Feb 27 18:26:16 1998 Doug Evans <devans@canuck.cygnus.com> |
| 59 | |
| 60 | * sim-base.h (sim_cpu_base): New members name, options. |
| 61 | (sim_cpu_lookup): Add prototype. |
| 62 | * sim-module.c (sim_pre_argv_init): Provide default names for cpus. |
| 63 | * sim-options.h (DECLARE_OPTION_HANDLER): New argument `cpu'. |
| 64 | (sim_add_option_table): Update prototype. |
| 65 | * sim-options.c (sim_add_option_table): New argument `cpu'. |
| 66 | (standard_option_handler,standard_install): Update. |
| 67 | (sim_parse_args): Handle cpu specific options. |
| 68 | (print_help): New static function. |
| 69 | (sim_print_help): Call it. Print cpu specific options. |
| 70 | (find_match): New static function. |
| 71 | (sim_args_command): Call it. Handle cpu specific options. |
| 72 | * sim-utils.c (sim_cpu_lookup): New function. |
| 73 | * sim-memopt.c (memory_option_handler): Update. |
| 74 | (sim_memopt_install): Update. |
| 75 | * sim-model.c (model_option_handler): Update. |
| 76 | (model_install): Update. |
| 77 | * sim-profile.c (profile_option_handler): Update. |
| 78 | (profile_install): Update. |
| 79 | * sim-trace.c (trace_option_handler): Update. |
| 80 | (trace_install): Update. |
| 81 | * sim-watch.c (watchpoint_option_handler): Update. |
| 82 | (sim_watchpoint_install): Update. |
| 83 | * cgen-scache.c (scache_option_handler): Update. |
| 84 | (scache_install): Update. |
| 85 | |
| 86 | Wed Feb 25 11:00:26 1998 Doug Evans <devans@canuck.cygnus.com> |
| 87 | |
| 88 | * Make-common.in (check): Run `make check' in testsuite dir. |
| 89 | |
| 90 | Wed Feb 25 14:40:24 1998 Andrew Cagney <cagney@b1.cygnus.com> |
| 91 | |
| 92 | * sim-trace.c (trace_result0): New function. |
| 93 | |
| 94 | * sim-trace.h (TRACE_FP_*, TRACE_FPU_*): Rename TRACE_FPU_* |
| 95 | macro's to TRACE_FP_*. TRACE_FPU_* should be defined and used when |
| 96 | tracing sim_fpu variables. |
| 97 | (TRACE_ALU_RESULT0): Define. |
| 98 | (TRACE_FP_RESULT_WORD): Define. |
| 99 | (TRACE_FP_INPUT_WORD1): Define. |
| 100 | |
| 101 | * sim-fpu.c, sim-fpu.h (sim_fpu_max32, sim_fpu_max64, sim_fpu_one, |
| 102 | sim_fpu_two): New constants. |
| 103 | (sim_fpu_op1, sim_fpu_op2): New types. |
| 104 | (struct _sim_fpu): Delete member result. Re-order other members. |
| 105 | (sim_fpu_sign, sim_fpu_exp): New functions. |
| 106 | (sim_fpu_max, sim_fpu_min): new functions. |
| 107 | (EXPMAX32, EXPMAX64, NR_PAD32, NR_PAD64, NR_GUARDS32, NR_GUARDS64, |
| 108 | NORMAL_EXPMAX32, NORMAL_EXPMAX64): Define. |
| 109 | |
| 110 | Tue Feb 24 22:45:39 1998 Doug Evans <devans@seba.cygnus.com> |
| 111 | |
| 112 | * sim-profile.c (profile_print): Delete duplicate test of |
| 113 | PROFILE_INSN_IDX. |
| 114 | (profile_print_pc): Exit early if data collection not set up. |
| 115 | (profile_print_core): Simplify by calling sim_core_map_to_str. |
| 116 | * sim-core.h (sim_core_map_to_str): Declare. |
| 117 | * sim-core.c (sim_core_map_to_str): Make non-static. |
| 118 | |
| 119 | * genmloop.sh (engine_resume): Update insn_count before exiting. |
| 120 | (engine_resume_full): Keep accurate core profile data. |
| 121 | |
| 122 | * cgen-utils.c (sim_disassemble_insn): Don't use |
| 123 | sim_core_read_aligned_N, it messes up profiling results. |
| 124 | |
| 125 | Mon Feb 23 20:45:57 1998 Mark Alexander <marka@cygnus.com> |
| 126 | |
| 127 | * nltvals.def: Regenerate with MN10300 additions. |
| 128 | |
| 129 | Tue Feb 24 13:18:42 1998 Andrew Cagney <cagney@b1.cygnus.com> |
| 130 | |
| 131 | * sim-trace.h (TRACE_ALU_RESULT2): Define. |
| 132 | |
| 133 | * sim-trace.h, sim-trace.c (trace_result_word2, |
| 134 | trace_input_word4, trace_result_word4): New function. |
| 135 | |
| 136 | Mon Feb 23 13:08:35 1998 Doug Evans <devans@canuck.cygnus.com> |
| 137 | |
| 138 | * cgen-sim.h (SEM_NEXT_PC): New arg `len'. |
| 139 | |
| 140 | * sim-xcat.h: Delete. |
| 141 | * cgen-mem.h: Delete inclusion of sim-xcat.h. |
| 142 | * cgen-sim.h: Ditto. |
| 143 | * sim-alu.h: Replace sim-xcat.h with symcat.h. |
| 144 | * sim-n-bits.h: Ditto. |
| 145 | * sim-n-core.h: Ditto. |
| 146 | * sim-n-endian.h: Ditto. |
| 147 | |
| 148 | Mon Feb 23 13:19:58 1998 Michael Meissner <meissner@cygnus.com> |
| 149 | |
| 150 | * syscall.c (cb_syscall): Handle short reads, and EOF. |
| 151 | |
| 152 | Tue Feb 24 00:29:57 1998 Andrew Cagney <cagney@b1.cygnus.com> |
| 153 | |
| 154 | * sim-trace.c (print_data): case trace_fmt_fp missing break. Use |
| 155 | sim_fpu to safely print fp_word values. |
| 156 | (print_data): Add trace_fmt_bool and trace_fmt_addr. |
| 157 | (trace_result_bool1, trace_result_addr1): New functions. |
| 158 | (trace_input_bool1, trace_input_addr1): New functions. |
| 159 | |
| 160 | * sim-trace.h (TRACE_FPU_*): Define. |
| 161 | |
| 162 | Mon Feb 23 13:24:54 1998 Andrew Cagney <cagney@b1.cygnus.com> |
| 163 | |
| 164 | * sim-fpu.h (enum sim_fpu_class): Add sim_fpu_class_denorm. |
| 165 | (sim_fpu_fpto, sim_fpu_tofp): Define. |
| 166 | |
| 167 | Fri Feb 20 18:08:51 1998 Andrew Cagney <cagney@b1.cygnus.com> |
| 168 | |
| 169 | * sim-fpu.c (sim_fpu_cmp): New function. |
| 170 | |
| 171 | Wed Feb 18 16:29:21 1998 Doug Evans <devans@canuck.cygnus.com> |
| 172 | |
| 173 | * cgen-utils.h (sim_disassemble_insn): Use CGEN_INSN_BITSIZE |
| 174 | instead of abuf->length. |
| 175 | * sim-trace.c (trace_options): Have -t only trace a few useful things. |
| 176 | (set_trace_option_mask): Renamed from set_trace_options. |
| 177 | (set_trace_option): New function. |
| 178 | (trace_option_handler): Update calls to set_trace_option{,_mask}. |
| 179 | * sim-trace.h (TRACE_USEFUL_MASK): New macro. |
| 180 | |
| 181 | Wed Feb 18 12:42:15 1998 Andrew Cagney <cagney@b1.cygnus.com> |
| 182 | |
| 183 | * sim-basics.h: Declare struct _sim_fpu. |
| 184 | |
| 185 | Tue Feb 17 16:27:46 1998 Andrew Cagney <cagney@b1.cygnus.com> |
| 186 | |
| 187 | * sim-trace.h (TRACE_ALU_INPUT*, TRACE_ALU_RESULT): Define. |
| 188 | (trace_prefix, trace_input*, trace_result*): Declare. |
| 189 | (trace_one_insn): Change declaration, assume trace_prefix called. |
| 190 | (trace_generic): Like trace_one_insn. |
| 191 | (TRACE_ALU_IDX, TRACE_*_IDX): Change #define's to enum. |
| 192 | (TRACE_alu, TRACE_[a-z]*): Update. |
| 193 | |
| 194 | * sim-trace.c (trace_prefix, trace_input*, trace_result*, |
| 195 | trace_insn, save_data, trace_idx_to_str, print_data): New |
| 196 | functions. |
| 197 | (trace_one_insn): Rewrite. |
| 198 | (trace_generic): New function. |
| 199 | |
| 200 | Tue Feb 17 17:27:30 1998 Doug Evans <devans@seba.cygnus.com> |
| 201 | |
| 202 | * Make-common.in (CGEN_MAIN_SCM): Update. |
| 203 | * aclocal.m4 (USE_MAINTAINER_MODE): New variable. |
| 204 | |
| 205 | * cgen-sim.h (SEMANTIC_CACHE_FN): Delete. |
| 206 | (SEMANTIC_FN): Rewrite declaration. |
| 207 | (DECODE): Update type of semantic_fast member. |
| 208 | ({EX,SEM}_FN_NAME): Have only one version. |
| 209 | * cgen.sh: Support building cpu.c. |
| 210 | * sim-base.h (sim_state_base): Delete conditionals surrounding |
| 211 | member scache_size. |
| 212 | |
| 213 | Tue Feb 10 18:31:49 1998 Andrew Cagney <cagney@b1.cygnus.com> |
| 214 | |
| 215 | * sim-load.c (sim_load_file): Print LMA/VMA according to value |
| 216 | used. |
| 217 | |
| 218 | Tue Feb 10 14:56:23 1998 Ian Carmichael <iancarm@cygnus.com> |
| 219 | |
| 220 | * sim-core.c: Add missing prototypes for WITH_DEVICES. |
| 221 | Add missing parameters to device_io calls. |
| 222 | * sim-core.h: Add missing parameters to device_io calls. |
| 223 | |
| 224 | Mon Feb 9 14:48:37 1998 Doug Evans <devans@canuck.cygnus.com> |
| 225 | |
| 226 | * cgen-sim.h (DECODE): Always use switch for `read' for now. |
| 227 | (PAREXEC): Renamed from PARALLEL_EXEC. All uses updated. |
| 228 | (SEMANTIC{,_CACHE}_FN): Fix return type. |
| 229 | * cgen.sh (decode): Add s/@arch@/$arch/. |
| 230 | * genmloop.sh (@cpu@_engine_run): Delete `current_state'. |
| 231 | (engine_resume): Likewise. Make `engine' volatile. Save copy |
| 232 | of cpu pointer in volatile object. Initialize read switch if |
| 233 | -parallel. |
| 234 | |
| 235 | Thu Feb 5 13:27:04 1998 Doug Evans <devans@seba.cygnus.com> |
| 236 | |
| 237 | * cgen-sim.h (EX_FN_NAME): _exc_ -> _ex_. |
| 238 | (SEM_INSN): New macro. |
| 239 | |
| 240 | Tue Feb 3 16:31:56 1998 Andrew Cagney <cagney@b1.cygnus.com> |
| 241 | |
| 242 | * sim-run.c (sim_engine_run): Assume IMEM is 32 bit. |
| 243 | |
| 244 | Sun Feb 1 16:47:51 1998 Andrew Cagney <cagney@b1.cygnus.com> |
| 245 | |
| 246 | * configure: Regenerated to track ../common/aclocal.m4 changes. |
| 247 | |
| 248 | Sun Feb 1 16:16:57 1998 Andrew Cagney <cagney@b1.cygnus.com> |
| 249 | |
| 250 | * sim-types.h (fp_word): New type, define according to |
| 251 | WITH_TARGET_FLOATING_POINT_BITSIZE. |
| 252 | |
| 253 | * aclocal.m4 (default_sim_floating_point_bitsize): Add |
| 254 | configuration of size of floating point registers. |
| 255 | |
| 256 | Sun Feb 1 14:02:31 1998 Andrew Cagney <cagney@b1.cygnus.com> |
| 257 | |
| 258 | * sim-profile.c (profile_print): Only print CPU <N> if other |
| 259 | output is going to appear. |
| 260 | |
| 261 | Sat Jan 31 18:15:41 1998 Andrew Cagney <cagney@b1.cygnus.com> |
| 262 | |
| 263 | * configure: Regenerated to track ../common/aclocal.m4 changes. |
| 264 | |
| 265 | Sat Jan 31 18:03:55 1998 Andrew Cagney <cagney@b1.cygnus.com> |
| 266 | |
| 267 | * sim-types.h (address_word): Typedef according to |
| 268 | WITH_TARGET_ADDRESS_BITSIZE. |
| 269 | (signed_cell, unsigned_cell, natural_cell): Ditto using |
| 270 | WITH_TARGET_CELL_BITSIZE. |
| 271 | |
| 272 | * sim-config.h (WITH_TARGET_ADDRESS_BITSIZE): Define. |
| 273 | (WITH_TARGET_CELL_BITSIZE): Define. |
| 274 | (WITH_HOST_WORD_BITSIZE): Delete. |
| 275 | |
| 276 | * sim-config.c (print_sim_config): Update. |
| 277 | |
| 278 | * aclocal.m4 (SIM_AC_OPTION_BITSIZE): Add support for |
| 279 | configuration of address and OpenFirmware cell sizes. |
| 280 | |
| 281 | Fri Jan 30 09:36:33 1998 Andrew Cagney <cagney@b1.cygnus.com> |
| 282 | |
| 283 | * sim-engine.h (sim_engine_run): Add argument nr_cpus. |
| 284 | * sim-run.c (sim_engine_run): Update. |
| 285 | |
| 286 | * sim-engine.h (SIM_ENGINE_HALT_HOOK): Use SET_CPU_CIA instead of |
| 287 | CPU_CIA. |
| 288 | * sim-run.c (sim_engine_run): Ditto. |
| 289 | |
| 290 | * sim-resume.c (sim_resume): Obtain nr_cpus from sim_engine. |
| 291 | (sim_resume): Pass nr_cpus to sim_engine_run. |
| 292 | |
| 293 | * sim-engine.h (struct _sim_engine): Add member nr_cpus. |
| 294 | |
| 295 | * sim-engine.c (sim_engine_init): Hardwire nr_cpus to |
| 296 | MAX_NR_PROCESSORS. |
| 297 | (sim_engine_nr_cpus) sim-engine.c, sim-engine.h: New function |
| 298 | |
| 299 | Thu Jan 29 12:13:01 1998 Doug Evans <devans@canuck.cygnus.com> |
| 300 | |
| 301 | * cgen.sh: Portably read parms past $9. |
| 302 | |
| 303 | Fri Jan 23 14:20:54 1998 Doug Evans <devans@seba.cygnus.com> |
| 304 | |
| 305 | * Make-common.in (stamp-tvals): New rule. |
| 306 | (targ-vals.h,targ-map.c): Depend on it. |
| 307 | (clean): Remove stamp-tvals. |
| 308 | |
| 309 | Tue Jan 20 21:35:13 1998 Michael Meissner <meissner@cygnus.com> |
| 310 | |
| 311 | * sim-utils.c (sim_state_alloc): #if 0 variable that is only used |
| 312 | in code also #if 0'ed. |
| 313 | |
| 314 | Mon Jan 19 22:26:29 1998 Doug Evans <devans@seba> |
| 315 | |
| 316 | * configure: Regenerated to track ../common/aclocal.m4 changes. |
| 317 | * aclocal.m4: Recognize --enable-maintainer-mode. |
| 318 | |
| 319 | Mon Jan 19 12:45:45 1998 Doug Evans <devans@seba.cygnus.com> |
| 320 | |
| 321 | start-sanitize-cygnus |
| 322 | * Make-common.in (cgen-{arch,cpu,decode}): New targets. |
| 323 | * cgen.sh: New file. |
| 324 | end-sanitize-cygnus |
| 325 | * cgen-scache.h: Deleted. |
| 326 | * Make-common.in (cgen-run.o,cgen-scache.o): Delete cgen-scache.h dep. |
| 327 | (CGEN_CPU_SCM): Add sim-model.scm. |
| 328 | * cgen-scache.c: Only compile contents if WITH_SCACHE. |
| 329 | (scache_init): Use runtime computed size of SCACHE. |
| 330 | (scache_flush): Likewise. |
| 331 | * cgen-mem.h (GETIMEMU[QHSD]I): Declare. |
| 332 | ([GS]ETT{QI,UQI,HI,UHI,SI,USI,DI,UDI}): Declare. |
| 333 | * cgen-sim.h: Scache support moved here. |
| 334 | (PC): Redo definition. |
| 335 | (ARGBUF,SCACHE,PARALLEL_EXEC): Provide forward decls. |
| 336 | (DECODE): Add parallel execution support. |
| 337 | Only include semantic label members if using switch. |
| 338 | (SWITCH,CASE,BREAK,DEFAULT,ENDSWITCH): Portable computed goto support. |
| 339 | (CGEN_CPU): Delete members exec_state, halt_sigrc, halt_jmp_buf. |
| 340 | (IADDR,CIA,SEM_ARG,EX_FN_NAME,SEM_FN_NAME,RECORD_IADDR,SEM_ARGBUF, |
| 341 | SEM_NEXT_PC,SEM_BRANCH_VIA_{CACHE,ADDR},SEM_NEW_PC_ADDR): Moved here |
| 342 | from cgen-types.h. |
| 343 | (engine_{stop,run,resume,halt,signal}): Delete decls. |
| 344 | * cgen-types.h (CGEN_{XCAT3,CAT3}): Delete. |
| 345 | (argbuf,scache): Delete forward decls. |
| 346 | (STATE): Delete decl. |
| 347 | * cgen-utils.c: Don't include decode.h, mem-ops.h, sem-ops.h. |
| 348 | Include cgen-mem.h, cgen-ops.h. |
| 349 | (engine_halt,engine_signal): Delete. |
| 350 | ({ex,exc,sem,semc}_illegal): Delete. |
| 351 | (sim_disassemble_insn): Result of extract fn is in bits. |
| 352 | * genmloop.sh: Rewrite. |
| 353 | |
| 354 | * cgen-trace.c (trace_insn): Set printed_result_p=0 if not tracing |
| 355 | line numbers. |
| 356 | |
| 357 | * sim-base.h (sim_state_base): Delete member `model'. |
| 358 | (sim_cpu_base): Add member `model'. |
| 359 | * sim-model.h (IMP_PROPERTIES): New type. |
| 360 | (MACH): New members imp_props, models. |
| 361 | (models): Delete decl. |
| 362 | * sim-model.c (set_model): Update. |
| 363 | * sim-profile.c (profile_print_model): Update. |
| 364 | |
| 365 | * sim-utils.c (sim_state_alloc): Delete setting of cpu backlink here. |
| 366 | |
| 367 | Fri Jan 16 12:33:09 1998 Nick Clifton <nickc@cygnus.com> |
| 368 | |
| 369 | * cgen-trace.c (trace_insn): Call CGEN_INSN_MNEMONIC() rather than |
| 370 | CGEN_INSN_SYNTAX(). |
| 371 | |
| 372 | Mon Dec 15 23:17:11 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 373 | |
| 374 | * configure: Regenerated to track ../common/aclocal.m4 changes. |
| 375 | * config.in: Ditto. |
| 376 | |
| 377 | Mon Dec 15 23:16:03 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 378 | |
| 379 | * aclocal.m4 (AR): Check for sigaction. |
| 380 | |
| 381 | Thu Dec 4 09:21:05 1997 Doug Evans <devans@canuck.cygnus.com> |
| 382 | |
| 383 | * Make-common.in (sim-core.o): Depend on $(sim_main_headers). |
| 384 | |
| 385 | * sim-config.h (WITH_TREE_PROPERTIES): Define as 0. |
| 386 | * sim-config.c (sim_config): Replace WITH_DEVICES with |
| 387 | WITH_TREE_PROPERTIES. |
| 388 | |
| 389 | * configure: Regenerated to track ../common/aclocal.m4 changes. |
| 390 | |
| 391 | Wed Dec 3 17:56:02 1997 Doug Evans <devans@canuck.cygnus.com> |
| 392 | |
| 393 | * Make-common.in (SIM_ENVIRONMENT): New variable. |
| 394 | (CONFIG_CFLAGS): Add it. |
| 395 | * aclocal.m4 (SIM_AC_OPTION_ENVIRONMENT): Handle |
| 396 | --enable-sim-environment option. |
| 397 | * configure: Regenerated. |
| 398 | * sim-config.h (environment support): Rewrite. |
| 399 | * sim-config.c (current_environment): Define as enum, unconditionally. |
| 400 | (current_alignment): Define unconditionally. |
| 401 | (config_environment_to_a): Update. |
| 402 | (config_alignment_to_a): Fix type of argument. Define unconditionally. |
| 403 | (sim_config): Handle environment and alignment determination |
| 404 | unconditionally. Delete sanity checks of current_environment, |
| 405 | unnecessary. |
| 406 | (print_sim_config): Update. |
| 407 | * sim-options.c (STANDARD_OPTIONS enum): Add OPTION_ENVIRONMENT. |
| 408 | (standard_options): Add --environment. |
| 409 | (standard_option_handler): Likewise. |
| 410 | |
| 411 | Fri Nov 28 12:21:25 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 412 | |
| 413 | * sim-alu.h: Add notes on carry vs borrow for subtraction. |
| 414 | (ALU{,8,16,32,64}ADD): Redefine ADD macro as add overflowing. |
| 415 | (ALU{,8,16,32,64}ADDC): Define - add carrying. |
| 416 | (ALU{,8,16,32,64}SUB): Redefine SUB macro as subtract overflowing. |
| 417 | (ALU{,8,16,32,64}SUBB): Define - subtract borrowing. |
| 418 | (ALU{,8,16,32,64}SUBC): Define - tract carrying. |
| 419 | (ALU{,8,16,32,64}ADD_CA, ALU{,8,16,32,64}ADDC_C): Replace single |
| 420 | argument ADD_CA macro with two argument ADDC_C - add carrying with |
| 421 | carry in. |
| 422 | (ALU{,8,16,32,64}SUB_CA, ALU{,8,16,32,64}SUBC_X): Replace single |
| 423 | argument SUB_CA macro with two argument SUBC_X - subtract |
| 424 | carrying, extended. |
| 425 | (ALU{,8,16,32,64}SUBB_B): Define - subtract borrowing with |
| 426 | borrow-in. |
| 427 | (ALU{,8,16,32,64}NEGC, ALU{,8,16,32,64}NEGB): Define. |
| 428 | |
| 429 | Sun Nov 30 17:40:57 1997 Michael Meissner <meissner@cygnus.com> |
| 430 | |
| 431 | * sim-io.c (sim_io_{syscalls,getstring}): Delete. No longer used. |
| 432 | * sim-io.h (sim_io_syscalls): Delete. |
| 433 | |
| 434 | Fri Nov 28 20:10:09 1997 Michael Meissner <meissner@cygnus.com> |
| 435 | |
| 436 | * syscall.c (cb_syscall): Add missing else, so write to stdout |
| 437 | isn't doubled. |
| 438 | |
| 439 | * sim-alu.h (ALU{,8,16,32,64}_SET_CARRY): Provide macros to import |
| 440 | the carry bit from the CPU's psw. |
| 441 | |
| 442 | Fri Nov 28 11:15:05 1997 Doug Evans <devans@canuck.cygnus.com> |
| 443 | |
| 444 | * gennltvals.sh: Redo syscall support. |
| 445 | * nltvals.def: Regenerated. |
| 446 | |
| 447 | Wed Nov 26 16:49:38 1997 Michael Meissner <meissner@cygnus.com> |
| 448 | |
| 449 | * syscall.c (cb_syscall): If writing to stdout or stderr, flush |
| 450 | the stream immediately. |
| 451 | |
| 452 | Wed Nov 26 12:32:11 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 453 | |
| 454 | * sim-io.c (sim_io_getstring): Delete unused len2. |
| 455 | (sim_io_syscalls): Ditto for sys_errno. |
| 456 | |
| 457 | Wed Nov 26 11:18:40 1997 Doug Evans <devans@canuck.cygnus.com> |
| 458 | |
| 459 | * syscall.c (cb_syscall): Test CB_SYSCALL struct magic number. |
| 460 | |
| 461 | * Make-common.in (run.o): Depend on remote-sim.h. |
| 462 | (nrun.o,sim-hload.o,sim-hrw.o): Likewise. |
| 463 | (sim-io.o,sim-reason.o,sim-resume.o): Likewise. |
| 464 | |
| 465 | Tue Nov 25 20:12:46 1997 Michael Meissner <meissner@cygnus.com> |
| 466 | |
| 467 | * sim-io.c (sim_io_syscalls): Disable lseek. |
| 468 | |
| 469 | Tue Nov 25 00:12:38 1997 Doug Evans <devans@seba.cygnus.com> |
| 470 | |
| 471 | start-sanitize-d30v |
| 472 | * gennltvals.sh: Generate syscall values for d30v. |
| 473 | end-sanitize-d30v |
| 474 | * gennltvals.sh: Use libgloss/syscall.h for sparc. |
| 475 | * nltvals.def: Regenerate. |
| 476 | |
| 477 | * callback.c (os_stat): Make 3rd arg a host struct stat ptr. |
| 478 | (os_fstat): Likewise. Validate fd argument. |
| 479 | (cb_host_to_target_stat): Delete big_p arg. If HS arg is NULL, |
| 480 | just compute target stat struct length. |
| 481 | * syscall.c: #include "libiberty.h", <sys/types.h>, <sys/stat.h>. |
| 482 | (ENOSYS,ENAMETOOLONG): Provide definitions if missing. |
| 483 | (get_string): Return host errno values so they can be properly |
| 484 | translated later. |
| 485 | (cb_syscall): Likewise. |
| 486 | (cb_syscall, cases open,unlink): Use get_path instead of get_string. |
| 487 | (cb_syscall, case read): Use read_stdin for file descriptor 0. |
| 488 | (cb_syscall, case write): Use write_stderr for file descriptor 2. |
| 489 | (cb_syscall): Add cases for lseek, unlink, stat, fstat, time. |
| 490 | (get_path): New function. |
| 491 | |
| 492 | Mon Nov 24 18:56:07 1997 Michael Meissner <meissner@cygnus.com> |
| 493 | |
| 494 | * sim-io.c (sim_io_syscalls): New function to provide system call |
| 495 | emulation. Provide exit, open, close, read, write, lseek, and |
| 496 | unlink. |
| 497 | (sim_io_getstring): New function to return a string from a |
| 498 | simulated memory location. |
| 499 | |
| 500 | * sim-io.h (sim_io_syscalls): Add declaration. |
| 501 | |
| 502 | Mon Nov 24 12:09:59 1997 Doug Evans <devans@seba.cygnus.com> |
| 503 | |
| 504 | * sim-core.c (sim_core_signal): Fix spelling error in message. |
| 505 | |
| 506 | * sim-hrw.c (sim_read): Use read map, not write map. |
| 507 | |
| 508 | * Make-common.in (all): Add .gdbinit. |
| 509 | * gdbinit.in: Add dump command. |
| 510 | |
| 511 | * sim-model.c (model_options): Use '\0' for `shortopt'. |
| 512 | |
| 513 | * sim-trace.c (trace_option_handler): Set state trace file |
| 514 | for --trace-file in addition to cpu's values. |
| 515 | (trace_vprintf): If cpu == NULL, try state's trace file. |
| 516 | (trace_options): Reorganize table, reword some descriptions. |
| 517 | |
| 518 | Sun Nov 23 10:57:00 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 519 | |
| 520 | * sim-fpu.c (sim_fpu_abs, sim_fpu_neg, sim_fpu_inv), sim-fpu.h: |
| 521 | New functions. |
| 522 | |
| 523 | Sat Nov 22 19:16:54 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 524 | |
| 525 | * sim-reason.c (sim_stop_reason): For sim_signalled, return the |
| 526 | signal untranslated, document problem with this. |
| 527 | |
| 528 | * nrun.c (main): Check for a prog name of `*step'. If present, |
| 529 | step the simulator instead of allowing it to run free. |
| 530 | |
| 531 | * sim-signal.c (SIGQUIT): Define on _MSC_VER hosts. |
| 532 | |
| 533 | * Make-common.in (sim_main_headers): Add sim-signal.h. |
| 534 | |
| 535 | Fri Nov 21 09:32:32 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 536 | |
| 537 | * sim-signal.c (sim_signal_to_host): Return 0 for SIM_SIGNONE. |
| 538 | |
| 539 | Thu Nov 20 20:35:20 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 540 | |
| 541 | * sim-signal.h: Start simulator signals at 64 so that host signal |
| 542 | numbers can be detected and reported. |
| 543 | |
| 544 | * sim-signal.h (SIM_SIGFPE), sim-signal.h: Add signal. |
| 545 | |
| 546 | Wed Nov 19 12:02:41 1997 Doug Evans <devans@seba.cygnus.com> |
| 547 | |
| 548 | * callback.c (cb_host_to_target_stat): Fix return values. |
| 549 | |
| 550 | * cgen-sim.h (enum_signal_type): Delete. |
| 551 | (engine_signal): Update prototype. |
| 552 | * cgen-utils.c: Don't include <signal.h>. |
| 553 | (sim_signal_to_host): Delete, lives in sim-signal.c now. |
| 554 | (engine_signal): Update. |
| 555 | |
| 556 | * sim-utils.c (sim_state_alloc): Call SIM_STATE_ALLOC if defined. |
| 557 | (sim_state_free): Call SIM_STATE_FREE if defined. |
| 558 | |
| 559 | * sim-module.c (sim_module_install): Don't leave any modules |
| 560 | installed if one fails to install. |
| 561 | |
| 562 | Wed Nov 19 13:25:48 1997 Michael Meissner <meissner@cygnus.com> |
| 563 | |
| 564 | * sim-options.c: Don't include ../libiberty/alloca-conf.h any |
| 565 | more, since alloca is not used in this file. |
| 566 | |
| 567 | * sim-alu.h (ALU{32,64}_*): Rewrite 32 and 64 bit ALU support to |
| 568 | correctly set the carry and overflow bits for those types. |
| 569 | (ALU{8,16,32,64}_{ADD,SUB}_CA): Take VAL argument to add along |
| 570 | with carry, so carry is correct after doing both adds. |
| 571 | (ALU*): Space out '\' to make it easier to read. |
| 572 | |
| 573 | Tue Nov 18 15:53:45 1997 Doug Evans <devans@canuck.cygnus.com> |
| 574 | |
| 575 | * sim-core.c (sim_core_signal): Use sim_stopped instead of |
| 576 | sim_signalled. |
| 577 | |
| 578 | * sim-signal.c, sim-signal.h: New files. |
| 579 | * Make-common.in (sim-signal.o): Add rule for. |
| 580 | (SIM_NEW_COMMON_OBJS): Add sim-signal.o. |
| 581 | * sim-abort.c: Don't include <signal.h>. |
| 582 | * sim-basics.h: #include "sim-signal.h". |
| 583 | * sim-break.c: Don't include <signal.h>. |
| 584 | (sim_handle_breakpoint): Replace SIGTRAP with SIM_SIGTRAP. |
| 585 | * sim-core.c: Don't include <signal.h>. |
| 586 | (SIGBUS): Delete definition. |
| 587 | (sim_core_signal): Replace SIGSEGV,SIGBUS with SIM_SIGSEGV,SIM_SIGBUS. |
| 588 | * sim-engine.c: Don't include <signal.h>. |
| 589 | (sim_engine_abort): Replace SIGABRT with SIM_SIGABRT. |
| 590 | * sim-reason.c (sim_stop_reason): Call sim_signal_to_host. |
| 591 | * sim-resume.c: Don't include <signal.h>. |
| 592 | (SIGTRAP): Delete definition. |
| 593 | (has_stepped): Replace SIGTRAP with SIM_SIGTRAP. |
| 594 | * sim-stop.c: Don't include <signal.h>. |
| 595 | (control_c_simulation): Replace SIGINT with SIM_SIGINT. |
| 596 | * sim-watch.c: Don't include <signal.h>. |
| 597 | (handle_watchpoint): Replace SIGINT with SIM_SIGINT. |
| 598 | |
| 599 | * Make-common.in (SIM_NEW_COMMON_OBJS): New variable. |
| 600 | |
| 601 | * sim-base.h (CIA_ADDR): Provide default definition. |
| 602 | * sim-core.c (sim_core_signal): Use CIA_ADDR to fetch value. |
| 603 | * sim-break.c (sim_handle_breakpoint): Likewise. |
| 604 | |
| 605 | Mon Nov 17 14:15:31 1997 Doug Evans <devans@seba.cygnus.com> |
| 606 | |
| 607 | * Make-common.in (srccom): New variable. |
| 608 | |
| 609 | * Make-common.in (DEP, COMMON_DEP_CFLAGS): Define. |
| 610 | (LIB_OBJS): Add syscall.o. |
| 611 | (gentmap): Pass $(NL_TARGET) to $(CC). |
| 612 | (syscall.o): Add rule for. |
| 613 | (sim_main_headers): Add $(SIM_EXTRA_DEPS). |
| 614 | (sim-bits.o): Depend on $(sim-n-bits_h). |
| 615 | (sim-load.o): Depend on callback.h. |
| 616 | |
| 617 | * Make-common.in (cgen-*.o): Update dependencies, mem-ops.h renamed to |
| 618 | cgen-mem.h, sem-ops.h renamed to cgen-ops.h. |
| 619 | * cgen-mem.h, cgen-ops.h: New files. |
| 620 | |
| 621 | * aclocal.m4 (--enable-sim-scache): Pass -DWITH_SCACHE=0 for "=no". |
| 622 | |
| 623 | * Makefile.in (nltvals.def): Depend on gennltvals.sh. |
| 624 | Rewrite build rule. |
| 625 | * callback.c: #include string.h or strings.h. |
| 626 | #include sys/types.h and sys/stat.h. |
| 627 | (cb_init_syscall_map,cb_init_errno_map,cb_init_open_map): Declare. |
| 628 | (os_get_errno,os_open): Update. |
| 629 | (os_stat,os_fstat): New functions. |
| 630 | (os_init): Initialize syscall_map, errno_map, open_map. |
| 631 | (default_callback): Add entries for os_stat, os_fstat, syscall_map, |
| 632 | errno_map, open_map, signal_map, stat_map. |
| 633 | (cb_read_target_syscall_maps): New function. |
| 634 | (cb_target_to_host_syscall): New function. |
| 635 | (cb_host_to_target_errno): Renamed from host_to_target_errno. |
| 636 | (cb_target_to_host_open): Renamed from target_to_host_open. |
| 637 | (store): New function. |
| 638 | (cb_host_to_target_stat): New function. |
| 639 | * syscall.c: New file. |
| 640 | * gentmap.c (sys_tdefs): New global. |
| 641 | (gen_targ_vals_h): Output target syscall numbers. |
| 642 | (gen_targ_map_c): Update. Output target syscall translation map. |
| 643 | * gentvals.sh: New first argument `target'. Preface table with |
| 644 | #ifdef NL_TARGET_$target if non-null target passed. |
| 645 | * gennltvals.sh: New file. |
| 646 | * nltvals.def: Regenerated. |
| 647 | |
| 648 | Fri Nov 14 11:33:34 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 649 | |
| 650 | * sim-n-core.h (sim_core_read_unaligned_N): Return static |
| 651 | sim_core_dummy_M. |
| 652 | (sim_core_dummy_M): Declare. |
| 653 | |
| 654 | Wed Nov 12 18:16:15 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 655 | |
| 656 | * sim-core.c (sim_core_signal): Print the address of the |
| 657 | instruction. |
| 658 | |
| 659 | Thu Nov 13 11:49:41 1997 Doug Evans <devans@seba.cygnus.com> |
| 660 | |
| 661 | * sim-base.h (sim_state_base): Move `magic' to end of struct. |
| 662 | |
| 663 | * sim-base.h (sim_state_base): Add member trace_data. |
| 664 | (STATE_TRACE_DATA): New macro. |
| 665 | * sim-trace.h (TRACE_DEBUG_IDX,TRACE_debug): New macros. |
| 666 | ({WITH_,}TRACE_DEBUG_P): New macros. |
| 667 | (STATE_TRACE_FLAGS,STRACE_P,STRACE_DEBUG_P): New macros. |
| 668 | (_sim_cpu): Delete forward reference. |
| 669 | (debug_printf): Update. |
| 670 | * sim-trace.c (OPTION_TRACE_DEBUG): Define. |
| 671 | (trace_options): Add --trace-debug. |
| 672 | (set_trace_options): Handle it. |
| 673 | (trace_option_handler): Likewise. |
| 674 | (trace_install): Init state trace_data struct. |
| 675 | (trace_uninstall): Close state trace file. |
| 676 | * sim-events.c (ETRACE): Only print source file and line number if |
| 677 | --trace-debug. |
| 678 | * sim-n-core.h (sim_core_trace_M): Likewise. |
| 679 | |
| 680 | * sim-core.c (sim_core_signal): Add missing "\n" in message. |
| 681 | |
| 682 | 1997-11-13 Felix Lee <flee@cygnus.com> |
| 683 | |
| 684 | * sim-n-core.h (sim_core_read_unaligned_N): illegal empty |
| 685 | initializer. |
| 686 | * sim-types.h (unsigned128,signed128): fix typo for MSVC. |
| 687 | |
| 688 | Wed Nov 12 12:18:08 1997 Doug Evans <devans@canuck.cygnus.com> |
| 689 | |
| 690 | * aclocal.m4 (SIM_AC_OPTION_SCACHE): Fix typo. |
| 691 | |
| 692 | * Make-common.in (BUILT_SRC_FROM_COMMON): Remove files no longer |
| 693 | built this way. |
| 694 | (sim-config.o): Remove non-existent $(sim-nconfig_h) dependency. |
| 695 | (clean): Don't delete $(BUILT_SRC_FROM_COMMON) if building in |
| 696 | source tree. |
| 697 | |
| 698 | Tue Nov 11 13:28:02 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 699 | |
| 700 | * sim-events.c (sim_events_process): Re-compute the time - |
| 701 | update_time_from_event - as each event is processed. Reverses |
| 702 | previous change. |
| 703 | |
| 704 | Fri Nov 7 00:37:36 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 705 | |
| 706 | * callback.c (os_poll_quit): Replace _WIN32 with _MSC_VER. |
| 707 | |
| 708 | Fri Nov 7 00:37:36 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 709 | |
| 710 | * sim-events.c (sim_events_process): Delete redundant call to |
| 711 | update_time_from_event. |
| 712 | (sim_events_slip): Always decrement time_from_event. |
| 713 | (sim_events_tick, sim_events_deschedule, update_time_from_event): |
| 714 | Delete assertion that time_from_event >=0 when work in queue, no |
| 715 | longer applicable. |
| 716 | |
| 717 | Thu Nov 6 12:06:46 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 718 | |
| 719 | * sim-options.c (STANDARD_OPTIONS): Change OPTION_* to an enum. |
| 720 | (standard_option_handler): Update. |
| 721 | |
| 722 | * sim-options.h: Clarify documentation. |
| 723 | (OPTION_LONG_ONLY_P): Delete definition. |
| 724 | (OPTION_VALID_P): Define. |
| 725 | |
| 726 | * sim-options.c (sim_print_help): Allow short only options. |
| 727 | (sim_parse_args): Ditto. |
| 728 | (sim_args_command): Skip short only options. |
| 729 | (sim_parse_args): Allocate space for NUM_OPTS not just 256. Make |
| 730 | separate entries for short and long options in the HANDLERS and |
| 731 | ORIG_VAL tables. |
| 732 | (sim_parse_args): Disable argument permutation. |
| 733 | |
| 734 | Wed Nov 5 13:40:31 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 735 | |
| 736 | * sim-core.h (DECLARE_SIM_CORE_WRITE_N. DECLARE_SIM_CORE_READ_N): |
| 737 | Add argument M, size of data type. |
| 738 | (sim_core_read_misaligned_3, sim_core_write_misaligned_3): |
| 739 | Declare, ditto for 5, 6 & 7 byte transfers. |
| 740 | (sim_core_write_unaligned_1, sim_core_write_unaligned_1): Define |
| 741 | as aligned variant. |
| 742 | |
| 743 | * sim-n-core.h (sim_core_trace_M): Rename from |
| 744 | sim_core_trace_N. Add nr_bytes argument. Replace transfer argument |
| 745 | with transfer type. Print transfer direction. Handle 1 and 2 byte |
| 746 | transfers. |
| 747 | (sim_core_read_unaligned_N, sim_core_write_unaligned_N): Trace |
| 748 | unaligned accesses. |
| 749 | (unsigned_M, T2H_M, H2T_M): Rename from unsigned_N, T2H_N, H2T_N. |
| 750 | Update all functions. |
| 751 | |
| 752 | * sim-core.c: Generate functions starting with 16 not 1. |
| 753 | (sim_core_read_unaligned_3): Generate. Ditto for 3 byte write and |
| 754 | all 5, 6 & 7 byte transfers. |
| 755 | |
| 756 | * sim-n-core.h (sim_core_read_misaligned_N, |
| 757 | sim_core_write_misaligned_N): Implement. |
| 758 | |
| 759 | Mon Nov 3 15:03:04 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 760 | |
| 761 | * sim-endian.h (U16_8): Implement |
| 762 | |
| 763 | * sim-endian.c (sim_endian_split_16, sim_endian_join_16): New functions |
| 764 | |
| 765 | * sim-endian.h (VL8_16, VH8_16): Implement. |
| 766 | |
| 767 | * sim-memopt.c (memory_option_handler): Typecast 64bit value to |
| 768 | long in printf. |
| 769 | (memory_option_handler): Only zalloc modulo bytes when non-zero. |
| 770 | (memory_option_handler): Skip comma in alias address list |
| 771 | |
| 772 | Fri Oct 31 13:03:33 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 773 | |
| 774 | * sim-memopt.c (do_memopt_add, do_memopt_delete): Add level and |
| 775 | space params. |
| 776 | (parse_size, parse_addr): New functions |
| 777 | (memory_option_handler, memory_options): Parse address & size |
| 778 | using new functions. Pass level, space, modulo to do_memopt_add & |
| 779 | do_memopt_del. |
| 780 | |
| 781 | * sim-memopt.h (struct _sim_memopt): Add level & space fields. |
| 782 | |
| 783 | * sim-core.h (sim_core_arrach, sim_core_detach): Replace |
| 784 | `attach_type attach' argument with `unsigned level' argument. |
| 785 | Document. |
| 786 | |
| 787 | * sim-core.c (new_sim_core_mapping, sim_core_map_attach, |
| 788 | sim_core_attach): Replace argument attach with level. Update |
| 789 | verification of arguments. |
| 790 | (sim_core_map_detach, sim_core_detach): Replace argument attach |
| 791 | with level. |
| 792 | |
| 793 | * sim-basics.h (enum _attach_type): Delete. |
| 794 | |
| 795 | Thu Oct 30 13:45:00 1997 Doug Evans <devans@seba.cygnus.com> |
| 796 | |
| 797 | * sim-core.h (sim_core_write_8): Define. |
| 798 | |
| 799 | Tue Oct 28 12:29:22 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 800 | |
| 801 | * sim-bits.h: Document ROTn macro. |
| 802 | |
| 803 | * sim-endian.h (H2T): Handle 16 byte variables. |
| 804 | |
| 805 | * sim-n-core.h (sim_core_read_unaligned_N): Return a dummy when an |
| 806 | error. |
| 807 | |
| 808 | * sim-core.c: Do not generate sim_core_*_word. |
| 809 | |
| 810 | * sim-n-core.h (sim_core_trace_N): Add line_nr argument. |
| 811 | (sim_core_write_aligned_N, sim_core_read_aligned_N): Update. |
| 812 | |
| 813 | * sim-core.h (sim_core_read_unaligned_word, |
| 814 | sim_core_read_aligned_word, sim_core_read_word, |
| 815 | sim_core_write_unaligned_word, sim_core_write_aligned_word, |
| 816 | sim_core_write_word): Change to macros that map onto sim_core_*_N. |
| 817 | |
| 818 | Mon Oct 27 11:25:10 1997 Doug Evans <devans@canuck.cygnus.com> |
| 819 | |
| 820 | * sim-n-endian.h: Add TAGS entrys for 16 byte versions. |
| 821 | |
| 822 | * sim-endian.h: Disable 16 byte support. |
| 823 | |
| 824 | Mon Oct 27 12:00:48 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 825 | |
| 826 | * sim-endian.c (_SWAP_16): Define. Generate 126 bit swap code. |
| 827 | |
| 828 | * sim-n-core.h (sim_core_trace_N): New function. |
| 829 | (sim_core_read_aligned_N, sim_core_write_aligned_N): Use, |
| 830 | (sim_core_read_unaligned_N): Do not retyrn bogus value wden error. |
| 831 | |
| 832 | * sim-endian.h: Add 128 bit variant. |
| 833 | |
| 834 | * sim-core.h, sim-core.c: Add 128 bit variant. |
| 835 | |
| 836 | * sim-types.h: Add signed128 and unsigned128 types using a struct. |
| 837 | |
| 838 | Fri Oct 24 11:33:07 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 839 | |
| 840 | * sim-events.c (sim_events_process): Clear events->work_pending. |
| 841 | (sim_events_tickn, sim_events_tick): Accumulate, instead of |
| 842 | setting, nr_ticks_to_process. |
| 843 | (sim_events_preprocess): Allow nr_ticks_to_process to be non-zero |
| 844 | when the event queue isn't next. |
| 845 | |
| 846 | * sim-events.h, sim-events.c (sim_events_slip): New function. |
| 847 | |
| 848 | Wed Oct 22 14:18:38 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 849 | |
| 850 | * sim-hload.c (sim_load): Pass lma_p==0 and do_load=sim_load. |
| 851 | |
| 852 | * sim-utils.h, sim-load.c (sim_load_file): Add lma_p and do_load |
| 853 | arguments. |
| 854 | |
| 855 | Tue Oct 21 18:37:57 1997 Doug Evans <devans@canuck.cygnus.com> |
| 856 | |
| 857 | * nrun.c (main): Remove useless test of name != NULL. |
| 858 | Exit if bfd_openr fails. Call bfd_check_format after bfd_openr. |
| 859 | |
| 860 | Tue Oct 21 10:42:38 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 861 | |
| 862 | * sim-fpu.c (EXPMAX): Type is unsigned. |
| 863 | (MIN_INT, MAX_INT): Type is signed64. |
| 864 | (i2fpu): Type of val is signed64. |
| 865 | |
| 866 | Tue Oct 21 10:42:38 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 867 | |
| 868 | * sim-profile.h (PROFILE_PC_BUCKET_SIZE): Treat a shift of zero as |
| 869 | a bucket size of zero. |
| 870 | |
| 871 | * sim-profile.c (OPTION_PROFILE_PC_GRANULARITY, |
| 872 | OPTION_PROFILE_PC): Define. |
| 873 | (profile_option_handler): Add support for --profile-pc and |
| 874 | --profile-pc-granularity options. |
| 875 | (profile_pc_init): When possible, compute nr buckets from bucket |
| 876 | size. |
| 877 | |
| 878 | * sim-profile.c (profile_pc_init): Align the profile-pc end |
| 879 | address with the profile-pc bucket size. |
| 880 | |
| 881 | * sim-profile.h (PROFILE_PC_NR_BUCKETS): Rename PROFILE_PC_SIZE to |
| 882 | something less ambiguous. |
| 883 | (PROFILE_PC_BUCKET_SIZE): Ditto for PROFILE_PC_SAMPLE_SIZE. |
| 884 | |
| 885 | * sim-profile.c (profile_pc_cleanup): New function. Move |
| 886 | profile_pc_uninstall code to here. |
| 887 | (profile_pc_uninstall): Call. |
| 888 | (profile_pc_init): Call. |
| 889 | |
| 890 | Mon Oct 20 17:23:58 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 891 | |
| 892 | * sim-profile.c (profile_print_pc): Dump pc profile to dmon.out |
| 893 | file using BSD gprof format. |
| 894 | |
| 895 | * sim-bits.h (LSBIT, MSBIT, BIT): Force result to type |
| 896 | unsigned_word. |
| 897 | (LSBIT8, LSBIT16, LSBIT32, LSBIT64, MSBIT8, MSBIT16, MSBIT32, |
| 898 | MSBIT64): Force result to unsignedN. |
| 899 | |
| 900 | Thu Oct 16 11:38:56 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 901 | |
| 902 | * sim-alu.h (ALU16_BEGIN, ALU32_BEGIN, ALU64_BEGIN): Drop opening |
| 903 | brace from macro. |
| 904 | (ALU8_BEGIN, ALU8_SET, ALU8_ADD, ALU8_SUB, ALU8_NEGATE): Define. |
| 905 | (ALU16_ADD, ALU16_SUB, ALU16_NEGATE): Simplify arrithmetic. |
| 906 | (ALU32_ADD, ALU32_SUB, ALU32_NEGATE): Simplify arrithmetic. |
| 907 | (ALU64_ADD, ALU64_SUB, ALU64_NEGATE): Simplify arrithmetic. |
| 908 | |
| 909 | Wed Oct 15 09:24:19 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 910 | |
| 911 | * sim-core.h (struct _sim_core_mapping): Change free_buffer to |
| 912 | type void*. |
| 913 | |
| 914 | * sim-core.c (sim_core_uninstall, new_sim_core_mapping, |
| 915 | sim_core_map_attach, sim_core_map_detach): Change free_buffer to |
| 916 | type void*. |
| 917 | (sim_core_attach): Rename buffer_freed to free_buffer, type |
| 918 | void*. Ensure that allocated buffer is alligned according to |
| 919 | region's address. |
| 920 | |
| 921 | Mon Oct 13 11:34:50 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 922 | |
| 923 | * sim-alu.h (ALU64_HAD_OVERFLOW): Define. |
| 924 | (ALU64_SUB): Define. |
| 925 | |
| 926 | * Make-common.in (all): Build SIM_EXTRA_ALL first. |
| 927 | (.gdbinit): Remove dependencies, generate once per build. |
| 928 | |
| 929 | Tue Oct 14 19:20:09 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 930 | |
| 931 | * sim-n-core.h (sim_core_read_aligned_N, |
| 932 | sim_core_write_aligned_N): Make xaddr param type address_word not |
| 933 | unsigned_word. |
| 934 | |
| 935 | Fri Oct 3 09:49:18 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 936 | |
| 937 | * sim-fpu.h, sim-fpu.c: Rewrite. Change sim_fpu object to an |
| 938 | unpacked floating point struct. Pass sim_fpu object by reference. |
| 939 | Add preliminary support for rounding modes. |
| 940 | |
| 941 | Fri Oct 3 09:28:00 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 942 | |
| 943 | * configure: Regenerated to track ../common/aclocal.m4 changes. |
| 944 | |
| 945 | Thu Oct 2 19:43:52 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 946 | |
| 947 | * aclocal.m4 (sim-bitsize): Fix typo, WITH_TARGET_WORD_BITSIZE not |
| 948 | WITH_TARGET_BITSIZE. |
| 949 | |
| 950 | Thu Sep 25 23:20:20 1997 Felix Lee <flee@yin.cygnus.com> |
| 951 | |
| 952 | * sim-profile.c (profile_print_core): label needs empty statement. |
| 953 | |
| 954 | Thu Sep 25 11:20:47 1997 Stu Grossman <grossman@babylon-5.cygnus.com> |
| 955 | |
| 956 | * sim-break.c (sim_set_breakpoint sim_clear_breakpoint): Use ZALLOC |
| 957 | and zfree instead of xmalloc and free. Prevents warnings. |
| 958 | |
| 959 | Wed Sep 24 17:38:57 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 960 | |
| 961 | * configure: Regenerated to track ../common/aclocal.m4 changes. |
| 962 | |
| 963 | Wed Sep 24 17:23:31 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 964 | |
| 965 | * Make-common.in (SIM_BITSIZE): Assign from configured value. |
| 966 | (CONFIG_CFLAGS): Add SIM_BITSIZE. |
| 967 | |
| 968 | * aclocal.m4 (--enable-sim-bitsize): Developer option for |
| 969 | controling the bitsize/msb of the target. |
| 970 | |
| 971 | Wed Sep 24 17:41:40 1997 Stu Grossman <grossman@babylon-5.cygnus.com> |
| 972 | |
| 973 | * Make-common.in: New files sim-break.c, sim-break.h. |
| 974 | * sim-base.h: Add point to breakpoint list to sim_state_base. |
| 975 | * sim-break.c sim-break.h: New modules that implement intrinsic |
| 976 | breakpoint support. |
| 977 | * sim-module.c: Add breakpoint module. |
| 978 | |
| 979 | Tue Sep 23 00:26:39 1997 Felix Lee <flee@yin.cygnus.com> |
| 980 | |
| 981 | * sim-events.c (SIM_EVENTS_POLL_RATE): poll more often than once |
| 982 | an hour. |
| 983 | * sim-n-core.h (WITH_XOR_ENDIAN): MSVC barfs on |
| 984 | if (0) { 1 % 0; } |
| 985 | * sim-core.c (sim_core_xor_write_buffer): WITH_XOR_ENDIAN + 1. |
| 986 | (SIGBUS) define for Windows. |
| 987 | * sim-trace.c (trace_printf,debug_printf): added ALMOST_STDC. |
| 988 | * sim-resume.c: define SIGTRAP for windows. |
| 989 | * sim-xcat.h: use token pasting if ALMOST_STDC. |
| 990 | |
| 991 | Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 992 | |
| 993 | * Make-common.in (SIM_SCACHE, SIM_DEFAULT_MODEL): Assign |
| 994 | configured values. |
| 995 | (CONFIG_CFLAGS): Add same. |
| 996 | |
| 997 | Mon Sep 22 17:20:27 1997 Felix Lee <flee@cygnus.com> |
| 998 | |
| 999 | * sim-types.h (SIGNED64): ##i64 when _MSC_VER, not _WIN32. |
| 1000 | (SIGNED32): use ##i32. |
| 1001 | |
| 1002 | Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1003 | |
| 1004 | * configure: Regenerated to track ../common/aclocal.m4 changes. |
| 1005 | |
| 1006 | Tue Sep 23 10:07:47 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1007 | |
| 1008 | * aclocal.m4 (sim-endian): Simplify logic determining [default] |
| 1009 | endian of target. |
| 1010 | |
| 1011 | * Make-common.in (SIM_WARNINGS, SIM_ALIGNMENT, SIM_ENDIAN, |
| 1012 | SIM_HOSTENDIAN, SIM_RESERVED_BITS, SIM_ASSERT, SIM_FLOAT, |
| 1013 | SIM_HARDWARE, SIM_INLINE, SIM_PACKAGES, SIM_REGPARM, SIM_SMP, |
| 1014 | SIM_STDCALL, SIM_XOR_ENDIAN): Assign configured values. |
| 1015 | (CONFIG_CFLAGS): Add same. |
| 1016 | |
| 1017 | * aclocal.m4: Perform AC_SUBST on optional options. |
| 1018 | |
| 1019 | Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1020 | |
| 1021 | * sim-config.h (WITH_DEFAULT_ALIGNMENT): Don't hardwire any alignment. |
| 1022 | |
| 1023 | * sim-options.c (standard_option_handler): Typo in warning message. |
| 1024 | |
| 1025 | * sim-base.h (STATE_MODEL): Make conditional on SIM_HAVE_MODEL. |
| 1026 | |
| 1027 | * sim-profile.c (profile_print_insn): Check 0 .. MAX_INSN for any |
| 1028 | insn count. Make count conditional on there being a valid |
| 1029 | INSN_NAME. |
| 1030 | (profile_pc_init): Make default PC profile frequency an arbitrary |
| 1031 | 256. |
| 1032 | |
| 1033 | * sim-base.h: Ditto. |
| 1034 | |
| 1035 | * sim-profile.h (WITH_PROFILE_MODEL_P): Only enable modeling when |
| 1036 | SIM_HAVE_MODEL. |
| 1037 | |
| 1038 | * sim-model.h (struct MACH): Depreciate, to be replaced by bfd |
| 1039 | archure struct. |
| 1040 | |
| 1041 | Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1042 | |
| 1043 | * configure: Regenerated to track ../common/aclocal.m4 changes. |
| 1044 | |
| 1045 | Mon Sep 22 11:45:00 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1046 | |
| 1047 | * aclocal.m4 (sim_alignment): Simplify logic for selecting the |
| 1048 | configured alignment. |
| 1049 | |
| 1050 | Fri Sep 19 17:45:25 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1051 | |
| 1052 | * configure: Regenerated to track ../common/aclocal.m4 changes. |
| 1053 | |
| 1054 | Fri Sep 19 17:26:14 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1055 | |
| 1056 | * sim-config.c (sim_config): Check for default alignment. |
| 1057 | |
| 1058 | * sim-options.c (standard_option_handler): Add alignment option. |
| 1059 | |
| 1060 | * aclocal.m4 (sim_alignment): Allow configuration of hardwired and |
| 1061 | default alignment requirements on memory accesses. |
| 1062 | |
| 1063 | Fri Sep 19 11:51:35 1997 Jeffrey A Law (law@cygnus.com) |
| 1064 | |
| 1065 | * sim-load.c (sim_load_file): Return failure if the executable |
| 1066 | had no loadable sections. |
| 1067 | |
| 1068 | Wed Sep 17 13:33:28 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1069 | |
| 1070 | * sim-events.c (ETRACE): Use trace_printf not sim_io_printf for |
| 1071 | trace output. |
| 1072 | |
| 1073 | * sim-core.c (sim_core_signal): When bad access halt simulator |
| 1074 | SIGSEGV / SIGBUS instead of aborting. |
| 1075 | (signal.h): Include. |
| 1076 | |
| 1077 | * sim-watch.c (sim_watchpoint_install): Handler for watchpoint |
| 1078 | options was missing. |
| 1079 | |
| 1080 | * sim-bits.h (MOVED): Define |
| 1081 | |
| 1082 | Wed Sep 17 10:33:28 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1083 | |
| 1084 | * sim-alu.h (ALU32_HAD_OVERFLOW): Pacify GCC, Use MSBIT instead of |
| 1085 | BIT. |
| 1086 | |
| 1087 | * sim-bits.h (LSBIT, MSBIT): Check for overflow of shift value. |
| 1088 | |
| 1089 | * sim-bits.c: Add 8 bit versions of bit macros. |
| 1090 | |
| 1091 | * sim-bits.h: Ditto. |
| 1092 | |
| 1093 | Tue Sep 16 16:15:16 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1094 | |
| 1095 | * sim-bits.c (LSSEXT, MSSEXT): Replace SEXT. |
| 1096 | (LSINSERTED, MSINSERTED): Ditto for INSERTED. |
| 1097 | |
| 1098 | * sim-n-bits.h (MSSEXTn, LSSEXTn): Replace SEXTn. |
| 1099 | (LSINSERTDn, MSINSERTEDN): Ditto for INSERTEDn. |
| 1100 | |
| 1101 | * sim-bits.h (SEXT*): Define as MSEXT/LSEXT. |
| 1102 | (INSERTED*): Ditto for LSINSERTED/MSINSERTED. |
| 1103 | |
| 1104 | Mon Sep 15 17:36:15 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1105 | |
| 1106 | * aclocal.m4 (SIM_AC_COMMON): Add optional config.h file argument. |
| 1107 | configure.in: Output to cconfig.h instead of config.h. |
| 1108 | |
| 1109 | * configure: Regenerated to track ../common/aclocal.m4 changes. |
| 1110 | |
| 1111 | Mon Sep 15 15:39:28 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1112 | |
| 1113 | * sim-utils.c (sim_analyze_program): Set STATE_ARCHITECTURE from |
| 1114 | BFD if known. |
| 1115 | |
| 1116 | Tue Sep 9 21:46:46 1997 Felix Lee <flee@cygnus.com> |
| 1117 | |
| 1118 | * callback.c (os_write): divert stdout and stderr to their |
| 1119 | respective hooks. |
| 1120 | |
| 1121 | Thu Sep 11 10:08:48 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1122 | |
| 1123 | * sim-profile.c (profile_print_speed): Call |
| 1124 | sim_events_elapsed_time instead of PROFILE_EXEC_TIME for moment. |
| 1125 | |
| 1126 | * sim-events.c (sim_events_elapsed_time): New function return nr |
| 1127 | host MS consumed by the simulator. |
| 1128 | (sim_watch_valid): Use. |
| 1129 | |
| 1130 | * sim-module.c (modules): Install sim_events very very early. |
| 1131 | |
| 1132 | * sim-profile.c (profile_print): Call profile_print_pc. |
| 1133 | (print_bar): |
| 1134 | (profile_pc_init): New function, set up processor for PC |
| 1135 | profiling. |
| 1136 | (profile_print_pc): New function, print a PC profile. |
| 1137 | (profile_pc_event): New function, sample PC. |
| 1138 | |
| 1139 | * sim-profile.h (PROFILE_PC_COUNT, PROFILE_PC_START, |
| 1140 | PROFILE_PC_END, PROFILE_PC_SHIFT, PROFILE_PC_SAMPLE_SIZE): Add to |
| 1141 | profile struct. |
| 1142 | |
| 1143 | * sim-options.c (sim_print_help): Pacify GCC. |
| 1144 | |
| 1145 | * sim-n-core.h (sim_core_read_aligned_N, |
| 1146 | sim_core_write_aligned_N): Add un-conditional profile call. |
| 1147 | (sim_core_read_unaligned_N, sim_core_write_unaligned_N): Add |
| 1148 | profile call when aligned read/write isn't used. |
| 1149 | |
| 1150 | * sim-base.h: Include sim-profile, sim-model after sim-core & |
| 1151 | sim-events allow sim-core to define useful values. |
| 1152 | |
| 1153 | * sim-profile.c (OPTION_PROFILE_CORE): Define. |
| 1154 | (profile_option_handler, profile_options): Add support for |
| 1155 | --profile-core option. |
| 1156 | (print_bar): Include when core profiling. |
| 1157 | (profile_print_core): New function, print core profile. |
| 1158 | |
| 1159 | * sim-config.c (print_sim_config): Print profile status. |
| 1160 | |
| 1161 | * sim-profile.h (PROFILE_NEXT_IDX, PROFILE_core, |
| 1162 | WITH_PROFILE_PC_P): Define. |
| 1163 | (PROFILE_CORE_COUNT): Count each core-map/size separatly. |
| 1164 | (PROFILE_COUNT_CORE): Define. |
| 1165 | |
| 1166 | Thu Sep 11 08:44:52 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1167 | |
| 1168 | * sim-watch.c (handle_watchpoint): Pass a char** index into the |
| 1169 | interrupt_names array as the data. |
| 1170 | (sim-watch.h): Document. |
| 1171 | |
| 1172 | Wed Sep 10 16:15:22 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1173 | |
| 1174 | * sim-options.c (sim_print_help): When the doc string is to long |
| 1175 | word wrap it. |
| 1176 | |
| 1177 | * sim-watch.c (sim_watchpoint_install): Use option.doc_name so |
| 1178 | that only the first few the watch options are listed. Generate |
| 1179 | meanginful usage messages. |
| 1180 | |
| 1181 | * sim-options.h (struct OPTION): Clarify use of doc_name field |
| 1182 | |
| 1183 | Wed Sep 10 13:23:24 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1184 | |
| 1185 | * sim-options.c (OPTION_ARCHITECTURE_INFO): New option. |
| 1186 | (standard_option_handler): Handle --architecture-info. |
| 1187 | |
| 1188 | Tue Sep 9 21:46:46 1997 Felix Lee <flee@cygnus.com> |
| 1189 | |
| 1190 | * sim-core.h (sim_cpu_core): [WITH_XOR_ENDIAN + 1], to avoid |
| 1191 | illegal zero-sized array. |
| 1192 | * sim-core.c (sim_core_xor_read_buffer): same. |
| 1193 | |
| 1194 | Tue Sep 9 11:20:35 1997 Doug Evans <dje@canuck.cygnus.com> |
| 1195 | |
| 1196 | * nltvals.def: Regenerate. |
| 1197 | |
| 1198 | Tue Sep 9 02:10:36 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1199 | |
| 1200 | * sim-fpu.c (DP_FRACHIGH2): Define LL using SIGNED64. |
| 1201 | |
| 1202 | Mon Sep 8 12:22:20 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1203 | |
| 1204 | * sim-bits.c (MASKED): Delete. |
| 1205 | (EXTRACTED): Delete. |
| 1206 | (LSEXTRACTED, MSEXTRACTED): New functions. |
| 1207 | |
| 1208 | * sim-n-bits.h (MASKEDn): Delete, define as MSMASKED or LSMASKED. |
| 1209 | (MSMASKEDn, LSMASKEDn): Add last argument. |
| 1210 | (MSMASK*): Ditto. |
| 1211 | |
| 1212 | * sim-bits.h (EXTEND8, EXTEND16): Define. |
| 1213 | (EXTRACTED64): Define as 64 bit extract, not 32 bit. |
| 1214 | |
| 1215 | * sim-run.c (sim_engine_run): Use CPU_CIA macro. |
| 1216 | |
| 1217 | * sim-engine.h (SIM_ENGINE_HALT_HOOK): Use CPU_CIA to get at |
| 1218 | current instruction address. |
| 1219 | |
| 1220 | * sim-inline.h (*_ENGINE): Define. |
| 1221 | |
| 1222 | Fri Sep 5 08:39:02 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1223 | |
| 1224 | * sim-core.c (sim_core_attach): Fix checks of modulo/mask. |
| 1225 | |
| 1226 | * sim-watch.c (delete_watchpoint): Delete by ident and type. |
| 1227 | (watch_option_handler): Call delete_watchpoint with ident or type. |
| 1228 | (sim_watchpoint_install): Create interrupt specific watchpoint |
| 1229 | commands on the fly. |
| 1230 | (do_watchpoint_create): New function, create a watch point using |
| 1231 | type/int-nr info encoded in the option nr. |
| 1232 | (do_watchpoint_info): New function. List active watchpoints. |
| 1233 | |
| 1234 | * sim-watch.h: Change data structure to a list. |
| 1235 | |
| 1236 | * sim-memopt.c (memory_option_handler): Require explicit "all" |
| 1237 | before deleting all memory regions. |
| 1238 | |
| 1239 | * sim-utils.c (sim_do_commandf): New function, printf version of |
| 1240 | sim_do_command. |
| 1241 | |
| 1242 | * sim-basics.h (asprintf, vasprintf): Hack, define for CYGWIN32. |
| 1243 | |
| 1244 | * sim-alu.h (ALU64_ADD): Use explicit MSEXTRACTED64, do not assume |
| 1245 | bit endianness. |
| 1246 | (SIGNED64, UNSIGNED64): Delete. |
| 1247 | (ALU64_ADD): Don't rely on bit endianness. |
| 1248 | (ALU64_BEGIN): Define. |
| 1249 | |
| 1250 | * sim-n-bits.h (MSEXTRACTEDn, LSEXTRACTED): New functions. |
| 1251 | (EXTRACTEDn): Delete, define as either LSEXTRACTED or MSEXTRACTED. |
| 1252 | |
| 1253 | * sim-types.h (SIGNED64, UNSIGNED64): New macros, attach relevant |
| 1254 | suffix - u64, LL - to 64 bit constants. |
| 1255 | |
| 1256 | Thu Sep 4 09:27:54 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1257 | |
| 1258 | * sim-config.c (sim_config): Add assert for SIM_MAGIC_NUMBER. |
| 1259 | |
| 1260 | * sim-utils.h (NZALLOC): Define - zalloc * N. |
| 1261 | |
| 1262 | * sim-hrw.c (sim_read, sim_write): New file. Provide generic |
| 1263 | implementation of read/write functions. |
| 1264 | |
| 1265 | * Make-common.in (sim-hrw.o): New target. |
| 1266 | |
| 1267 | * sim-base.h (STATE_MEMOPT_P): Delete, simulators _always_ add |
| 1268 | memory. |
| 1269 | |
| 1270 | * sim-memopt.c (memory_option_handler): Implement memory-size |
| 1271 | command. Implement memory-alias command. Let memory-delete delete |
| 1272 | all memory regions. |
| 1273 | (add_memopt): New function. Add a memory region. |
| 1274 | (do_memopt_delete): New function. Delete a memory region. |
| 1275 | |
| 1276 | * sim-utils.c (sim_elapsed_time_get): Never return zero. |
| 1277 | |
| 1278 | * sim-core.c (sim_core_detach): New function. |
| 1279 | (sim_core_map_detach): New function. Perform the actual detach. |
| 1280 | (sim_core_init): Move initialization code from here. |
| 1281 | (sim_core_install): To here. |
| 1282 | (sim_core_uninstall): And here. |
| 1283 | |
| 1284 | * sim-module.c: Add memopt module. |
| 1285 | |
| 1286 | * sim-base.h (STATE_MEMOPT, STATE_MEMOPT_P): Add memopt to |
| 1287 | simulator base type. |
| 1288 | |
| 1289 | * Make-common.in (sim_main_headers): Add sim-memopt.h |
| 1290 | (sim-memopt.o): New target. |
| 1291 | |
| 1292 | * sim-core.c (sim_core_install): Add core_options to the option |
| 1293 | table. |
| 1294 | |
| 1295 | * sim-watch.c (watch_options): Make --delete-watch a synonym for |
| 1296 | --watch-delete. |
| 1297 | |
| 1298 | * sim-config.h (WITH_MODULO_MEMORY): Define as 0. Update |
| 1299 | comments. |
| 1300 | |
| 1301 | * sim-core.h (struct _sim_core_mapping): Change nr_bytes to type |
| 1302 | address_word, add mask member. |
| 1303 | |
| 1304 | * sim-core.h, sim-core.c (sim_core_attach): Make nr_bytes of type |
| 1305 | address_word, allow for 64bit targets in 32bit host. Add modulo |
| 1306 | argument. |
| 1307 | (sim_core_map_attach): Ditto. |
| 1308 | (new_sim_core_mapping): Ditto. |
| 1309 | (sim_core_translate): Mask address when modulo memory. |
| 1310 | |
| 1311 | Wed Sep 3 17:32:54 1997 Doug Evans <dje@seba.cygnus.com> |
| 1312 | |
| 1313 | * sim-hload.c (sim_load): Add assert for SIM_MAGIC_NUMBER. |
| 1314 | |
| 1315 | * gdbinit.in: New file. |
| 1316 | * aclocal.m4 (SIM_AC_OUTPUT): Build .gdbinit. |
| 1317 | * Make-common.in (distclean): Delete .gdbinit. |
| 1318 | (.gdbinit): Add rule for. |
| 1319 | * configure: Regenerated to track ../common/aclocal.m4 changes. |
| 1320 | |
| 1321 | * Make-common.in (cgen-run.o): Add rule for. |
| 1322 | |
| 1323 | Wed Sep 3 10:08:21 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1324 | |
| 1325 | * sim-resume.c (sim_resume): Suspend/resume the simulator. |
| 1326 | |
| 1327 | * sim-events.c (sim_watch_valid): Compute total elapsed time from |
| 1328 | both resumed and previous elapsed time. |
| 1329 | (sim_events_init): Set initial_wallclock and current_wallclock to |
| 1330 | zero. |
| 1331 | (sim_events_install): Install sim_events_suspend and |
| 1332 | sim_events_resume. |
| 1333 | (sim_events_watch_clock): Allow for suspended simulator when |
| 1334 | computing the time of the clock event. |
| 1335 | |
| 1336 | * sim-events.h (struct _sim_event): Add resume_wallclock, rename |
| 1337 | initial_wallclock to elapsed_wallclock, set both to zero. |
| 1338 | (sim_events_init, sim_events_uninstall): Delete prototypes. |
| 1339 | |
| 1340 | * sim-module.h (MODULE_SUSPEND_FN, MODULE_RESUME_FN): Define types. |
| 1341 | |
| 1342 | * sim-module.c(sim_module_resume, sim_module_suspend): New |
| 1343 | functions. |
| 1344 | |
| 1345 | Wed Sep 3 10:08:21 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1346 | |
| 1347 | * sim-core.c (sim_core_map_attach): Clarify memory overlap error |
| 1348 | message. |
| 1349 | |
| 1350 | Tue Sep 2 14:57:06 1997 Doug Evans <dje@canuck.cygnus.com> |
| 1351 | |
| 1352 | * Makefile.in (TAGS): Add support for "/* TAGS: foo */" marker. |
| 1353 | * Make-common.in (TAGS): Likewise. |
| 1354 | * sim-n-bits.h: Add TAGS comments for all functions. |
| 1355 | * sim-n-core.h: Likewise. |
| 1356 | * sim-n-endian.h: Likewise. |
| 1357 | |
| 1358 | Mon Sep 1 10:50:11 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1359 | |
| 1360 | * sim-utils.c (sim_state_alloc): Set CPU backlinks, callback and |
| 1361 | kind. |
| 1362 | |
| 1363 | * sim-base.h (sim_state_alloc): Add callback and kind arguments. |
| 1364 | |
| 1365 | * sim-base.h (INVALID_INSTRUCTION_ADDRESS): Add default |
| 1366 | definition. |
| 1367 | |
| 1368 | Sat Aug 30 09:47:21 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1369 | |
| 1370 | * sim-fpu.c (DP_GARDMSB, ...): Make unsigned. |
| 1371 | (DP_FRACHIGH, DP_FRACHIGH2, ..): Use MSMASK to avoid LL. |
| 1372 | |
| 1373 | Fri Aug 29 13:37:44 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1374 | |
| 1375 | * sim-core.c (sim_core_map_attach): Cast attach enum to int. |
| 1376 | (sim_core_xor_read_buffer, sim_core_xor_write_buffer): Make |
| 1377 | nr_transfered and nr_this_transfer unsigned. |
| 1378 | |
| 1379 | * sim-events.c (sim_events_tickn): N is signed, as limited to |
| 1380 | MAXINT. |
| 1381 | |
| 1382 | * sim-n-endian.h (offset_N): Change size to unsigned. |
| 1383 | |
| 1384 | * callback.c (os_poll_quit): Add prototypes for kbhit and getkey. |
| 1385 | |
| 1386 | Fri Aug 29 10:10:53 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1387 | |
| 1388 | * sim-utils.c (sim_copy_argv): Delete, replaced by dupargv. |
| 1389 | |
| 1390 | * sim-options.c (sim_parse_args): Use dupargv. |
| 1391 | |
| 1392 | Thu Aug 28 10:36:34 1997 Doug Evans <dje@canuck.cygnus.com> |
| 1393 | |
| 1394 | * sim-options.c (standard_option_handler): Use xstrdup, not strdup. |
| 1395 | |
| 1396 | Thu Aug 28 12:09:15 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1397 | |
| 1398 | * sim-base.h (STATE_ARCHITECTURE, STATE_TARGET): Add to simulator |
| 1399 | base type. |
| 1400 | |
| 1401 | * sim-options.c (standard_options): Add --architecture=MACHINE and |
| 1402 | --target=TARGET options. |
| 1403 | (OPTION_ARCHITECTURE, OPTION_TARGET): Define. |
| 1404 | (standard_option_handler): Handle architecture and target options. |
| 1405 | (bfd.h): Include. |
| 1406 | |
| 1407 | * sim-utils.c (sim_analyze_program): Pass STATE_TARGET to |
| 1408 | bfd_openr. |
| 1409 | (sim_analyze_program): Set prog_bfd architecture from |
| 1410 | STATE_ARCHITECTURE if known. |
| 1411 | |
| 1412 | Wed Aug 27 18:13:22 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1413 | |
| 1414 | * configure: Regenerated to track ../common/aclocal.m4 changes. |
| 1415 | * config.in: Ditto. |
| 1416 | |
| 1417 | Wed Aug 27 18:11:30 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1418 | |
| 1419 | * aclocal.m4 (enable-sim-warnings): Remove comment stating |
| 1420 | that option does not apply to certain files. |
| 1421 | |
| 1422 | Wed Aug 27 15:13:04 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1423 | |
| 1424 | * sim-bits.h (LSBIT8, LSBIT16, LSBIT32, LSBIT64, LSBIT, MSBIT8, |
| 1425 | MSBIT16, MSBIT32, MSBIT64, MSBIT): New macros - single bit as |
| 1426 | offset from MSB/LSB. |
| 1427 | |
| 1428 | * sim-endian.h (A1_8, A2_8, A4_8, A1_4, A2_4, A1_2): New macro, |
| 1429 | access address of sub word quantity of a hosts 16, 32, 64 bit word |
| 1430 | type. |
| 1431 | (V1_2, V1_4, V2_4, V1_8, V2_8, V4_8): Ditto for values. |
| 1432 | (U8_1, U8_2, U8_4, U4_1, U4_2, U2_1): Ditto for set of values. |
| 1433 | (V2_H1, V2_L1, V4_H2, V4_L2, V8_L4, V8_H4): Given N byte argument, |
| 1434 | return N*2 byte value with argument in Hi/Lo word. Renamed from |
| 1435 | V1_H2, V1_L2, V2_H4, V2_L4, V4_H8, V4_L8. |
| 1436 | |
| 1437 | * sim-alu.h (ALU32_HAD_OVERFLOW): Use 64 bit mask not 32bit. |
| 1438 | (ALU16_HAD_CARRY, ALU32_HAD_CARRY, ALU16_HAD_OVERFLOW): Use MSBIT |
| 1439 | so that bit offset is explicit. |
| 1440 | |
| 1441 | Wed Aug 27 11:55:35 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1442 | |
| 1443 | * sim-utils.c (sim_analyze_program): Add prog_name argument. |
| 1444 | Update STATE_PROG_BFD when needed with a dup'd copy of the |
| 1445 | program. |
| 1446 | |
| 1447 | * sim-config.c (sim_config): Delete ABFD argument, use |
| 1448 | STATE_PROG_BFD directly. |
| 1449 | |
| 1450 | Tue Aug 26 12:55:26 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1451 | |
| 1452 | * run.c (main): Pass the open ABFD to sim_create_inferior. |
| 1453 | |
| 1454 | * nrun.c (main): Determine prog_bfd. Pass to sim_create_inferior |
| 1455 | and sim_load. |
| 1456 | (bfd.h): Include. |
| 1457 | |
| 1458 | * sim-hload.c (sim_load): New file. Implement generic sim_load for |
| 1459 | hardware only simulator targets. |
| 1460 | |
| 1461 | * Make-common.in (sim-hload.o): Add rule. |
| 1462 | |
| 1463 | Wed Aug 27 09:51:42 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1464 | |
| 1465 | * sim-utils.c (sim_copy_argv): Rewrite to match malloc strategy |
| 1466 | used by copyargv and freeargv. |
| 1467 | |
| 1468 | * sim-options.c (sim_parse_args): Save a copy of PROG-ARGS in |
| 1469 | STATE_PROG_ARGV, not just a pointer. |
| 1470 | |
| 1471 | Mon Aug 25 17:50:22 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1472 | |
| 1473 | * configure: Regenerated to track ../common/aclocal.m4 changes. |
| 1474 | * config.in: Ditto. |
| 1475 | |
| 1476 | Mon Aug 25 12:11:06 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1477 | |
| 1478 | * aclocal.m4 (sim-endian): Add second argument to |
| 1479 | SIM_AC_OPTION_ENDIAN. First is hardwired endian, second is |
| 1480 | default endian when not hardwired. |
| 1481 | |
| 1482 | * sim-config.h (WITH_DEFAULT_TARGET_BYTE_ORDER): New macro, if all |
| 1483 | else failes value for target byte order. |
| 1484 | |
| 1485 | * sim-config.c (sim_config): Add abfd arguments. Set |
| 1486 | STATE_PROG_BFD accordingly. Determine prefered_target_byte_order |
| 1487 | from same. |
| 1488 | (sim_config): Return SIM_RC, don't abort. |
| 1489 | (bfd.h): Include. |
| 1490 | |
| 1491 | * run.c (main): Update call to sim_open - add ABFD argument. |
| 1492 | * nrun.c (main): Add NULL ABFD argument. |
| 1493 | |
| 1494 | Thu Aug 14 12:48:57 1997 Doug Evans <dje@canuck.cygnus.com> |
| 1495 | |
| 1496 | * callback.c (os_poll_quit): Make static. |
| 1497 | Call sim_cb_eprintf, not p->eprintf. |
| 1498 | (sim_cb_printf, sim_cb_eprintf): New functions. |
| 1499 | * sim-utils.h (sim_cb_printf, sim_cb_eprintf): Declare. |
| 1500 | |
| 1501 | * sim-basics.h (zalloc,zfree,sim_add_commas,SIM_ELAPSED_TIME, |
| 1502 | sim_elapsed_time_get,sim_elapsed_time_since): Move decls to |
| 1503 | sim-utils.h. #include sim-utils.h. |
| 1504 | * sim-utils.h: Above decls moved here. |
| 1505 | (sim_analyze_program,sim_load_file): Use `struct _bfd', not `bfd'. |
| 1506 | |
| 1507 | * sim-watch.c (action_watchpoint): Fix thinkos. |
| 1508 | |
| 1509 | Thu Jul 24 08:48:05 1997 Stu Grossman (grossman@critters.cygnus.com) |
| 1510 | |
| 1511 | * sim-types.h: Fix defs of 64 bit data types for MSVC. |
| 1512 | |
| 1513 | Tue Jul 22 10:35:37 1997 Doug Evans <dje@canuck.cygnus.com> |
| 1514 | |
| 1515 | * sim-n-core.h (sim_core_write_unaligned_N): Add missing break |
| 1516 | to FORCED_ALIGNMENT case. |
| 1517 | |
| 1518 | Thu Jun 5 13:48:37 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1519 | |
| 1520 | * callback.c (target_to_host_open): Handle hosts with O_BINARY. |
| 1521 | |
| 1522 | Thu Jun 5 08:47:10 1997 Jeffrey A Law (law@cygnus.com) |
| 1523 | |
| 1524 | * Make-common.in (libsim.a): Fix typo. |
| 1525 | |
| 1526 | Thu Jun 5 13:48:37 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1527 | |
| 1528 | * nrun.c (main): Verify the structure returned before using it. |
| 1529 | |
| 1530 | Wed Jun 4 11:44:06 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1531 | |
| 1532 | * sim-config.h (WITH_ENGINE): Enable the sim-engine module by |
| 1533 | default. |
| 1534 | |
| 1535 | * sim-engine.c (sim_engine_install): New function. Install the |
| 1536 | engine init functions. |
| 1537 | (sim_engine_init): [Re]initialize the simulator engine. |
| 1538 | |
| 1539 | * sim-module.c: Add sim_engine to list of modules that always |
| 1540 | install. |
| 1541 | |
| 1542 | Tue Jun 3 04:52:04 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1543 | |
| 1544 | * sim-watch.c (schedule_watchpoint): Use sim_unschedule_watchpoint |
| 1545 | to remove the old watchpoint, not delete_watchpoint. |
| 1546 | (watch_option_handler): Action the correct watchpoint, not just |
| 1547 | cycles. |
| 1548 | |
| 1549 | Wed May 28 14:47:41 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1550 | |
| 1551 | * sim-n-core.h (sim_core_write_aligned_N): For 8byte reads, output |
| 1552 | both low and high word. |
| 1553 | (sim_core_write_aligned_N): Ditto. |
| 1554 | |
| 1555 | * sim-trace.c (set_trace_options): Delete code explicitly setting |
| 1556 | core->trace. |
| 1557 | |
| 1558 | * sim-options.c (sim_print_help): Call the list commands if not a |
| 1559 | standalone simulator. |
| 1560 | (sim_print_help): Advise that some options may not be applicable. |
| 1561 | |
| 1562 | * sim-trace.c (set_trace_options): Assume core present. |
| 1563 | |
| 1564 | * sim-events.c (sim_events_schedule_after_signal): Overflow signal |
| 1565 | buffer when full not almost full. |
| 1566 | |
| 1567 | Tue May 27 14:32:00 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1568 | |
| 1569 | * sim-events.c (sim_events_process): Don't blat the event queue |
| 1570 | when processing watchpoints. |
| 1571 | |
| 1572 | * sim-watch.h: Make arg unsigned long - stop sign extension. |
| 1573 | |
| 1574 | * sim-events.c (sim_watch_valid): rewrite so debugable. |
| 1575 | |
| 1576 | * sim-config.h (WITH_XOR_ENDIAN): Default to zero. |
| 1577 | |
| 1578 | * sim-watch.c (schedule_watchpoint): Add is_within option so that |
| 1579 | inequality test is possible. |
| 1580 | (handle_watchpoint): Re-pass is_within arg. |
| 1581 | (watch_option_handler): When `!' prefix to pc-watchpoint arg pass |
| 1582 | 0 to schedule_watchpoint's is_within arg. |
| 1583 | (sim_watchpoint_init): Re-pass is_within arg. |
| 1584 | |
| 1585 | * sim-options.c (sim_print_help): Add is_command argument. Don't |
| 1586 | include -- prefix when called from the command line interpreter. |
| 1587 | |
| 1588 | * sim-watch.c (schedule_watchpoint): Pass true is_within argument. |
| 1589 | |
| 1590 | * sim-events.c (sim_events_watch_sim): Add is_within argument, |
| 1591 | zero indicates that the test should be reversed. |
| 1592 | (sim_events_watch_core): Ditto. |
| 1593 | (WATCH_CORE): Compare range against is_within. |
| 1594 | (WATCH_SIM): Ditto. |
| 1595 | |
| 1596 | Tue May 27 12:48:03 1997 Andrew Cagney <cagney@b2.cygnus.com> |
| 1597 | |
| 1598 | * sim-events.c (WATCH_CORE): Pass NULL cpu argument to |
| 1599 | sim_core_read_buffer. Check nr-bytes transfered. |
| 1600 | |
| 1601 | * sim-core.h (sim_core_common): Define a new struct that contains |
| 1602 | the common data. to sd and cpu structures. |
| 1603 | * sim-core.c (sim_core_attach): Update. |
| 1604 | (sim_core_init): Update. Remember to copy initialized data to each |
| 1605 | cpu. |
| 1606 | (sim_core_find_mapping): Ditto. |
| 1607 | |
| 1608 | * sim-core.c (sim_core_read_buffer): Add cpu argument. |
| 1609 | (sim_core_write_buffer): Ditto. |
| 1610 | |
| 1611 | * sim-n-core.h (sim_core_read_unaligned_N): When mis-aligned |
| 1612 | transfer use xor version of read buffer. |
| 1613 | (sim_core_write_unaligned_N): Ditto for write. |
| 1614 | |
| 1615 | * sim-core.c (sim_core_xor_read_buffer): New function implement |
| 1616 | xor-endian data read breaking transfer up into xor-endian sized |
| 1617 | blocks. |
| 1618 | (sim_core_xor_write_buffer): Ditto for write. |
| 1619 | (reverse_n): Reverse order of arbitrary number of bytes in buffer |
| 1620 | - needed for xor-endian transfers. |
| 1621 | |
| 1622 | Fri May 23 14:24:31 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1623 | |
| 1624 | * sim-inline.h: Review description. |
| 1625 | |
| 1626 | * sim-core.h, sim-core.c: Reduce number of functions being inlined |
| 1627 | to just those involved in data transfers and configuration. |
| 1628 | |
| 1629 | * sim-xcat.h (XSTRING): New macro, map macro definition onto |
| 1630 | string. |
| 1631 | * sim-n-core.h (sim_core_read_aligned_N): Use. |
| 1632 | (sim_core_read_unaligned_N): Ditto. |
| 1633 | (sim_core_read_unaligned_N): Ditto.. |
| 1634 | (sim_core_write_unaligned_N): Ditto. |
| 1635 | |
| 1636 | * sim-core.h: Add xor endian bitmap to main structure. * |
| 1637 | |
| 1638 | sim-n-core.h (sim_core_write_aligned_N): Add suport for xor |
| 1639 | endian. |
| 1640 | (sim_core_read_aligned_N): Ditto. |
| 1641 | |
| 1642 | * sim-core.c (sim_core_set_xor_endian): New function. |
| 1643 | (sim_core_attach): Don't overwrite the per-cpu xor map when |
| 1644 | cloning the global core. |
| 1645 | |
| 1646 | Fri May 23 10:53:13 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1647 | |
| 1648 | * sim-engine.h: Update below so that it is using an enumerated |
| 1649 | type. |
| 1650 | |
| 1651 | Thu May 22 09:12:16 1997 Gavin Koch <gavin@cygnus.com> |
| 1652 | |
| 1653 | * sim-engine.c (sim_engine_restart): |
| 1654 | * sim-resume.c (sim_resume): Change longjmp param/setjmp |
| 1655 | return value used for simulator restart from 0 to 2. |
| 1656 | |
| 1657 | Wed May 21 08:47:30 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1658 | |
| 1659 | * cgen-scache.c (scache_option_handler): Add is_command arg. |
| 1660 | |
| 1661 | * sim-model.c (model_option_handler): Add is_command argument. |
| 1662 | |
| 1663 | * sim-profile.c (profile_option_handler): Add is_command arg. |
| 1664 | |
| 1665 | * sim-events.c (sim_watch_valid): Use ub64, lb64 when 64bit value |
| 1666 | involved. |
| 1667 | |
| 1668 | * sim-module.c (sim_module_add_init_fn): Call init fn in the same |
| 1669 | order that they are registered. |
| 1670 | |
| 1671 | * sim-options.h (OPTION_HANDLER): Add argument to differentiate |
| 1672 | between option and command line processing. |
| 1673 | |
| 1674 | * sim-options.c: Include stdlib.h, ctype.h. |
| 1675 | |
| 1676 | * Make-common.in (sim-watch.o): Add rule. |
| 1677 | (sim_main_headers): Assume sim-assert.h included. |
| 1678 | (sim-*.o): Simplify make rule. |
| 1679 | |
| 1680 | * sim-module.c: Add sim_watch_install to module list. |
| 1681 | |
| 1682 | Tue May 20 14:15:23 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1683 | |
| 1684 | * sim-base.h (STATE_LOADED_P): New predicate. Set once everything |
| 1685 | has been loaded. |
| 1686 | |
| 1687 | * sim-trace.c (trace_install): Check magic. Include sim-assert.h. |
| 1688 | * sim-events.c (sim_events_install): Ditto. |
| 1689 | * sim-core.c (sim_core_install): Ditto. |
| 1690 | * sim-model.c (model_install): Ditto. |
| 1691 | * sim-options.c (standard_install): Ditto. |
| 1692 | * sim-profile.c (profile_install): Ditto. |
| 1693 | * sim-reason.c (sim_stop_reason): Ditto. |
| 1694 | * sim-run.c (sim_engine_run): Ditto. |
| 1695 | * sim-utils.c (sim_analyze_program): Ditto. |
| 1696 | |
| 1697 | * sim-module.c (modules): Make profile_install and trace_install |
| 1698 | optional. |
| 1699 | |
| 1700 | * sim-base.h (STATE_MEM_BASE): Define for flat memory systems. |
| 1701 | |
| 1702 | * sim-options.c (standard_option_handler): Set the byte order. |
| 1703 | |
| 1704 | * sim-events.c (sim_events_process): Allow multi tick processing. |
| 1705 | (sim_events_tickn): New function - multi cycle tick. |
| 1706 | |
| 1707 | * sim-events.h (sim_events_tickn, sim_events_timewarp): Add |
| 1708 | prototypes. Under development. |
| 1709 | (sim_events): Replace processing with nr_ticks_to_process. |
| 1710 | |
| 1711 | Tue May 20 09:39:22 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1712 | |
| 1713 | * nrun.c (main): Pass callbacks to sim_open instead of using |
| 1714 | sim_set_callbacks. |
| 1715 | |
| 1716 | * run.c (main): Ditto. |
| 1717 | |
| 1718 | Mon May 19 12:07:22 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1719 | |
| 1720 | * sim-events.c (sim_events_zalloc): Signal save memory allocator - |
| 1721 | stop tk interrupting malloc calls. |
| 1722 | (sim_events_zalloc): Converse. |
| 1723 | |
| 1724 | * Make-common.in (sim_main_headers): Add sim-events.h. |
| 1725 | |
| 1726 | * sim-events.c (sim_events_schedule_after_signal): Change return |
| 1727 | type to void - signal events are strictly internal. |
| 1728 | (sim_events_init): Allocate a finite buffer for signal events. |
| 1729 | (sim_events_schedule_after_signal): Enter signal events into the |
| 1730 | signal buffer. |
| 1731 | |
| 1732 | * sim-engine.c (sim_engine_halt): Check SIM_DESC magic. |
| 1733 | (sim_engine_restart): Ditto. |
| 1734 | (sim_engine_abort): Ditto. |
| 1735 | * sim-stop.c (sim_stop): Ditto. |
| 1736 | (control_c_simulation): Ditto. |
| 1737 | * sim-resume.c (sim_resume): Ditto. |
| 1738 | (has_stepped): Ditto. |
| 1739 | * sim-abort.c (sim_engine_abort): Ditto. |
| 1740 | |
| 1741 | * sim-basics.h (transfer_type): New type. |
| 1742 | |
| 1743 | * sim-core.c (sim_core_signal): New function. Print core signal |
| 1744 | information. |
| 1745 | (sim_core_find_mapping): Add transfer argument. |
| 1746 | |
| 1747 | * sim-n-core.h (sim_core_{write,write}_unaligned_N): Call |
| 1748 | SIM_CORE_SIGNAL if a recoverable abort. |
| 1749 | * sim-core.c (sim_core_find_mapping): Ditto. |
| 1750 | |
| 1751 | Fri May 16 15:13:21 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1752 | |
| 1753 | * sim-core.c (sim_core_find_mapping): Replace calls to |
| 1754 | sim_io_error to more resiliant sim_engine_abort. |
| 1755 | |
| 1756 | * sim-n-core.h (sim_core_read_unaligned_N): Ditto. |
| 1757 | (sim_core_write_unaligned_N): Ditto. |
| 1758 | |
| 1759 | Tue May 13 13:50:06 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1760 | |
| 1761 | * sim-module.c: Add sim_events_install to list. |
| 1762 | |
| 1763 | * sim-events.c (sim_events_install, sim_events_uninstall): Clonse |
| 1764 | from sim_core_*. |
| 1765 | (sim_events_init): Now returns SIG_RC. |
| 1766 | |
| 1767 | * sim-run.c: New file. Generic sim_engine_run. |
| 1768 | * sim-reason.c: New file. Generic sim_stop_reason. |
| 1769 | * sim-stop.c: New file. Generic sim_stop. |
| 1770 | * sim-resume.c: New file. Generic sim_resume. |
| 1771 | |
| 1772 | * Make-common.in (sim-engine.o): Add rule. |
| 1773 | (sim-run.o, sim-reason.o, sim-stop.o, sim-resume.o): Ditto. |
| 1774 | |
| 1775 | * sim-engine.h, sim-engine.c: New file. Provide generic |
| 1776 | implementation of sim_engine_halt, sim_engine_error. et.al. |
| 1777 | |
| 1778 | * sim-base.h (sim_state_base): Add member halt. |
| 1779 | (sim-engine.h): Include. |
| 1780 | |
| 1781 | * sim-events.h (sim_event_handler): Always pass SIM_DESC to event |
| 1782 | handlers. |
| 1783 | * sim-events.c (sim_events_poll): Update event handler. |
| 1784 | |
| 1785 | Tue May 13 09:57:49 1997 Andrew Cagney <cagney@b2.cygnus.com> |
| 1786 | |
| 1787 | * sim-events.h, sim-events.c (sim_events_watch_clock): New |
| 1788 | function. |
| 1789 | (sim_events_watch_sim): New function. |
| 1790 | (sim_events_watch_core): New function. |
| 1791 | (sim_watch_valid): New function. |
| 1792 | (sim_events_preprocess): New function. |
| 1793 | (sim_events_process): Process the watchpoints as well as the timer |
| 1794 | queue. |
| 1795 | (sim_events_tick): Check WORK_PENDING instead of the hold queue. |
| 1796 | (sim_events_deschedule): Check all the queues when removing an |
| 1797 | event. |
| 1798 | (sim_events_init): Ditto for cleaning. |
| 1799 | |
| 1800 | Mon May 19 12:07:22 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1801 | |
| 1802 | * sim-fpu.c (is_ufpu_number): Comment out - currently unused. |
| 1803 | |
| 1804 | Mon May 19 11:23:03 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1805 | |
| 1806 | * callback.c (os_open): Type of arg flags is int. |
| 1807 | |
| 1808 | Fri May 16 22:26:43 1997 Michael Meissner <meissner@cygnus.com> |
| 1809 | |
| 1810 | * sim-fpu.c (sim_fpu_is_{eq,ne,lt,le,gt,ge}): Compare Infinities |
| 1811 | just like normal numbers as per IEEE rules. |
| 1812 | |
| 1813 | Wed May 14 21:20:38 1997 Bob Manson <manson@charmed.cygnus.com> |
| 1814 | |
| 1815 | * callback.c (os_close): Mark the descriptor as being |
| 1816 | available if the close succeeded. |
| 1817 | (os_open): Pass 0644 as the mode of the file being created. |
| 1818 | |
| 1819 | Thu May 15 10:58:52 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1820 | |
| 1821 | * sim-fpu.c (pack_fpu, unpack_fpu): New functions - decode a |
| 1822 | float. |
| 1823 | |
| 1824 | * sim-inline.c (SIM_INLINE_C): Rename from _SIM_INLINE_C_. |
| 1825 | * sim-lnline.h: Update. |
| 1826 | |
| 1827 | * sim-fpu.h, sim-fpu.c (sim_fpu_[iu]{32,64}to): New int2fp |
| 1828 | conversion functions. |
| 1829 | (sim_fpu_to{32,64}[iu]): New fp2int functions. |
| 1830 | |
| 1831 | * sim-fpu.h, sim-fpu.c (sim_fpu_is_{lt,le,eq,ne,ge,gt}): New fp |
| 1832 | compare functions. Replacing. |
| 1833 | (sim_fpu_cmp): This. Delete. |
| 1834 | |
| 1835 | Mon May 12 14:49:05 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1836 | |
| 1837 | * sim-core.c (sim_core_find_mapping): Call engine_error not |
| 1838 | sim_io_error when possible. |
| 1839 | |
| 1840 | Mon May 12 08:55:07 1997 Andrew Cagney <cagney@b2.cygnus.com> |
| 1841 | |
| 1842 | * sim-endian.h (V1_H2): Add macro's to insert a word into a |
| 1843 | high/low double word. |
| 1844 | |
| 1845 | * sim-trace.h: Remove definition of attribute - defined in |
| 1846 | sim_basics.h. |
| 1847 | |
| 1848 | Mon May 12 08:55:07 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1849 | |
| 1850 | * sim-options.h (struct OPTION): Add doc_opt as the documenting |
| 1851 | name of the option - or family of options. |
| 1852 | |
| 1853 | * sim-options.c (sim_args_command): Match command `a-b c' with |
| 1854 | option `--a-b-c' from option table. |
| 1855 | |
| 1856 | Thu May 8 12:40:07 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1857 | |
| 1858 | * sim-options.c (sim_print_help): For optional arguments, wrap |
| 1859 | them in []. |
| 1860 | |
| 1861 | * sim-trace.c (set_trace_options): New function, handle optional |
| 1862 | argument and multiple assignment. |
| 1863 | (trace_option_handler): Update. |
| 1864 | |
| 1865 | * sim-trace.c (trace_option_handler): Trace branch and not fpu |
| 1866 | when branch tracing selected. |
| 1867 | |
| 1868 | Wed May 7 15:19:58 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1869 | |
| 1870 | * sim-trace.c (trace_one_insn): Make a va-args function. |
| 1871 | |
| 1872 | * sim-trace.c (trace_vprintf): New function, va-arg version of |
| 1873 | trace_printf. |
| 1874 | |
| 1875 | Tue May 6 16:38:16 1997 Doug Evans <dje@canuck.cygnus.com> |
| 1876 | |
| 1877 | * sim-trace.c (trace_uninstall): Don't close a file twice. |
| 1878 | * sim-profile.c (profile_uninstall): Likewise. |
| 1879 | |
| 1880 | Tue May 6 06:14:01 1997 Mike Meissner <meissner@cygnus.com> |
| 1881 | |
| 1882 | * sim-trace.c (toplevel): Include bfd.h. |
| 1883 | (trace_options): Note that --trace-linenum also turns on |
| 1884 | --trace-insn. Add --trace-{branch,semantics}. |
| 1885 | (trace_option_handler): If --trace-linenum, also turn on |
| 1886 | --trace-insn. Add --trace-branch support. If --trace-semantics, |
| 1887 | turn on ALU, FPU, branch, and memory tracing. |
| 1888 | (trace_one_insn): New function to trace an instruction. Support |
| 1889 | --trace-linenum. |
| 1890 | (OPTION_TRACE_*): Use an enum, rather than lots of defines. |
| 1891 | |
| 1892 | * sim-trace.h (TRACE_{SEMANTICS,BRANCH}_IDX): Add new macros. |
| 1893 | (MAX_TRACE_VALUES): Use 32, not 12 by default. |
| 1894 | (TRACE_branch): Add new mask. |
| 1895 | (TRACE_*_P): Define all possible trace_p macros. |
| 1896 | (trace_one_insn): Declare function. |
| 1897 | |
| 1898 | Mon May 5 14:08:34 1997 Mike Meissner <meissner@cygnus.com> |
| 1899 | |
| 1900 | * sim-trace.h (__attribute__): Define as nothing if not GNU C or |
| 1901 | GNU C doesn't support __attributes__. |
| 1902 | ({trace,debug}_printf): Add attribute's so -Wformat can check the |
| 1903 | format strings. |
| 1904 | |
| 1905 | Mon May 5 11:16:12 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1906 | |
| 1907 | * sim-config.h (FORCED_ALIGNMENT): New alignment option - |
| 1908 | addresses are masked forcing them to be correctly aligned. |
| 1909 | (WITH_ALIGNMENT): Make NONSTRICT_ALIGNMENT the default. |
| 1910 | * sim-config.c (config_alignment_to_a): Update. |
| 1911 | |
| 1912 | * sim-core.h (sim_cpu_core): New data type contains cpu specific |
| 1913 | core data. |
| 1914 | * sim-base.h (CPU_CORE): Add cpu specific core data to cpu base |
| 1915 | type. |
| 1916 | * sim-core.c (sim_core_attach): Add CPU argument. Ready for |
| 1917 | processor specific core maps. |
| 1918 | (sim_core_map_attach): Copy the core map data to each of the |
| 1919 | processor specific core data structures. |
| 1920 | * sim-core.c (sim_core_find_mapping): Update. |
| 1921 | |
| 1922 | * sim-n-core.h (sim_core_read_N, sim_core_write_N): Rename. |
| 1923 | (sim_core_write_aligned_N, sim_core_write_aligned_N): New names. |
| 1924 | (sim_core_write_unaligned_N, sim_core_write_unaligned_N): New |
| 1925 | alternatives that handle unaligned addresses. |
| 1926 | (sim_core_{read,write}_{,un}aligned_N): Drop SIM_DESC arg, replace |
| 1927 | with just CPU arg. |
| 1928 | * cgen-utils.c (sim_disassemble_insn): Update. |
| 1929 | |
| 1930 | Mon May 5 13:19:16 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1931 | |
| 1932 | * sim-trace.h (TRACE_FPU_IDX): Add Floating-point specific |
| 1933 | tracing. |
| 1934 | |
| 1935 | * sim-fpu.h, sim-fpu.c: New files - prototype for generic target |
| 1936 | fpu support. |
| 1937 | |
| 1938 | * sim-inline.h, sim-inline.c: Add support for SIM_FPU. |
| 1939 | |
| 1940 | Fri May 2 17:59:42 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1941 | |
| 1942 | * sim-core.c (sim_core_map_to_str): New function ascii equivalent |
| 1943 | to map type. |
| 1944 | |
| 1945 | * sim-n-core.h (sim_core_read_N, sim_core_write_N): Use in trace |
| 1946 | statement. |
| 1947 | |
| 1948 | Fri May 2 17:28:02 1997 Andrew Cagney <cagney@b2.cygnus.com> |
| 1949 | |
| 1950 | * cgen-trace.c: Prepend additional trace_printf argument. |
| 1951 | |
| 1952 | * cgen-utils.c (sim_disassemble_insn): Add additional core |
| 1953 | arguments. |
| 1954 | |
| 1955 | Fri May 2 11:40:23 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 1956 | |
| 1957 | * nrun.c (main): Catch/report errorenous simulator states. |
| 1958 | |
| 1959 | * sim-module.c: #include "libiberty.h" so that xmalloc is defined. |
| 1960 | * sim-trace.c: #include string.h/strings.h so that memset is |
| 1961 | defined. |
| 1962 | * sim-utils.c: Ditto. |
| 1963 | * sim-profile.c: Ditto. And stdlib.h. |
| 1964 | (print_bar): Only define when used by instruction or memory profiler. |
| 1965 | |
| 1966 | * sim-options.c (standard_option_handler): Make ul more local. |
| 1967 | |
| 1968 | * sim-load.c (sim_load_file): Make the name constant. |
| 1969 | (sim_load_file): Passify gcc. |
| 1970 | |
| 1971 | * sim-utils.h: New file, pre-declare utilites in corresponding .c |
| 1972 | file. |
| 1973 | * sim-utils.c, sim-load.c: Include sim-utils.h. |
| 1974 | |
| 1975 | * sim-base.h (sim_cpu): Pre define here so available to all. |
| 1976 | |
| 1977 | * sim-core.h (DECLARE_SIM_CORE_WRITE_N, DECLARE_SIM_CORE_READ_N): |
| 1978 | Restore the sim_cpu and instruction_address arguments so that full |
| 1979 | information is available to the abort function. |
| 1980 | * sim-core.c (sim_core_find_mapping, sim_core_write_buffer): Ditto. |
| 1981 | * sim-n-core.h (sim_core_write_N, sim_core_read_N): Update. |
| 1982 | |
| 1983 | * sim-trace.h, sim-trace.c (trace_option_handler): Add interim |
| 1984 | tracing support for sim-events and sim-core. |
| 1985 | (trace_option_handler): Convert #if to if where possible so always |
| 1986 | compiled/checked by C compiler. |
| 1987 | * sim-n-core.h (sim_core_write_N, sim_core_read_N): Update. |
| 1988 | |
| 1989 | * sim-base.h: Adjust comment documenting how to define the cpu |
| 1990 | structure. |
| 1991 | (sim_state_base): Add sim_core and sim_events to simulator base |
| 1992 | object. |
| 1993 | |
| 1994 | * sim-trace.h, sim-trace.c (trace_printf): Add SIM_DESC argument. |
| 1995 | * sim-core.c (sim_core_init, sim_core_attach, |
| 1996 | sim_core_find_mapping): Update. |
| 1997 | * sim-events.c (ETRACE, sim_events_init, sim_events_time, |
| 1998 | update_time_from_event, insert_sim_event, |
| 1999 | sim_events_schedule_after_signal, sim_events_deschedule, |
| 2000 | sim_events_tick): Ditto. |
| 2001 | |
| 2002 | * sim-basics.h (sim-module.h, sim-trace.h, sim-profile.h, |
| 2003 | sim-model.h): Move #includes from here. |
| 2004 | * sim-base.h: To here. |
| 2005 | (sim-core.h, sim-events.h, sim-io.h): Include also |
| 2006 | |
| 2007 | Wed Apr 30 15:37:54 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 2008 | |
| 2009 | * callback.c (default_callback): Missing initialisers. |
| 2010 | |
| 2011 | Thu May 1 10:40:47 1997 Doug Evans <dje@canuck.cygnus.com> |
| 2012 | |
| 2013 | * sim-utils.c (sim_add_commas): New function. |
| 2014 | * sim-basics.h (sim_add_commas): Add prototype. |
| 2015 | * cgen-scache.c (scache_print_profile): Print commas in numbers. |
| 2016 | * sim-profile.c (COMMAS): New macro. |
| 2017 | (print_*): Use it to print commas in numbers. |
| 2018 | |
| 2019 | * configure: Regenerated. |
| 2020 | |
| 2021 | * cgen-sim.h (sim_signal_type): Add SIM_SIGINT. |
| 2022 | (cgen_state): New member run_fast_p. |
| 2023 | (cgen_init): Add prototype. |
| 2024 | (sim_disassemble_insn): New arg `cpu'. |
| 2025 | * cgen-trace.c (trace_insn): Update call to sim_disassemble_insn. |
| 2026 | * cgen-utils.c (cgen_init): New function. |
| 2027 | (sim_disassemble_insn): New arg `cpu'. Rewrite fetching of insn. |
| 2028 | * genmloop.sh: Call engine_halt if loop exits. |
| 2029 | |
| 2030 | * Makefile.in (sim-options_h): Define. |
| 2031 | (sim-{module,options,trace,profile,utils}.o): Clean up dependencies. |
| 2032 | (sim-model.o): Add new rule. |
| 2033 | (cgen-{scache,trace,utils}.o): Add new rules. |
| 2034 | * aclocal.m4 (SIM_AC_OPTION_{SCACHE,DEFAULT_MODEL}): Add. |
| 2035 | * cgen-scache.c (scache_print_profile): Change `sd' arg to `cpu'. |
| 2036 | Indent output by 2 spaces. |
| 2037 | * cgen-scache.h (scache_print_profile): Update. |
| 2038 | * cgen-trace.c (trace_insn_fini): Indent output by 2 spaces. |
| 2039 | Use trace_printf, not fprintf. |
| 2040 | (trace_extract): Use trace_printf, not cgen_trace_printf. |
| 2041 | * genmloop.sh (!FAST case): Increment `insn_count'. |
| 2042 | * sim-base.h (sim_state_base): Only include scache_size if WITH_SCACHE. |
| 2043 | (sim_cpu_base): Rename member `sd' to `state' to be consistent with |
| 2044 | access macro's name. |
| 2045 | * sim-core.c (sim_core_init): Use EXTERN_SIM_CORE to define it. |
| 2046 | Change return type to SIM_RC. |
| 2047 | (sim_core_{install,uninstall}): New functions. |
| 2048 | * sim-core.h (sim_core_{install,uninstall}): Declare. |
| 2049 | (sim_core_init): Use EXTERN_SIM_CORE to define it. |
| 2050 | Change return type to SIM_RC. |
| 2051 | * sim-model.h (models,machs,model_install): Declare. |
| 2052 | * sim-module.c (modules): Add scache_install, model_install. |
| 2053 | (sim_post_argv_init): Set cpu->state backlinks. |
| 2054 | * sim-options.c (standard_options): Delete --simcache-size,--max-insns. |
| 2055 | (standard_option_handler): Likewise. |
| 2056 | * sim-profile.c (PROFILE_{HISTOGRAM,LABEL}_WIDTH): Move to |
| 2057 | sim-profile.h. |
| 2058 | (*): Assume ANSI C. |
| 2059 | (profile_options): Delete --profile-simcache. |
| 2060 | (profile_option_handler): Likewise. |
| 2061 | (profile_print_insn): Change `sd' arg to `cpu'. Indent output 2 |
| 2062 | spaces. |
| 2063 | (profile_print_{memory,model}): Likewise. |
| 2064 | (profile_print_simcache): Delete. |
| 2065 | (profile_print_speed): New function. |
| 2066 | (profile_print): Rewrite. |
| 2067 | * sim-profile.h (PROFILE_scache): Renamed from PROFILE_simcache. |
| 2068 | (WITH_PROFILE_SCACHE_P): Renamed from WITH_PROFILE_SIMCACHE_P. |
| 2069 | (PROFILE_DATA): Delete members simcache_{hits,misses}. |
| 2070 | (PROFILE_COUNT_SIMCACHE_{HIT,MISS}): Delete. |
| 2071 | (PROFILE_{CALLBACK,CPU_CALLBACK}): New types. |
| 2072 | (profile_print): Update prototype. |
| 2073 | |
| 2074 | Wed Apr 30 11:34:14 1997 Doug Evans <dje@canuck.cygnus.com> |
| 2075 | |
| 2076 | * cgen-scache.[ch], cgen-sim.h: New files. |
| 2077 | * cgen-trace.[ch], cgen-types.h, cgen-utils.c, genmloop.sh: New files. |
| 2078 | * sim-model.c: New file. |
| 2079 | |
| 2080 | * Make-common.in (clean targets): Undo patch of Apr. 22. |
| 2081 | |
| 2082 | Fri Apr 25 15:28:32 1997 Mike Meissner <meissner@cygnus.com> |
| 2083 | |
| 2084 | * sim-n-bits.h (signed): If we have a standard compiler, undef |
| 2085 | signed, so that signedN is defined correctly. |
| 2086 | |
| 2087 | Thu Apr 24 00:00:07 1997 Doug Evans <dje@canuck.cygnus.com> |
| 2088 | |
| 2089 | * sim-module.h, sim-model.h, sim-profile.h: New files. |
| 2090 | * sim-module.c, sim-profile.c: New files. |
| 2091 | * Make-common.in (SIM_PROFILE): Define |
| 2092 | (CONFIG_CFLAGS): Add $(SIM_PROFILE). |
| 2093 | (sim_main_headers): Add sim-module.h, sim-model.h, sim-profile.h. |
| 2094 | (sim_module.o,sim-profile.o): Add rules for. |
| 2095 | * aclocal.m4 (--enable-sim-trace): Allow symbolic arguments. |
| 2096 | (--enable-sim-profile): Add. |
| 2097 | * configure: Regenerated. |
| 2098 | * sim-base.h (sim_state_base): New members init_list, uninstall_list, |
| 2099 | model. Move trace and profile support to sim-{trace,profile}.h. |
| 2100 | New members trace_data, profile_data. |
| 2101 | * sim-basics.h: #include sim-module.h, sim-model.h, sim-profile.h. |
| 2102 | * sim-config.h: Provide default definition of WITH_PROFILE. |
| 2103 | (WITH_TRACE): Change default to -1. |
| 2104 | (MAX_NR_PROCESSORS): Always define. |
| 2105 | * sim-options.c: Move trace and profile support to |
| 2106 | sim-{trace,profile}.h. |
| 2107 | (sim_pre_argv_init): Moved to sim-model.c. |
| 2108 | (standard_install): New function. |
| 2109 | * sim-options.h (sim_pre_argv_init): Move decl to sim-model.c. |
| 2110 | (standard_install): Declare. |
| 2111 | * sim-trace.c: Tracing option handling moved here from sim-options.c. |
| 2112 | (trace_install, trace_uninstall): New functions. |
| 2113 | (trace_printf): Update reference to TRACE_FILE. |
| 2114 | * sim-trace.h (TRACE_FOO_IDX): Moved here from sim-base.h. |
| 2115 | (TRACE_foo): Bit masks for symbolic arguments to --enable-sim-trace. |
| 2116 | (WITH_TRACE_FOO_P): Define. |
| 2117 | (trace_install): Declare. |
| 2118 | (TRACE_DATA): New struct. |
| 2119 | |
| 2120 | Wed Apr 23 17:23:15 1997 Doug Evans <dje@canuck.cygnus.com> |
| 2121 | |
| 2122 | * run.c: Undo last exec_bfd patch. |
| 2123 | (main): Only pass -E ifdef SIM_HAVE_BIENDIAN. |
| 2124 | |
| 2125 | Wed Apr 23 17:54:27 1997 Mike Meissner <meissner@cygnus.com> |
| 2126 | |
| 2127 | * run.c (exec_bfd): Add back in. |
| 2128 | (main): Set exec_bfd. |
| 2129 | |
| 2130 | Tue Apr 22 14:43:46 1997 Doug Evans <dje@canuck.cygnus.com> |
| 2131 | |
| 2132 | * sim-load.c (sim_load_file): #include <stdio.h> for NULL. |
| 2133 | |
| 2134 | Wed Apr 23 02:55:54 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 2135 | |
| 2136 | * sim-events.c (insert_sim_event): Call sim_io_error instead of |
| 2137 | less well defined engine_error. |
| 2138 | * sim-core.c: Ditto. |
| 2139 | |
| 2140 | Tue Apr 22 08:48:16 1997 Stu Grossman (grossman@critters.cygnus.com) |
| 2141 | |
| 2142 | * Make-common.in: Change clean targets to use :: so that other |
| 2143 | Makefiles can have their own clean targets. |
| 2144 | * sim-load.c (xprintf eprintf): Use ANSI_PROTOTYPES instead of |
| 2145 | __STDC__ to control use of stdarg vs. varargs syntax. Some |
| 2146 | systems can't use __STDC__, but require stdarg. |
| 2147 | |
| 2148 | Fri Apr 18 11:14:43 1997 Doug Evans <dje@canuck.cygnus.com> |
| 2149 | |
| 2150 | * sim-options.c (standard_options): Add --endian. |
| 2151 | (standard_option_handler): Likewise. |
| 2152 | |
| 2153 | * nrun.c: #include <signal.h>. |
| 2154 | (main, cntrl_c): Wrap calls to sim_resume in a SIGINT |
| 2155 | handler that calls sim_stop (). |
| 2156 | |
| 2157 | Fri Apr 18 13:11:36 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 2158 | |
| 2159 | * run.c (main, cntrl_c): Wrap calls to sim_resume in a SIGINT |
| 2160 | handler that calls sim_stop (). Simulators may still be |
| 2161 | establishing their own handler. |
| 2162 | |
| 2163 | * sim-events.c (sim_events_poll): Rename from |
| 2164 | sim_events_at_large_int. Poll IO. |
| 2165 | |
| 2166 | * sim-io.c (sim_io_poll_quit): New function - pass on a polling |
| 2167 | request. |
| 2168 | |
| 2169 | * callback.c (os_poll_quit): New function poll for quit signal |
| 2170 | where needed. |
| 2171 | (default_callback): Include magic number. |
| 2172 | |
| 2173 | Thu Apr 17 02:25:11 1997 Doug Evans <dje@canuck.cygnus.com> |
| 2174 | |
| 2175 | * aclocal.m4: Check for headers time.h, sys/time.h, sys/resource.h. |
| 2176 | Check for functions getrusage, time. |
| 2177 | * sim-basics.h (SIM_ELAPSED_TIME): New typedef. |
| 2178 | (sim_elapsed_time_get, sim_elapsed_time_since): Add prototypes. |
| 2179 | * sim-utils.c: #include time.h, sys/time.h, sys/resource.h if able. |
| 2180 | (sim_elapsed_time_get, sim_elapsed_time_since): New functions. |
| 2181 | |
| 2182 | * sim-utils.c (sim_copy_argv, sim_analyze_program): New functions. |
| 2183 | |
| 2184 | * sim-options.c, sim-options.h: New files. |
| 2185 | * sim-config.h (WITH_DEBUG): Provide default value of zero. |
| 2186 | * Make-common.in (nrun.o): Add rules for. |
| 2187 | * nrun.c: New file. |
| 2188 | |
| 2189 | * run.c (main): Check return value of sim_open. |
| 2190 | |
| 2191 | * Make-common.in (sim-options.o, sim-load.o, sim-trace.o): Add rules. |
| 2192 | (sim_main_headers): Add sim-trace.h. |
| 2193 | * run.c (exec_bfd, target_byte_order): Delete. |
| 2194 | (main): Pass -E <endian> to sim_open. Delete code to load sections, |
| 2195 | call sim_load instead. Check return code of sim_create_inferior. |
| 2196 | * sim-base.h (CURRENT_STATE): Define. |
| 2197 | (sim_state_base): Make typedef. New members options, prog_argv, |
| 2198 | prog_bfd, text_{section,start,end}, start_addr, simcache_size, |
| 2199 | mem_size, memory [+ corresponding access macros]. |
| 2200 | (sim_cpu_base): New typedef. |
| 2201 | * sim-trace.h: New file. |
| 2202 | * sim-trace.c: New file. |
| 2203 | * sim-basics.h: #include it. |
| 2204 | * sim-load.c: New file. |
| 2205 | |
| 2206 | Tue Apr 15 15:10:13 1997 Ian Lance Taylor <ian@cygnus.com> |
| 2207 | |
| 2208 | * Make-common.in (INSTALL): Set to @INSTALL@. |
| 2209 | (INSTALL_XFORM, INSTALL_XFORM1): Remove. |
| 2210 | (install-common): Depend upon installdirs. Use |
| 2211 | $(program_transform_name) directly, rather than using |
| 2212 | $(INSTALL_XFORM). |
| 2213 | (installdirs): New target. |
| 2214 | * Makefile.in (INSTALL): Set to @INSTALL@. |
| 2215 | (INSTALL_XFORM, INSTALL_XFORM1): Remove. |
| 2216 | (install-man): Depend upon installdirs. Use |
| 2217 | $(program_transform_name) directly, rather than using |
| 2218 | $(INSTALL_XFORM). |
| 2219 | (installdirs): New target. |
| 2220 | |
| 2221 | Tue Apr 15 15:08:12 1997 Andrew Cagney <cagney@b1.cygnus.com> |
| 2222 | |
| 2223 | * sim-assert.h (SIM_ASSERT, ASSERT): Allow these macros to |
| 2224 | be overriden. |
| 2225 | |
| 2226 | Wed Apr 9 16:06:44 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 2227 | |
| 2228 | * sim-basics.h: Only bring in config.h and tconfig.h if |
| 2229 | HAVE_CONFIG_H. |
| 2230 | |
| 2231 | Mon Apr 7 11:39:45 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 2232 | |
| 2233 | * sim-config.h (WITH_TARGET_WORD_MSB): New Macro. Define the bit |
| 2234 | numbering convention of the target. |
| 2235 | * sim-config.c (print_sim_config): Print WITH_TARGET_WORD_BITSIZE |
| 2236 | and WITH_TARGET_WORD_MSB. |
| 2237 | (sim_config): When possible, check for consistency with bitsize |
| 2238 | and msb. |
| 2239 | |
| 2240 | * sim-bits.h: Allow MSB to be other than zero. |
| 2241 | * sim-bits.c: Ditto. |
| 2242 | * sim-n-bits.h: Ditto. |
| 2243 | |
| 2244 | * sim-bits.h (MSMASK*): New macros - converce to LSMASK*. |
| 2245 | * sim-n-bits.h (MSMASKEDn): Ditto. |
| 2246 | |
| 2247 | Mon Apr 14 16:29:21 1997 Ian Lance Taylor <ian@cygnus.com> |
| 2248 | |
| 2249 | * Makefile.in (INSTALL): Change install.sh to install-sh. |
| 2250 | |
| 2251 | Mon Apr 7 10:46:38 1997 Doug Evans <dje@canuck.cygnus.com> |
| 2252 | |
| 2253 | * sim-base.h (sim_state_base): Move `magic' to end of struct. |
| 2254 | |
| 2255 | Mon Apr 7 15:53:21 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 2256 | |
| 2257 | * run.c (main): Check that a program to run was specified. |
| 2258 | |
| 2259 | Mon Apr 7 15:45:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 2260 | |
| 2261 | * aclocal.m4 (AC_TYPE_SIGNAL): Add check. |
| 2262 | |
| 2263 | * configure: Regenerated to track ../common/aclocal.m4 changes. |
| 2264 | * config.in: Ditto. |
| 2265 | |
| 2266 | Wed Apr 2 15:06:28 1997 Doug Evans <dje@canuck.cygnus.com> |
| 2267 | |
| 2268 | * sim-endian.h: Move host {LITTLE,BIG}_ENDIAN support from here, |
| 2269 | * sim-config.h: To here. |
| 2270 | |
| 2271 | * Make-common.in (SIM_EXTRA_DEPS): New config var. |
| 2272 | (sim_main_headers): Define. |
| 2273 | (sim-*.o): Depend on $(SIM_EXTRA_DEPS). |
| 2274 | start-sanitize-d30v |
| 2275 | (BUILT_SRC_FROM_COMMON): Move here from ../d30v/Makefile.in. |
| 2276 | end-sanitize-d30v |
| 2277 | (clean): Use it. |
| 2278 | (sim-utils.o): Add rule for. |
| 2279 | * sim-utils.o: New file. |
| 2280 | * sim-basics.h: #include sim-base.h. |
| 2281 | (zalloc): Make argument unsigned long. |
| 2282 | * sim-base.h: New file. |
| 2283 | * sim-inline.h (SIM_IO support): Delete. |
| 2284 | * sim-io.h: Delete inline support. |
| 2285 | * sim-io.c: Likewise. sim-state.h renamed to sim-main.h. |
| 2286 | * sim-config.c: sim-state.h renamed to sim-main.h. |
| 2287 | * sim-core.c: Likewise. |
| 2288 | * sim-events.c: Likewise. |
| 2289 | |
| 2290 | * run.c (main): Pass SIM_OPEN_STANDALONE to sim_open. |
| 2291 | |
| 2292 | * aclocal.m4: Check for stdlib.h, string.h, strings.h, unistd.h. |
| 2293 | (sim-debug): Allow arguments. Define WITH_DEBUG in addition to |
| 2294 | -DDEBUG. |
| 2295 | * configure: Regenerated to track ../common/aclocal.m4 changes. |
| 2296 | |
| 2297 | Wed Apr 2 14:34:19 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 2298 | |
| 2299 | * configure: Regenerated to track ../common/aclocal.m4 changes. |
| 2300 | |
| 2301 | Wed Apr 2 11:08:11 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 2302 | |
| 2303 | * sim-config.h (WITH_ALIGNMENT, WITH_FLOATING_POINT, |
| 2304 | WITH_XOR_ENDIAN, WITH_SMP, WITH_RESERVED_BITS): Assume that these |
| 2305 | are defined by the configure. |
| 2306 | |
| 2307 | * aclocal.m4 (sim-stdio): Add option stdio from ../ppc configure. |
| 2308 | |
| 2309 | * aclocal.m4 (floating-point, xor-endian, alignment, smp, |
| 2310 | reserved-bits): Always define. |
| 2311 | |
| 2312 | * sim-config.h, sim-config.c (sim_config): New function - and new |
| 2313 | file - co-ordinate the setting/checking of the common simulator |
| 2314 | configuration options. |
| 2315 | |
| 2316 | * Make-common.in (sim-config.o): Add rule. |
| 2317 | |
| 2318 | Fri Mar 28 15:32:00 1997 Mike Meissner <meissner@cygnus.com> |
| 2319 | |
| 2320 | * callback.c (os_{,e}vprintf_filtered): Change stdarg type to |
| 2321 | va_list from void *, since va_list might not be a pointer type. |
| 2322 | |
| 2323 | Mon Mar 24 15:27:12 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 2324 | |
| 2325 | * sim-n-endian.h (offset_N): Correct assertion - word and sub word |
| 2326 | in wrong order. |
| 2327 | (offset_N): Correct computation of LE offset. |
| 2328 | |
| 2329 | * sim-io.c (sim_io_error): Include a new line when reporting |
| 2330 | errors. |
| 2331 | |
| 2332 | * sim-assert.h (SIM_FILTER_PATH): Out by one when locating last |
| 2333 | `/'. |
| 2334 | |
| 2335 | Thu Mar 20 22:31:06 1997 Jeffrey A Law (law@cygnus.com) |
| 2336 | |
| 2337 | * run.c: Include alloca-conf.h. |
| 2338 | |
| 2339 | * callback.c (os_evprintf_filtered): Fix typo. |
| 2340 | |
| 2341 | Fri Mar 21 13:36:20 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 2342 | |
| 2343 | * run.c (string.h, strings.h, stdlib.h): Include. |
| 2344 | |
| 2345 | * sim-events.c (sim_events_tick): Recent cleanup failed to return |
| 2346 | 0 when nothing pending. |
| 2347 | |
| 2348 | * run.c (sim_size, sim_trace): Plicate GCC - these two functions |
| 2349 | will soon be going away. |
| 2350 | (getopt): Plicate GCC. |
| 2351 | |
| 2352 | * sim-endian.c (sim-io.h): Plicate GCC. |
| 2353 | * sim-bits.c (sim-io.h): Ditto. |
| 2354 | * sim-n-bits.h (ROTn): Ditto. |
| 2355 | |
| 2356 | * sim-io.c (sim_io_error): Correct check for NULL. |
| 2357 | |
| 2358 | * sim-assert.h (SIM_FILTER_PATH): Separate out the code filtering |
| 2359 | the __FILE__. |
| 2360 | * sim-events.c: Use SIM_FILTER_PATH to filter out the filename |
| 2361 | path. |
| 2362 | |
| 2363 | Wed Mar 19 01:12:06 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 2364 | |
| 2365 | * aclocal.m4 (SIM_AC_OPTION_*: Move so that they are outside of |
| 2366 | SIM_AC_COMMON - SIM_AC_COMMON was gobling arguments. |
| 2367 | |
| 2368 | Tue Mar 18 20:48:12 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 2369 | |
| 2370 | * sim-alu.h: Include sim-xcat.h. |
| 2371 | |
| 2372 | Tue Mar 18 13:58:18 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 2373 | |
| 2374 | * Make-common.in (sim-bits.c, sim-core.c, sim-endian.c, |
| 2375 | sim-events.c, sim-inline.c, sim-io.c): Define rules for building |
| 2376 | these. |
| 2377 | |
| 2378 | * sim-events.c (sim_events_at_large_int): New function. Just |
| 2379 | schedules an event every large-int ticks. |
| 2380 | (sim_events_init): Call. |
| 2381 | (sim_events_tick, sim_events_process): Move async handing to |
| 2382 | sim_events_process. Move timer decrement so that it occures after |
| 2383 | events have been processed. |
| 2384 | |
| 2385 | * sim-basics.h (struct _engine): Remove declaration. |
| 2386 | |
| 2387 | * sim-events.h, sim-events.c: Rename type to sim_events. Prefix |
| 2388 | everything with same. Rename global struct to SIM_DESC. |
| 2389 | * sim-core.h, sim-core.c, sim-n-core.c: Ditto for sim_core. |
| 2390 | * sim-io.h, sim-io.c: Ditto. |
| 2391 | |
| 2392 | * sim-assert.h: New file. Optional assertion checking macros. |
| 2393 | * sim-io.c (sim_io_error): Make just this function tolerant to |
| 2394 | null pointers. |
| 2395 | |
| 2396 | * sim-xcat.h: New file. Define concatenate macros. |
| 2397 | * sim-basics.h (XCONCAT*): Move to sim-xcat.h. |
| 2398 | * sim-n-core.h, sim-n-bits.h, sim-n-endian.h: Explicitly include |
| 2399 | concat macros. |
| 2400 | |
| 2401 | |
| 2402 | Tue Mar 18 12:44:55 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 2403 | |
| 2404 | * sim-bits.h (LSMASK): New macro. Create mask of LS bits. |
| 2405 | |
| 2406 | Mon Mar 17 18:10:05 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 2407 | |
| 2408 | * sim-inline.h: Add definitions for sim-types. |
| 2409 | (ALL_BY_MODULE): New macro, encapsulate full inlining by the |
| 2410 | module. |
| 2411 | |
| 2412 | Mon Mar 17 15:38:27 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 2413 | |
| 2414 | * sim-events.h: Remove defunct reference to callback struct. |
| 2415 | |
| 2416 | Mon Mar 17 15:10:07 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 2417 | |
| 2418 | * configure: Re-generate. |
| 2419 | |
| 2420 | Mon Mar 17 15:04:47 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 2421 | |
| 2422 | * Make-common.in (CSEARCH): Do not include the gdb directory in |
| 2423 | the search path. |
| 2424 | |
| 2425 | Mon Mar 17 13:16:26 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 2426 | |
| 2427 | * Make-common.in (SIM_ENDIAN, SIM_HOSTENDIAN, SIM_INLINE, |
| 2428 | SIM_WARNING): Drop, requiring the simulator specific Makefile.in |
| 2429 | to explicitly incorporate these. |
| 2430 | |
| 2431 | * aclocal.m4 (--enable-sim-alignment); New option. Strongly |
| 2432 | specify the alignment restrictions of the target architecture - |
| 2433 | without this option all alignment restrictions are accomodated. |
| 2434 | (--enable-sim-assert): New option. Conditionally compile in |
| 2435 | assertion statements. |
| 2436 | (--enable-sim-float): New option. Strongly specify the target's |
| 2437 | floating point support. |
| 2438 | (--enable-sim-hardware): New option. Specify the hardware devices |
| 2439 | included in the simulation. |
| 2440 | (--enable-sim-packages): New option. Specify the hardware |
| 2441 | packages included in the simulation. |
| 2442 | (--enable-sim-regparm): New option. Specify that parameters be |
| 2443 | passed in registers instead of on the stack. |
| 2444 | (--enable-sim-reserved-bits): New option. Specify that reserved |
| 2445 | bits within an instruction are are correctly set. |
| 2446 | (--enable-sim-smp): New option. Specify the level of SMP support |
| 2447 | to be included in the simulator. |
| 2448 | (--enable-sim-stdcall): New option. Specify an alternative |
| 2449 | function call convention. |
| 2450 | (--enable-sim-xor-endian): New option. Configure xor-endian |
| 2451 | support used by some targets to implement bi-endian support. |
| 2452 | |
| 2453 | Fri Mar 14 19:51:21 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 2454 | |
| 2455 | * aclocal.m4 (--enable-sim-hostendian): New option. Allow the |
| 2456 | host endianness to be overridden. |
| 2457 | (--enable-sim-endian): Allow the target platform's byte order |
| 2458 | to be overridden. |
| 2459 | (--enable-sim-inline): Control the inlining of common components. |
| 2460 | (--enable-sim-bswap): For compatibility, also define WITH_BSWAP. |
| 2461 | (--enable-sim-warnings): Enable additional GCC compiler checks. |
| 2462 | * Make-common.in (SIM_ENDIAN, SIM_HOSTENDIAN, SIM_INLINE, |
| 2463 | SIM_WARNINGS): Add. |
| 2464 | |
| 2465 | * sim-n-core.h, sim-n-bits.h, sim-n-endian.h: Rename from |
| 2466 | sim-*-n.h so that the names are uniq on dos machines |
| 2467 | * sim-core.c, sim-bits.c, sim-endian.c: Update. |
| 2468 | |
| 2469 | Thu Mar 13 12:32:42 1997 Doug Evans <dje@canuck.cygnus.com> |
| 2470 | |
| 2471 | * run.c: #include "libiberty.h". |
| 2472 | (main): New locals sd,no_args,sim_argv. |
| 2473 | Run buildargv on -a option. Pass argv to sim_open, argv[0] |
| 2474 | is program name. Update call to sim_set_callbacks. |
| 2475 | Record result of sim_open, pass to other sim_foo routines. |
| 2476 | |
| 2477 | Thu Mar 13 10:24:05 1997 Michael Meissner <meissner@cygnus.com> |
| 2478 | |
| 2479 | * callback.c (os_printf_filtered): Do not call exit(1) or print a |
| 2480 | final newline. |
| 2481 | |
| 2482 | Thu Mar 6 15:50:28 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 2483 | |
| 2484 | * callback.c: Add os_flush_stdout and vprintf_filtered callbacks. |
| 2485 | Route stdout through buffered IO. |
| 2486 | |
| 2487 | * callback.c: Add os_flush_stderr, os_write_stderr, |
| 2488 | os_evprintf_filtered functions to route error output through |
| 2489 | stderr. |
| 2490 | |
| 2491 | * sim-io.h, sim-io.c (sim_io_flush_stderr, sim_io_flush_stdout): |
| 2492 | Correct return type - should be void. |
| 2493 | |
| 2494 | Fri Mar 7 20:14:37 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 2495 | |
| 2496 | * sim-basics.h: Clean up. Many macro's moved to sim-inline.h. |
| 2497 | |
| 2498 | * sim-config.h: Ditto. For some options - eg WITH_DEVICES - do |
| 2499 | not provide a default value as undefined indicates disable code. |
| 2500 | |
| 2501 | Thu Mar 6 15:50:28 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 2502 | |
| 2503 | * sim-core.h, sim-core-n.h, sim-core.c: Borrow code from ppc |
| 2504 | directory. |
| 2505 | * sim-events.h, sim-events.c: Ditto. |
| 2506 | * sim-io.h, sim-io.c: Ditto. |
| 2507 | |
| 2508 | Tue Mar 4 09:35:56 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 2509 | |
| 2510 | * sim-alu.h (ALU_SUB_CA, ALU*_SUB_CA): New alu operation. |
| 2511 | |
| 2512 | * sim-bits.h, sim-bits-n.h, sim-bits.c (LSMASKED*): New macro's |
| 2513 | extract the tail or least signifiant bits from an integer of the |
| 2514 | specified size. |
| 2515 | |
| 2516 | * sim-bits.h, sim-bits.c: Clean up conditionally compiled #if |
| 2517 | WITH_TARGET_BITSIZE so that the compilation will fail when an |
| 2518 | unsupported bitsize value is defined. |
| 2519 | |
| 2520 | (INSERTED*): Convert to functions. |
| 2521 | (EXTRACTED*): Ditto. |
| 2522 | |
| 2523 | (SIGN_EXTEND, SEXT): Change to more terse name. |
| 2524 | |
| 2525 | Tue Mar 4 09:35:56 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 2526 | |
| 2527 | * sim-inline.h: Allow explicit control over which .c files will be |
| 2528 | included by their header. |
| 2529 | |
| 2530 | * sim-inline.h: Allow explicit control over which .c files use the |
| 2531 | alternative - REGPARM - parameter passing mechanism. |
| 2532 | |
| 2533 | * sim-inline.h, sim-inline.c: Don't attempt to include any of |
| 2534 | icache.c, idecode.c, semantics.c or support.c. Those names are |
| 2535 | not generally applicable. |
| 2536 | |
| 2537 | Thu Feb 27 10:17:23 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 2538 | |
| 2539 | * sim-bits.c, sim-bits-n.h (new): Split sim-bits.c into two parts |
| 2540 | in a fashion similar to sim-endian-n. |
| 2541 | |
| 2542 | * sim-endian.h: (H_word, L_word, AL_*, VL_*): Extend to include |
| 2543 | both value and address macro's. |
| 2544 | |
| 2545 | Tue Feb 25 18:51:57 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
| 2546 | |
| 2547 | * sim-alu.h (ALU16_BEGIN, ALU16_SET, ...): Fill in. |
| 2548 | |
| 2549 | * sim-endian.h (L_word, H_word): Replace MS2W_4, LS2W_4 with more |
| 2550 | generic L_word, H_word macro's. |
| 2551 | |
| 2552 | Thu Feb 20 18:36:55 1997 Andrew Cagney <cagney@critters.cygnus.com> |
| 2553 | |
| 2554 | * sim-basics.h: Borrow code from ppc directory. |
| 2555 | * sim-bits.c: Ditto. |
| 2556 | * sim-bits.h: Ditto. |
| 2557 | * sim-config.h: Ditto. |
| 2558 | * sim-endian-n.h: Ditto. |
| 2559 | * sim-endian.c: Ditto. |
| 2560 | * sim-endian.h: Ditto. |
| 2561 | * sim-inline.c: Ditto. |
| 2562 | * sim-inline.h: Ditto. |
| 2563 | * sim-types.h: Ditto. |
| 2564 | |
| 2565 | Wed Feb 19 12:40:50 1997 Andrew Cagney <cagney@critters.cygnus.com> |
| 2566 | |
| 2567 | * sim-alu.h (ALU_SET16, ALU_SET32, ALU_SET64, etc): Make available |
| 2568 | all the ALU size alternatives and then auto-configure a default. |
| 2569 | |
| 2570 | * sim-alu.h: Copy ppc/idecode_expression.h. |
| 2571 | |
| 2572 | Mon Feb 17 10:44:18 1997 Andrew Cagney <cagney@critters.cygnus.com> |
| 2573 | |
| 2574 | * bits.h, bits.c (SIGN_EXTEND32, SIGN_EXTEND64): New functions, |
| 2575 | sign extend a bit within a value. |
| 2576 | |
| 2577 | * sim-endian.h, sim-endian-n.h (offset_N): New functions - return |
| 2578 | a pointer into the middle of a host word. |
| 2579 | * sim-endian.h (MS2W_4, LS2W_4): Use this function. |
| 2580 | |
| 2581 | Tue Feb 11 13:46:49 1997 Michael Meissner <meissner@tiktok.cygnus.com> |
| 2582 | |
| 2583 | * callback.c: If HAVE_CONFIG_H is defined, include config.h from |
| 2584 | autoconf. If HAVE_UNISTD_H is defined, include unistd.h to get |
| 2585 | appropriate definitions of read, write, etc. Add prototype for |
| 2586 | system. |
| 2587 | |
| 2588 | Tue Feb 4 13:24:44 1997 Doug Evans <dje@canuck.cygnus.com> |
| 2589 | |
| 2590 | * Makefile.in (libcommon.a): Delete. |
| 2591 | (callback.o,targ-map.o): Delete, moved to Make-common.in. |
| 2592 | (gentmap,targ-vals.h,targ-map.c): Likewise. |
| 2593 | (run-autoconf): Delete. |
| 2594 | * aclocal.m4 (SIM_AC_OUTPUT): Redo creation of Makefile. |
| 2595 | (common makefile fragment): Moved back into ... |
| 2596 | * Make-common.in: Resurrect. |
| 2597 | * configure.in (AC_LINK_FILES): Delete, unnecessary now. |
| 2598 | * configure: Regenerated. |
| 2599 | |
| 2600 | Fri Jan 31 07:16:49 1997 Doug Evans <dje@canuck.cygnus.com> |
| 2601 | |
| 2602 | * aclocal.m4 (SIM_AC_COMMON): Move COMMON_MAKEFILE_FRAG from here. |
| 2603 | (SIM_AC_OUTPUT): To here. |
| 2604 | |
| 2605 | Fri Jan 24 10:37:17 1997 Stu Grossman (grossman@critters.cygnus.com) |
| 2606 | |
| 2607 | * aclocal.m4 (COMMON_MAKEFILE_FRAG): Quote a couple of $'s in |
| 2608 | comments and single quotes. Fixes a problem found on hpux. |
| 2609 | |
| 2610 | Thu Jan 23 13:35:03 1997 Stu Grossman (grossman@critters.cygnus.com) |
| 2611 | |
| 2612 | * aclocal.m4: Remove Make-common.in from dependencies. |
| 2613 | * (distclean): Remove targ-vals.def. |
| 2614 | |
| 2615 | * aclocal.m4 (SIM_AC_COMMON): Move contents of Make-common.in |
| 2616 | into here. Makes insertion into makefiles easier. Also, change |
| 2617 | the way that callback.o, gentmap, targ-vals.h, targ-map.c, |
| 2618 | targ-map.o, and run are built. They are now built in the |
| 2619 | individual simulator directories, taking sources from ../common as |
| 2620 | necessary. This replaces the merging of libcommon.a into |
| 2621 | linsim.a, which was problematic for the WinGDB build process. |
| 2622 | * run.c: Include config.h from . instead of ../common. |
| 2623 | * Make-common.in: Remove. It's no longer necessary. |
| 2624 | |
| 2625 | Mon Dec 16 15:02:33 1996 Ian Lance Taylor <ian@cygnus.com> |
| 2626 | |
| 2627 | * Make-common.in (ALL_CLAGS): Put CFLAGS at the end. |
| 2628 | (.c.o): Put $(ALL_CFLAGS) before the file being compiled. |
| 2629 | |
| 2630 | Wed Dec 11 11:30:58 1996 Jim Wilson <wilson@cygnus.com> |
| 2631 | |
| 2632 | * run.c (main): Set target_byte_order before call to sim_open. |
| 2633 | |
| 2634 | Sun Dec 8 18:22:06 1996 Doug Evans <dje@canuck.cygnus.com> |
| 2635 | |
| 2636 | * callback.c: #include <stdlib.h> |
| 2637 | (os_error): New function. |
| 2638 | (default_callback): Add os_error. |
| 2639 | |
| 2640 | Mon Nov 25 19:44:35 1996 Doug Evans <dje@canuck.cygnus.com> |
| 2641 | |
| 2642 | * Make-common.in (Makefile): Set CONFIG_HEADERS="". |
| 2643 | * aclocal.m4: Mark the fact that --enable-sim-bswap isn't host |
| 2644 | specific. |
| 2645 | (SIM_AC_OUTPUT): Don't build Makefile if CONFIG_FILES="". |
| 2646 | |
| 2647 | Wed Nov 20 01:11:04 1996 Doug Evans <dje@canuck.cygnus.com> |
| 2648 | |
| 2649 | * run.c: #include ../common/config.h, tconfig.h. |
| 2650 | (myname): New static global. |
| 2651 | (main): Recognize new options -a, -c. Also recognize -h if h8/300. |
| 2652 | Only process -c ifdef SIM_HAVE_SIMCACHE. |
| 2653 | Only process -p/-s ifdef SIM_HAVE_PROFILE. |
| 2654 | Parse program name from argv[0] and use in error messages. |
| 2655 | Pass sim_args to sim_open. Pass prog_args to sim_create_inferior. |
| 2656 | Add support for incomplete h8/300 termination indicators. |
| 2657 | (usage): Make more verbose. |
| 2658 | * aclocal.m4,config.in,tconfig.in,configure.in,configure: New files. |
| 2659 | * Makefile.in,Make-common.in,callback.c: New files. |
| 2660 | * nltvals.def,gentmap.c,gentvals.sh: New files. |
| 2661 | |
| 2662 | Tue Nov 12 13:34:00 1996 Dawn Perchik <dawn@cygnus.com> |
| 2663 | |
| 2664 | * run.c: Include stdarg.h if __STDC__. |
| 2665 | |
| 2666 | Tue Oct 15 11:16:31 1996 Jeffrey A Law (law@cygnus.com) |
| 2667 | |
| 2668 | * run.c (main): Don't print out anything if the signal |
| 2669 | number is zero (ie no signal). |
| 2670 | |
| 2671 | Tue Oct 15 11:20:44 1996 Michael Meissner <meissner@tiktok.cygnus.com> |
| 2672 | |
| 2673 | * run.c (main): Print out if the program raised a signal. |
| 2674 | |
| 2675 | Wed Sep 18 09:52:14 1996 Michael Meissner <meissner@tiktok.cygnus.com> |
| 2676 | |
| 2677 | * run.c (exec_bfd): Rename from sim_bfd, to use the gdb name. |
| 2678 | (main): Ditto. |
| 2679 | |
| 2680 | Tue Sep 17 11:04:50 1996 James G. Smith <jsmith@cygnus.co.uk> |
| 2681 | |
| 2682 | * run.c (main): Explicitly cast malloc() parameter. |
| 2683 | |
| 2684 | Thu Sep 12 11:27:21 1996 Michael Meissner <meissner@tiktok.cygnus.com> |
| 2685 | |
| 2686 | * run.c (sim_bfd): New global to hold the bfd pointer for the |
| 2687 | executable. |
| 2688 | (main): Initialize sim_bfd. |
| 2689 | |
| 2690 | Fri Dec 15 16:27:49 1995 Ian Lance Taylor <ian@cygnus.com> |
| 2691 | |
| 2692 | * run.c (main): Use new bfd_big_endian macro. |
| 2693 | |
| 2694 | Wed Nov 8 15:49:49 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk> |
| 2695 | |
| 2696 | * run.c (main): Removed SH specific comments, so source is |
| 2697 | generic. Also updated to only load relevant sections. Moved |
| 2698 | sim_open() to after callback attach (to match GDB). |
| 2699 | |
| 2700 | * run.1: Removed SH specific comments. |
| 2701 | |
| 2702 | Sat Oct 21 12:31:01 1995 Jim Wilson <wilson@chestnut.cygnus.com> |
| 2703 | |
| 2704 | * run.c (main): Always return sigrc at end. |
| 2705 | |
| 2706 | Tue Oct 10 12:03:13 1995 J.T. Conklin <jtc@rtl.cygnus.com> |
| 2707 | |
| 2708 | * run.c (main): Print error diagnostic and exit if bfd_openr() or |
| 2709 | bfd_check_format() fails. |
| 2710 | |
| 2711 | Thu Sep 28 15:40:36 1995 steve chamberlain <sac@slash.cygnus.com> |
| 2712 | |
| 2713 | * run.c, run.1: From sh directory. |
| 2714 | |
| 2715 | |