1*4b169a6bSchristos2021-06-09 Mike Frysinger <vapier@gentoo.org> 2*4b169a6bSchristos 3*4b169a6bSchristos * gen-itable.c (NULL): Delete. 4*4b169a6bSchristos * gen-model.c (NULL): Likewise. 5*4b169a6bSchristos * ld-cache.c (NULL): Likewise. 6*4b169a6bSchristos * ld-decode.c (NULL): Likewise. 7*4b169a6bSchristos 8*4b169a6bSchristos2021-06-05 Mike Frysinger <vapier@gentoo.org> 9*4b169a6bSchristos 10*4b169a6bSchristos * local.mk (all-recursive): Delete rule. 11*4b169a6bSchristos (SIM_ALL_RECURSIVE_DEPS): Append. 12*4b169a6bSchristos 13*4b169a6bSchristos2021-05-04 Mike Frysinger <vapier@gentoo.org> 14*4b169a6bSchristos 15*4b169a6bSchristos * local.mk (igen/libigen.a): New target. 16*4b169a6bSchristos 17*4b169a6bSchristos2021-05-02 Mike Frysinger <vapier@gentoo.org> 18*4b169a6bSchristos 19*4b169a6bSchristos * lf.h: Include ansidecl.h. 20*4b169a6bSchristos (lf_printf): Change __attribute__((printf)) to ATTRIBUTE_PRINTF. 21*4b169a6bSchristos 22*4b169a6bSchristos2021-04-02 Mike Frysinger <vapier@gentoo.org> 23*4b169a6bSchristos 24*4b169a6bSchristos * local.mk: New file. 25*4b169a6bSchristos * aclocal.m4, Makefile.in, configure.ac, configure: Removed. 26*4b169a6bSchristos 27*4b169a6bSchristos2021-04-02 Mike Frysinger <vapier@gentoo.org> 28*4b169a6bSchristos 29*4b169a6bSchristos * configure.ac: Call SIM_AC_TOOLCHAIN and AC_CONFIG_FILES. 30*4b169a6bSchristos (AC_PROG_INSTALL, AC_PROG_CC, AC_CANONICAL_SYSTEM, CC_FOR_BUILD, 31*4b169a6bSchristos CFLAGS_FOR_BUILD): Delete. 32*4b169a6bSchristos * aclocal.m4: New file. 33*4b169a6bSchristos * configure: Regenerate. 34*4b169a6bSchristos 35*4b169a6bSchristos2021-03-13 Mike Frysinger <vapier@gentoo.org> 36*4b169a6bSchristos 37*4b169a6bSchristos * Makefile.in (LDFLAGS_FOR_BUILD): Define. 38*4b169a6bSchristos (BUILD_LDFLAGS): Delete. 39*4b169a6bSchristos (LINK_FOR_BUILD): Change BUILD_LDFLAGS to LDFLAGS_FOR_BUILD. 40*4b169a6bSchristos * configure.ac (LDFLAGS_FOR_BUILD): Define. 41*4b169a6bSchristos * configure: Regenerate. 42*4b169a6bSchristos 43*4b169a6bSchristos2021-03-13 Mike Frysinger <vapier@gentoo.org> 44*4b169a6bSchristos 45*4b169a6bSchristos * Makefile.in (COMPILE_FOR_BUILD, LINK_FOR_BUILD): Define. 46*4b169a6bSchristos (.c.o, igen.o): Call COMPILE_FOR_BUILD. 47*4b169a6bSchristos (igen, tmp-table, tmp-filter, tmp-ld-decode, tmp-ld-cache, tmp-ld-insn, 48*4b169a6bSchristos tmp-gen): Call LINK_FOR_BUILD. 49*4b169a6bSchristos 50*4b169a6bSchristos2021-03-08 Mike Frysinger <vapier@gentoo.org> 51*4b169a6bSchristos 52*4b169a6bSchristos * Makefile.in (tmp-table, tmp-filter, tmp-ld-decode, tmp-ld-cache, 53*4b169a6bSchristos tmp-ld-insn, tmp-gen): Delete $(BUILD_LIBS). 54*4b169a6bSchristos 55*4b169a6bSchristos2021-03-07 Mike Frysinger <vapier@gentoo.org> 56*4b169a6bSchristos 57*4b169a6bSchristos * gen.c (main): Delete options arg to INIT_OPTIONS. 58*4b169a6bSchristos * ld-decode.c (main): Likewise. 59*4b169a6bSchristos * ld-insn.c (main): Likewise. 60*4b169a6bSchristos 61*4b169a6bSchristos2021-03-07 Mike Frysinger <vapier@gentoo.org> 62*4b169a6bSchristos 63*4b169a6bSchristos * Makefile.in (check): Define. 64*4b169a6bSchristos 65*4b169a6bSchristos2021-02-28 Mike Frysinger <vapier@gentoo.org> 66*4b169a6bSchristos 67*4b169a6bSchristos * Makefile.in (filter_filename.o): Delete unused target. 68*4b169a6bSchristos (distclean): Remove config.h. 69*4b169a6bSchristos (config.h, stamp-h): Delete targets. 70*4b169a6bSchristos * configure.ac (AC_CONFIG_HEADER): Delete call. 71*4b169a6bSchristos (AC_CHECK_HEADERS, AC_HEADER_DIRENT): Likewise. 72*4b169a6bSchristos (AC_OUTPUT): Remove 2nd arg. 73*4b169a6bSchristos * filter.c: Remove config.h include. 74*4b169a6bSchristos * filter_host.c, igen.c, lf.c, misc.c, misc.h: Likewise. 75*4b169a6bSchristos * table.c: Likewise. Remove HAVE_UNISTD_H check. 76*4b169a6bSchristos * configure: Regenerate. 77*4b169a6bSchristos * config.in: Removed. 78*4b169a6bSchristos 79*4b169a6bSchristos2021-02-28 Mike Frysinger <vapier@gentoo.org> 80*4b169a6bSchristos 81*4b169a6bSchristos * Makefile.in (program_transform_name, AR, RANLIB): Delete. 82*4b169a6bSchristos * configure.ac (AC_ARG_PROGRAM, AC_PROG_RANLIB): Delete calls. 83*4b169a6bSchristos (AC_SUBST): Delete AR & CFLAGS calls. 84*4b169a6bSchristos * configure: Regenerate. 85*4b169a6bSchristos 86*4b169a6bSchristos2021-02-28 Mike Frysinger <vapier@gentoo.org> 87*4b169a6bSchristos 88*4b169a6bSchristos * Makefile.in (AR_FOR_BUILD, AR_FLAGS_FOR_BUILD, 89*4b169a6bSchristos RANLIB_FOR_BUILD): Delete. 90*4b169a6bSchristos * configure.ac: Likewise. 91*4b169a6bSchristos * configure: Regenerate. 92*4b169a6bSchristos 93*4b169a6bSchristos2021-02-21 Mike Frysinger <vapier@gentoo.org> 94*4b169a6bSchristos 95*4b169a6bSchristos * configure.ac (AC_CONFIG_MACRO_DIRS): Replace common with m4. 96*4b169a6bSchristos * configure: Regenerate. 97*4b169a6bSchristos 98*4b169a6bSchristos2021-02-13 Mike Frysinger <vapier@gentoo.org> 99*4b169a6bSchristos 100*4b169a6bSchristos * configure.ac: Replace sinclude with AC_CONFIG_MACRO_DIRS. 101*4b169a6bSchristos * configure: Regenerate. 102*4b169a6bSchristos 103*4b169a6bSchristos2021-02-06 Mike Frysinger <vapier@gentoo.org> 104*4b169a6bSchristos 105*4b169a6bSchristos * Makefile.in (LIBIBERTY_LIB): Delete. 106*4b169a6bSchristos (igen): Delete $(LIBIBERTY_LIB). 107*4b169a6bSchristos * configure.ac (LIBIBERTY_LIB): Delete. 108*4b169a6bSchristos * configure: Regenerate. 109*4b169a6bSchristos 110*4b169a6bSchristos2021-02-06 Mike Frysinger <vapier@gentoo.org> 111*4b169a6bSchristos 112*4b169a6bSchristos * configure.ac: Delete bfd/configure.host sourcing. 113*4b169a6bSchristos * configure: Regenerate. 114*4b169a6bSchristos 115*4b169a6bSchristos2021-01-11 Mike Frysinger <vapier@gentoo.org> 116*4b169a6bSchristos 117*4b169a6bSchristos * configure.ac (AC_CHECK_HEADERS): Delete stdlib.h, string.h, and 118*4b169a6bSchristos strings.h. 119*4b169a6bSchristos * configure, configure.ac: Regenerate. 120*4b169a6bSchristos 121*4b169a6bSchristos2021-01-11 Mike Frysinger <vapier@gentoo.org> 122*4b169a6bSchristos 123*4b169a6bSchristos * filter.c, if.c, misc.c, misc.h, table.c: Delete HAVE_STRING_H, 124*4b169a6bSchristos HAVE_STRINGS_H, HAVE_STDLIB_H, and strings.h include. 125*4b169a6bSchristos 126*4b169a6bSchristos2021-01-09 Mike Frysinger <vapier@gentoo.org> 127*4b169a6bSchristos 128*4b169a6bSchristos * configure: Regenerate. 129*4b169a6bSchristos 130*4b169a6bSchristos2021-01-04 Mike Frysinger <vapier@gentoo.org> 131*4b169a6bSchristos 132*4b169a6bSchristos * gen-icache.c, igen.c: Include stdlib.h. 133*4b169a6bSchristos 134*4b169a6bSchristos2021-01-04 Mike Frysinger <vapier@gentoo.org> 135*4b169a6bSchristos 136*4b169a6bSchristos * configure: Regenerate. 137*4b169a6bSchristos 138*4b169a6bSchristos2020-07-03 Sebastian Huber <sebastian.huber@embedded-brains.de> 139*4b169a6bSchristos 140*4b169a6bSchristos PR sim/26194 141*4b169a6bSchristos * lf.h (lf_get_file_type): Declare. 142*4b169a6bSchristos * lf.c (lf_get_file_type): Define. 143*4b169a6bSchristos * gen-idecode.c (print_idecode_issue_function_header): Use 144*4b169a6bSchristos lf_get_file_type() to issue an extern variable declaration in 145*4b169a6bSchristos case of header files. 146*4b169a6bSchristos 147*4b169a6bSchristos2019-12-19 Tom Tromey <tromey@adacore.com> 148*4b169a6bSchristos 149*4b169a6bSchristos PR build/24572: 150*4b169a6bSchristos * Makefile.in (install-strip): New target. 151*4b169a6bSchristos 152*4b169a6bSchristos2016-01-10 Mike Frysinger <vapier@gentoo.org> 153*4b169a6bSchristos 154*4b169a6bSchristos * configure: Regenerate. 155*4b169a6bSchristos 156*4b169a6bSchristos2016-01-10 Mike Frysinger <vapier@gentoo.org> 157*4b169a6bSchristos 158*4b169a6bSchristos * configure: Regenerate. 159*4b169a6bSchristos 160*4b169a6bSchristos2016-01-10 Mike Frysinger <vapier@gentoo.org> 161*4b169a6bSchristos 162*4b169a6bSchristos * configure: Regenerate. 163*4b169a6bSchristos 164*4b169a6bSchristos2016-01-10 Mike Frysinger <vapier@gentoo.org> 165*4b169a6bSchristos 166*4b169a6bSchristos * configure: Regenerate. 167*4b169a6bSchristos 168*4b169a6bSchristos2016-01-04 Mike Frysinger <vapier@gentoo.org> 169*4b169a6bSchristos 170*4b169a6bSchristos * configure: Regenerate. 171*4b169a6bSchristos 172*4b169a6bSchristos2015-06-12 Mike Frysinger <vapier@gentoo.org> 173*4b169a6bSchristos 174*4b169a6bSchristos * configure: Regenerate. 175*4b169a6bSchristos 176*4b169a6bSchristos2015-04-24 David Binderman <dcb314@hotmail.com> 177*4b169a6bSchristos Nick Clifton <nickc@redhat.com> 178*4b169a6bSchristos 179*4b169a6bSchristos PR 18273 180*4b169a6bSchristos * misc.c (a2i): Fix typos checking for uppercase letters. 181*4b169a6bSchristos 182*4b169a6bSchristos2015-04-17 Mike Frysinger <vapier@gentoo.org> 183*4b169a6bSchristos 184*4b169a6bSchristos * gen-engine.c (print_run_body): Change CIA_GET to CPU_PC_GET and 185*4b169a6bSchristos CIA_SET to CPU_PC_SET. 186*4b169a6bSchristos 187*4b169a6bSchristos2015-03-31 Mike Frysinger <vapier@gentoo.org> 188*4b169a6bSchristos 189*4b169a6bSchristos * configure: Regenerate. 190*4b169a6bSchristos 191*4b169a6bSchristos2014-11-23 Joel Sherrill <joel.sherrill@oarcorp.com> 192*4b169a6bSchristos 193*4b169a6bSchristos * igen/ld-cache.h, igen/table.h: Change immediatly to immediately. 194*4b169a6bSchristos 195*4b169a6bSchristos2014-03-04 Mike Frysinger <vapier@gentoo.org> 196*4b169a6bSchristos 197*4b169a6bSchristos * configure: Regenerate. 198*4b169a6bSchristos 199*4b169a6bSchristos2013-11-25 Steve Ellcey <sellcey@mips.com> 200*4b169a6bSchristos 201*4b169a6bSchristos * igen/Makefile.in (igen): Use BUILD_CFLAGS in link. 202*4b169a6bSchristos 203*4b169a6bSchristos2013-05-10 Freddie Chopin <freddie_chopin@op.pl> 204*4b169a6bSchristos 205*4b169a6bSchristos * configure: Rebuild. 206*4b169a6bSchristos 207*4b169a6bSchristos2012-03-24 Mike Frysinger <vapier@gentoo.org> 208*4b169a6bSchristos 209*4b169a6bSchristos * configure: Regenerate. 210*4b169a6bSchristos 211*4b169a6bSchristos2011-10-17 Mike Frysinger <vapier@gentoo.org> 212*4b169a6bSchristos 213*4b169a6bSchristos * configure.ac: Change include to common/acinclude.m4. 214*4b169a6bSchristos 215*4b169a6bSchristos2011-10-17 Mike Frysinger <vapier@gentoo.org> 216*4b169a6bSchristos 217*4b169a6bSchristos * configure.ac: Change AC_PREREQ to 2.64. Delete AC_CONFIG_HEADER 218*4b169a6bSchristos call. Replace common.m4 include with SIM_AC_COMMON. 219*4b169a6bSchristos * configure: Regenerate. 220*4b169a6bSchristos 221*4b169a6bSchristos2011-07-08 Hans-Peter Nilsson <hp@axis.com> 222*4b169a6bSchristos 223*4b169a6bSchristos * ld-insn.c (print_insn_words): For fields, print conditionals. 224*4b169a6bSchristos 225*4b169a6bSchristos Correct handling of constant named fields. 226*4b169a6bSchristos * gen.c (insn_field_cmp): Tweak comment about neither field 227*4b169a6bSchristos being an insn_field_string with a cond_eq-to-value condition. 228*4b169a6bSchristos (insns_bit_useless) <case insn_field_string, case 229*4b169a6bSchristos decode_find_mixed>: Handle cond_eq-to-value fields as 230*4b169a6bSchristos insn_field_int. 231*4b169a6bSchristos * gen-idecode.c (print_idecode_validate): Handle 232*4b169a6bSchristos insn_field_string cond-equal-to-value fields as insn_field_int. 233*4b169a6bSchristos * gen-icache.c (print_icache_body): Add comment why constant 234*4b169a6bSchristos string fields are handled. 235*4b169a6bSchristos 236*4b169a6bSchristos Remove all #if 0'd code. 237*4b169a6bSchristos * filter.c: Remove #if 0'd function it_is. 238*4b169a6bSchristos (main): Remove #if 0'd code. 239*4b169a6bSchristos * gen-engine.c: Remove #if 0'd functions print_jump, 240*4b169a6bSchristos print_jump_insn, print_jump_definition, 241*4b169a6bSchristos print_jump_internal_function, print_jump_body. 242*4b169a6bSchristos (gen_engine_c): Remove #if 0'd code. 243*4b169a6bSchristos * gen-idecode.c: Remove #if 0'd functions print_jump print_jump, 244*4b169a6bSchristos print_jump_insn, print_jump_definition, 245*4b169a6bSchristos print_jump_internal_function, print_jump_until_stop_body. 246*4b169a6bSchristos * gen-model.c: Remove #if 0'd functions model_c_or_h_data, 247*4b169a6bSchristos model_c_or_h_function, gen_model_h, model_c_insn, 248*4b169a6bSchristos model_c_function, gen_model_c and types model_c_passed_data 249*4b169a6bSchristos and struct _model_c_passed_data. 250*4b169a6bSchristos * gen.c: Remove #if 0'd type constant_field_types and function 251*4b169a6bSchristos insn_field_is_constant. 252*4b169a6bSchristos (gen_entry_find_opcode_field): Remove #if 0'd code. 253*4b169a6bSchristos * ld-insn.c (parse_insn_model_record): Remove #if 0'd code. 254*4b169a6bSchristos * misc.h (STRDUP, STRNDUP): Remove #if 0'd macros. 255*4b169a6bSchristos 256*4b169a6bSchristos2011-02-14 Mike Frysinger <vapier@gentoo.org> 257*4b169a6bSchristos 258*4b169a6bSchristos * table.c (table_push): Change zfree to free. 259*4b169a6bSchristos 260*4b169a6bSchristos2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 261*4b169a6bSchristos 262*4b169a6bSchristos * config.in: Regenerate. 263*4b169a6bSchristos * configure: Likewise. 264*4b169a6bSchristos 265*4b169a6bSchristos * configure: Regenerate. 266*4b169a6bSchristos 267*4b169a6bSchristos2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 268*4b169a6bSchristos 269*4b169a6bSchristos * Makefile.in (datarootdir): New variable. 270*4b169a6bSchristos 271*4b169a6bSchristos2008-08-28 Joel Brobecker <brobecker@adacore.com> 272*4b169a6bSchristos 273*4b169a6bSchristos * compare_igen_models: Change license to GPL version 3. 274*4b169a6bSchristos 275*4b169a6bSchristos2007-08-27 Joel Brobecker <brobecker@adacore.com> 276*4b169a6bSchristos 277*4b169a6bSchristos * lf.c (lf_print__gnu_copyleft): Change license to GPL version 3. 278*4b169a6bSchristos 279*4b169a6bSchristos2006-12-21 Hans-Peter Nilsson <hp@axis.com> 280*4b169a6bSchristos 281*4b169a6bSchristos * acconfig.h: Remove. 282*4b169a6bSchristos * config.in: Regenerate. 283*4b169a6bSchristos 284*4b169a6bSchristos2005-01-11 Andrew Cagney <cagney@localhost.localdomain> 285*4b169a6bSchristos 286*4b169a6bSchristos * configure.ac: Delete AC_CONFIG_AUX_DIR. 287*4b169a6bSchristos * configure: Re-generate. 288*4b169a6bSchristos 289*4b169a6bSchristos2005-01-07 Andrew Cagney <cagney@gnu.org> 290*4b169a6bSchristos 291*4b169a6bSchristos * configure.ac: Rename configure.in, require autoconf 2.59. 292*4b169a6bSchristos * configure: Re-generate. 293*4b169a6bSchristos 294*4b169a6bSchristos2003-05-03 Chris Demetriou <cgd@broadcom.com> 295*4b169a6bSchristos 296*4b169a6bSchristos * compare_igen_models: Tweak attribution slightly. 297*4b169a6bSchristos 298*4b169a6bSchristos2002-11-22 Andrew Cagney <cagney@redhat.com> 299*4b169a6bSchristos 300*4b169a6bSchristos * gen.c (name_cmp): Rename format_name_cmp. 301*4b169a6bSchristos (insn_list_insert): When a merge, compare the format name and 302*4b169a6bSchristos instruction name. Add trace messages. 303*4b169a6bSchristos 304*4b169a6bSchristos2002-11-21 Andrew Cagney <ac131313@redhat.com> 305*4b169a6bSchristos 306*4b169a6bSchristos * filter.c: Re-indent. 307*4b169a6bSchristos * filter.h, filter_host.h, gen-engine.c, gen-engine.h: Ditto. 308*4b169a6bSchristos * gen-icache.c, gen-icache.h, gen-idecode.c: Ditto. 309*4b169a6bSchristos * gen-idecode.h, gen-itable.c, gen-itable.h: Ditto. 310*4b169a6bSchristos * gen-model.c, gen-model.h, gen-semantics.c: Ditto. 311*4b169a6bSchristos * gen-semantics.h, gen-support.c, gen-support.h: Ditto. 312*4b169a6bSchristos * gen.c, gen.h, igen.c, igen.h, ld-cache.c, ld-cache.h: Ditto. 313*4b169a6bSchristos * ld-decode.c, ld-decode.h, ld-insn.c, ld-insn.h, lf.c: Ditto. 314*4b169a6bSchristos * lf.h, misc.c, misc.h, table.c, table.h: Ditto. 315*4b169a6bSchristos 316*4b169a6bSchristos2002-11-21 Andrew Cagney <ac131313@redhat.com> 317*4b169a6bSchristos 318*4b169a6bSchristos * Makefile.in: Update copyright. IGEN contributed to the FSF. 319*4b169a6bSchristos * filter.c, filter.h, filter_host.c, filter_host.h: Ditto. 320*4b169a6bSchristos * gen-engine.c, gen-engine.h, gen-icache.c, gen-icache.h: Ditto. 321*4b169a6bSchristos * gen-idecode.c, gen-idecode.h, gen-itable.c: Ditto. 322*4b169a6bSchristos * gen-itable.h, gen-model.c, gen-model.h, gen-semantics.c: Ditto. 323*4b169a6bSchristos * gen-semantics.h, gen-support.c, gen-support.h, gen.c: Ditto. 324*4b169a6bSchristos * gen.h, igen.c, igen.h, ld-cache.c, ld-cache.h: Ditto. 325*4b169a6bSchristos * ld-decode.c, ld-decode.h, ld-insn.c, ld-insn.h, lf.c: Ditto. 326*4b169a6bSchristos * lf.h, misc.c, misc.h, table.c, table.h: Ditto. 327*4b169a6bSchristos 328*4b169a6bSchristos2002-11-06 Richard Sandiford <rsandifo@redhat.com> 329*4b169a6bSchristos 330*4b169a6bSchristos * gen-engine.c (print_engine_issue_prefix_hook): Don't add the 331*4b169a6bSchristos global prefix to ENGINE_ISSUE_PREFIX_HOOK. 332*4b169a6bSchristos (print_engine_issue_postfix_hook): Likewise ENGINE_ISSUE_POSTFIX_HOOK. 333*4b169a6bSchristos 334*4b169a6bSchristos2002-08-28 Dave Brolley <brolley@redhat.com> 335*4b169a6bSchristos 336*4b169a6bSchristos * gen-support.c (gen_support_h): Generate 337*4b169a6bSchristos '#define semantic_illegal <PREFIX>_semantic_illegal'. 338*4b169a6bSchristos 339*4b169a6bSchristos2002-08-22 Chris Demetriou <cgd@broadcom.com> 340*4b169a6bSchristos 341*4b169a6bSchristos * compare_igen_models: New script. 342*4b169a6bSchristos 343*4b169a6bSchristos2002-06-17 Andrew Cagney <cagney@redhat.com> 344*4b169a6bSchristos 345*4b169a6bSchristos * gen.c (gen_entry_expand_opcode): Initialize ``value'' to -1 and 346*4b169a6bSchristos ``t'' to NULL. 347*4b169a6bSchristos * igen.c (main): Add default case to switch. 348*4b169a6bSchristos * gen-icache.c (print_icache_extraction): Ditto. 349*4b169a6bSchristos 350*4b169a6bSchristos2002-06-17 Andrew Cagney <cagney@redhat.com> 351*4b169a6bSchristos 352*4b169a6bSchristos * Makefile.in (BUILD_CFLAGS): Remove -O0. 353*4b169a6bSchristos 354*4b169a6bSchristos2002-06-16 Andrew Cagney <ac131313@redhat.com> 355*4b169a6bSchristos 356*4b169a6bSchristos * configure: Regenerated to track ../common/aclocal.m4 changes. 357*4b169a6bSchristos 358*4b169a6bSchristos2002-06-03 Richard Henderson <rth@redhat.com> 359*4b169a6bSchristos 360*4b169a6bSchristos * gen-engine.c (print_run_body): Avoid multi-line strings. 361*4b169a6bSchristos * lf.c (lf_print__gnu_copyleft): Likewise. 362*4b169a6bSchristos 363*4b169a6bSchristos2002-05-01 Chris Demetriou <cgd@broadcom.com> 364*4b169a6bSchristos 365*4b169a6bSchristos * igen.c: Use 'deprecated' rather than 'depreciated.' 366*4b169a6bSchristos 367*4b169a6bSchristos2002-03-23 Andrew Cagney <ac131313@redhat.com> 368*4b169a6bSchristos 369*4b169a6bSchristos * gen.c (format_name_cmp): New function. 370*4b169a6bSchristos (insn_list_insert): Use the instruction field name as an 371*4b169a6bSchristos additional key. Different field names indicate different 372*4b169a6bSchristos semantics. 373*4b169a6bSchristos 374*4b169a6bSchristos2002-03-07 Chris Demetriou <cgd@broadcom.com> 375*4b169a6bSchristos 376*4b169a6bSchristos * igen.c (print_itrace_format): Add support for a new "%#lx" format. 377*4b169a6bSchristos 378*4b169a6bSchristosTue May 23 21:39:23 2000 Andrew Cagney <cagney@b1.cygnus.com> 379*4b169a6bSchristos 380*4b169a6bSchristos * configure: Regenerated to track ../common/aclocal.m4 changes. 381*4b169a6bSchristos 382*4b169a6bSchristos2000-04-12 Frank Ch. Eigler <fche@redhat.com> 383*4b169a6bSchristos 384*4b169a6bSchristos * gen-semantics.c (print_semantic_body): Use GPR_CLEAR(N) instead 385*4b169a6bSchristos of GPR_SET(N,0) for gen-zero-rN. 386*4b169a6bSchristos 387*4b169a6bSchristosThu Sep 2 18:15:53 1999 Andrew Cagney <cagney@b1.cygnus.com> 388*4b169a6bSchristos 389*4b169a6bSchristos * Makefile.in (SIM_WARNINGS): Replace this with. 390*4b169a6bSchristos (IGEN_WERROR_CFLAGS, IGEN_WARN_CFLAGS, WERROR_CFLAGS, 391*4b169a6bSchristos WARN_CFLAGS): With these. 392*4b169a6bSchristos (BUILD_CFLAGS): Update. 393*4b169a6bSchristos 394*4b169a6bSchristos * configure: Regenerated to track ../common/aclocal.m4 changes. 395*4b169a6bSchristos 396*4b169a6bSchristos1999-05-08 Felix Lee <flee@cygnus.com> 397*4b169a6bSchristos 398*4b169a6bSchristos * configure: Regenerated to track ../common/aclocal.m4 changes. 399*4b169a6bSchristos 400*4b169a6bSchristosFri Dec 4 15:14:09 1998 Andrew Cagney <cagney@b1.cygnus.com> 401*4b169a6bSchristos 402*4b169a6bSchristos * igen.c (main): Fix -Pitable=. 403*4b169a6bSchristos 404*4b169a6bSchristos * gen-engine.c (print_run_body): Prefix instruction_address. 405*4b169a6bSchristos 406*4b169a6bSchristosWed Oct 28 18:12:43 1998 Andrew Cagney <cagney@b1.cygnus.com> 407*4b169a6bSchristos 408*4b169a6bSchristos * Makefile.in (SIM_WARNINGS): Update to match ../common/aclocal.m4 409*4b169a6bSchristos changes. 410*4b169a6bSchristos 411*4b169a6bSchristosWed Aug 12 10:55:28 1998 Frank Ch. Eigler <fche@cygnus.com> 412*4b169a6bSchristos 413*4b169a6bSchristos * gen-icache.c (print_icache_extraction): #undef a generated 414*4b169a6bSchristos symbol before #define'ing it, to remove conflict with system 415*4b169a6bSchristos macros. 416*4b169a6bSchristos 417*4b169a6bSchristosWed Jul 29 10:07:27 1998 Andrew Cagney <cagney@b1.cygnus.com> 418*4b169a6bSchristos 419*4b169a6bSchristos * gen.c (gen_entry_expand_opcode): For conditional, fields. Fix 420*4b169a6bSchristos the extraction of the value from its source - both table and bit 421*4b169a6bSchristos cases were wrong. 422*4b169a6bSchristos 423*4b169a6bSchristosTue Jul 28 11:19:43 1998 Andrew Cagney <cagney@b1.cygnus.com> 424*4b169a6bSchristos 425*4b169a6bSchristos * ld-insn.c (parse_insn_word): For constant conditional strings, 426*4b169a6bSchristos encode their bit value. 427*4b169a6bSchristos 428*4b169a6bSchristos * ld-insn.c (parse_insn_word, parse_insn_words): Allow conditional 429*4b169a6bSchristos operands to refer to fields in earlier instruction words. 430*4b169a6bSchristos 431*4b169a6bSchristos * gen.c (sub_val): Replace field argument with val_last_pos. 432*4b169a6bSchristos (gen_entry_expand_opcode): Look in previous tables for a value for 433*4b169a6bSchristos a conditional field as well as the bits from the current table. 434*4b169a6bSchristos (insn_list_insert): Add sort key of instructions where 435*4b169a6bSchristos their operand fields have different conditionals. 436*4b169a6bSchristos (insn_field_cmp): New function. 437*4b169a6bSchristos 438*4b169a6bSchristosSun Apr 26 15:31:55 1998 Tom Tromey <tromey@creche> 439*4b169a6bSchristos 440*4b169a6bSchristos * configure: Regenerated to track ../common/aclocal.m4 changes. 441*4b169a6bSchristos * config.in: Ditto. 442*4b169a6bSchristos 443*4b169a6bSchristosSun Apr 26 15:20:08 1998 Tom Tromey <tromey@cygnus.com> 444*4b169a6bSchristos 445*4b169a6bSchristos * acconfig.h: New file. 446*4b169a6bSchristos * configure.in: Reverted change of Apr 24; use sinclude again. 447*4b169a6bSchristos 448*4b169a6bSchristosFri Apr 24 14:16:40 1998 Tom Tromey <tromey@creche> 449*4b169a6bSchristos 450*4b169a6bSchristos * configure: Regenerated to track ../common/aclocal.m4 changes. 451*4b169a6bSchristos * config.in: Ditto. 452*4b169a6bSchristos 453*4b169a6bSchristosFri Apr 24 11:19:33 1998 Tom Tromey <tromey@cygnus.com> 454*4b169a6bSchristos 455*4b169a6bSchristos * configure.in: Don't call sinclude. 456*4b169a6bSchristos 457*4b169a6bSchristosFri Apr 24 19:45:00 1998 Andrew Cagney <cagney@b1.cygnus.com> 458*4b169a6bSchristos 459*4b169a6bSchristos * gen-icache.c (print_icache_extraction): Do not type cast 460*4b169a6bSchristos pointers. 461*4b169a6bSchristos 462*4b169a6bSchristos * ld-insn.c (load_insn_table): Terminate error with NL. 463*4b169a6bSchristos 464*4b169a6bSchristos * gen.c (insns_bit_useless): Perform unsigned bit comparisons. 465*4b169a6bSchristos 466*4b169a6bSchristos * filter.c (is_filtered_out, filter_parse): Pacify GCC, len is 467*4b169a6bSchristos unsigned. 468*4b169a6bSchristos 469*4b169a6bSchristosWed Apr 22 14:27:39 1998 Michael Meissner <meissner@cygnus.com> 470*4b169a6bSchristos 471*4b169a6bSchristos * configure: Reconfigure to pick up ../common/aclocal.m4 changes 472*4b169a6bSchristos to suppress inlining by default. 473*4b169a6bSchristos 474*4b169a6bSchristosTue Apr 21 01:37:54 1998 Andrew Cagney <cagney@b1.cygnus.com> 475*4b169a6bSchristos 476*4b169a6bSchristos * gen-icache.c (print_icache_extraction): When generating #define 477*4b169a6bSchristos force the expression to the correct type. 478*4b169a6bSchristos 479*4b169a6bSchristosThu Apr 16 08:50:29 1998 Andrew Cagney <cagney@b1.cygnus.com> 480*4b169a6bSchristos 481*4b169a6bSchristos * misc.c (name2i): strlen returns an unsigned. 482*4b169a6bSchristos 483*4b169a6bSchristosTue Apr 14 19:04:28 1998 Andrew Cagney <cagney@b1.cygnus.com> 484*4b169a6bSchristos 485*4b169a6bSchristos * igen.h (struct igen_warn_options): Add unimplemented option. 486*4b169a6bSchristos * igen.c (main): Update 487*4b169a6bSchristos 488*4b169a6bSchristos * ld-insn.c (load_insn_table): Report unimplemented functions. 489*4b169a6bSchristos 490*4b169a6bSchristosTue Apr 14 10:57:26 1998 Andrew Cagney <cagney@b1.cygnus.com> 491*4b169a6bSchristos 492*4b169a6bSchristos * ld-insn.c (parse_insn_word): Treat `!' and `=' as valid 493*4b169a6bSchristos separator tokens when parsing a conditional. 494*4b169a6bSchristos 495*4b169a6bSchristos * igen.h (main): Add option -S so that suffix can be specified. 496*4b169a6bSchristos 497*4b169a6bSchristosTue Apr 14 08:44:53 1998 Andrew Cagney <cagney@b1.cygnus.com> 498*4b169a6bSchristos 499*4b169a6bSchristos * igen.h (struct igen_trace_options): Add members insn_expansion 500*4b169a6bSchristos and insn_insertion. 501*4b169a6bSchristos 502*4b169a6bSchristos * igen.c (main): Add options -Gtrace-insn-expansion, 503*4b169a6bSchristos -Gtrace-insn-insertion and -Gtrace-all. 504*4b169a6bSchristos 505*4b169a6bSchristos * gen.c (gen_entry_expand_insns): Trace each instruction as it is 506*4b169a6bSchristos selected for expansion. 507*4b169a6bSchristos (gen_entry_expand_opcode): Trace each expanded instruction as it 508*4b169a6bSchristos is inserted into the table. 509*4b169a6bSchristos 510*4b169a6bSchristosMon Apr 13 19:21:47 1998 Andrew Cagney <cagney@b1.cygnus.com> 511*4b169a6bSchristos 512*4b169a6bSchristos * ld-insn.c (parse_insn_word): Parse conditional operators. 513*4b169a6bSchristos (parse_insn_word): Verify field conditionals. 514*4b169a6bSchristos 515*4b169a6bSchristos * ld-insn.h: Extend syntax to allow macros and field equality. 516*4b169a6bSchristos (struct insn_field_cond): Rename insn_field_exclusion, add type. 517*4b169a6bSchristos 518*4b169a6bSchristos * gen.c (gen_entry_expand_opcode): Check type of conditional. 519*4b169a6bSchristos (insns_bit_useless): Ditto. 520*4b169a6bSchristos 521*4b169a6bSchristos * ld-insn.c (parse_macro_record): New function. 522*4b169a6bSchristos 523*4b169a6bSchristosMon Apr 13 22:37:47 1998 Andrew Cagney <cagney@b1.cygnus.com> 524*4b169a6bSchristos 525*4b169a6bSchristos * ld-insn.h (enum insn_field_type): Add insn_field_invalid. 526*4b169a6bSchristos 527*4b169a6bSchristos * ld-insn.c (parse_insn_word): Check instruction field type 528*4b169a6bSchristos correctly initialized. 529*4b169a6bSchristos (print_insn_words): Ditto. 530*4b169a6bSchristos (insn_field_type_to_str): Ditto. 531*4b169a6bSchristos (dump_insn_field): Ditto. 532*4b169a6bSchristos 533*4b169a6bSchristos * gen.c (insns_bit_useless): Ditto. 534*4b169a6bSchristos 535*4b169a6bSchristosFri Apr 3 18:08:16 1998 Andrew Cagney <cagney@b1.cygnus.com> 536*4b169a6bSchristos 537*4b169a6bSchristos * gen.h, igen.c (print_include_inline, print_includes, 538*4b169a6bSchristos print_includes): New functions. Generate include list. For for 539*4b169a6bSchristos semantics et.al. generate CPP code to inline when 540*4b169a6bSchristos C_REVEALS_MODULE_P. 541*4b169a6bSchristos 542*4b169a6bSchristos * igen.c (gen_semantics_c): Call print_includes. 543*4b169a6bSchristos * gen-engine.c (gen_engine_c): Ditto. 544*4b169a6bSchristos 545*4b169a6bSchristosSat Apr 4 21:09:11 1998 Andrew Cagney <cagney@b1.cygnus.com> 546*4b169a6bSchristos 547*4b169a6bSchristos * igen.h: (struct _igen_name_option): Replace with struct 548*4b169a6bSchristos igen_module_option. Contains both module prefix and suffix. 549*4b169a6bSchristos (INIT_OPTIONS): Initialize. 550*4b169a6bSchristos 551*4b169a6bSchristos * igen.c (main): Update -P option to fill in full module info. 552*4b169a6bSchristos (gen-engine.c, gen-icache.c, gen-itable.c, gen-semantics.c, 553*4b169a6bSchristos gen-support.c): Update. 554*4b169a6bSchristos 555*4b169a6bSchristosSat Apr 4 02:15:35 1998 Andrew Cagney <cagney@b1.cygnus.com> 556*4b169a6bSchristos 557*4b169a6bSchristos * igen.c (print_itrace): Use TRACE_ANY_P macro to determine if any 558*4b169a6bSchristos tracing is needed. 559*4b169a6bSchristos 560*4b169a6bSchristosThu Mar 26 20:51:23 1998 Stu Grossman <grossman@bhuna.cygnus.co.uk> 561*4b169a6bSchristos 562*4b169a6bSchristos * table.c (table_push): Redo, using stdio. Fixes NT native 563*4b169a6bSchristos problem with <CRLF>=><LF> translation... 564*4b169a6bSchristos 565*4b169a6bSchristosTue Mar 24 23:30:07 1998 Andrew Cagney <cagney@b1.cygnus.com> 566*4b169a6bSchristos 567*4b169a6bSchristos * gen-engine.c (print_run_body): Re-extract the CIA after 568*4b169a6bSchristos processing any events. 569*4b169a6bSchristos 570*4b169a6bSchristosTue Mar 24 17:46:08 1998 Stu Grossman <grossman@bhuna.cygnus.co.uk> 571*4b169a6bSchristos 572*4b169a6bSchristos * Makefile.in: Get SHELL from configure. 573*4b169a6bSchristos * configure: Regenerate with autoconf 2.12.1 to fix shell issues for 574*4b169a6bSchristos NT native builds. 575*4b169a6bSchristos 576*4b169a6bSchristosMon Mar 16 12:51:31 1998 Andrew Cagney <cagney@b1.cygnus.com> 577*4b169a6bSchristos 578*4b169a6bSchristos * igen.c: Pass sim_cia to trace_prefix. 579*4b169a6bSchristos 580*4b169a6bSchristosThu Feb 26 19:25:02 1998 Andrew Cagney <cagney@b1.cygnus.com> 581*4b169a6bSchristos 582*4b169a6bSchristos * ld-insn.c (parse_function_record): Check models are valid. 583*4b169a6bSchristos (parse_function_record): Only discard function when no model is 584*4b169a6bSchristos common. 585*4b169a6bSchristos 586*4b169a6bSchristosTue Feb 24 01:42:03 1998 Andrew Cagney <cagney@b1.cygnus.com> 587*4b169a6bSchristos 588*4b169a6bSchristos * gen-engine.c (print_run_body): Always wrap generated idecode 589*4b169a6bSchristos body in ENGINE_ISSUE_PREFIX_HOOK / ENGINE_ISSUE_POSTFIX_HOOK. 590*4b169a6bSchristos 591*4b169a6bSchristosFri Feb 20 16:22:10 1998 Andrew Cagney <cagney@b1.cygnus.com> 592*4b169a6bSchristos 593*4b169a6bSchristos * ld-insn.c (parse_function_record): When -Wnodiscard, suppress 594*4b169a6bSchristos discarded function warning. 595*4b169a6bSchristos 596*4b169a6bSchristos * igen.c (main): Clarify -Wnodiscard. 597*4b169a6bSchristos 598*4b169a6bSchristos * ld-insn.c (parse_function_record): For functions, allow use of 599*4b169a6bSchristos instruction style function model records 600*4b169a6bSchristos 601*4b169a6bSchristos * ld-insn.h (nr_function_model_fields): Define. 602*4b169a6bSchristos 603*4b169a6bSchristosTue Feb 17 16:36:27 1998 Andrew Cagney <cagney@b1.cygnus.com> 604*4b169a6bSchristos 605*4b169a6bSchristos * igen.c (print_itrace_prefix): Generate call to trace_prefix 606*4b169a6bSchristos instead of trace_one_insn. 607*4b169a6bSchristos (print_itrace): Generate trace_prefix call if any tracing enabled, 608*4b169a6bSchristos (print_itrace): Nest generated call to trace_generic inside 609*4b169a6bSchristos conditional for any tracing enabled. 610*4b169a6bSchristos (print_itrace_prefix): Do not pass PHASE to trace_prefix. 611*4b169a6bSchristos 612*4b169a6bSchristosTue Feb 3 14:00:32 1998 Andrew Cagney <cagney@b1.cygnus.com> 613*4b169a6bSchristos 614*4b169a6bSchristos * gen-engine.c (print_run_body): Add bitsize suffix to IMEM macro. 615*4b169a6bSchristos * gen-icache.c (print_icache_body): Ditto. 616*4b169a6bSchristos * gen-idecode.c (print_idecode_ifetch): Ditto. 617*4b169a6bSchristos 618*4b169a6bSchristos * gen-icache.c (print_icache_body): Mark successive instruction 619*4b169a6bSchristos words as unused. 620*4b169a6bSchristos 621*4b169a6bSchristos * ld-insn.c (parse_insn_word): Only report insn-width problems 622*4b169a6bSchristos when warning enabled. 623*4b169a6bSchristos 624*4b169a6bSchristos * igen.h: Add flag for warning about invalid instruction widths. 625*4b169a6bSchristos * igen.c: Parse -Wwidth option. 626*4b169a6bSchristos 627*4b169a6bSchristos * gen-support.c (gen_support_h): Map instruction_word onto 628*4b169a6bSchristos <PREFIX>_instruction_word when needed. 629*4b169a6bSchristos (print_support_function_name): Use support prefix. 630*4b169a6bSchristos (gen_support_h): Ditto for <PREFIX>_idecode_issue. 631*4b169a6bSchristos 632*4b169a6bSchristosSun Feb 1 11:08:48 1998 Andrew Cagney <cagney@b1.cygnus.com> 633*4b169a6bSchristos 634*4b169a6bSchristos * gen-support.c (gen_support_h): Generate new macro CPU_. 635*4b169a6bSchristos 636*4b169a6bSchristosSat Jan 31 14:50:27 1998 Andrew Cagney <cagney@b1.cygnus.com> 637*4b169a6bSchristos 638*4b169a6bSchristos * gen-engine.c (gen_engine_h): Don't assume a model is present. 639*4b169a6bSchristos (gen_engine_c): Ditto. 640*4b169a6bSchristos 641*4b169a6bSchristos * igen.c (gen_run_c): Ditto. 642*4b169a6bSchristos 643*4b169a6bSchristos * gen-engine.c (print_run_body): Use CIA_GET & CIA_SET instead of 644*4b169a6bSchristos CPU_CIA. Parameterize with CPU argument. 645*4b169a6bSchristos 646*4b169a6bSchristosFri Jan 30 09:09:39 1998 Andrew Cagney <cagney@b1.cygnus.com> 647*4b169a6bSchristos 648*4b169a6bSchristos * gen.h (struct _gen_list): Replace processor with model. 649*4b169a6bSchristos 650*4b169a6bSchristos * igen.c (gen_idecode_h): Update. 651*4b169a6bSchristos (gen_run_c): For generated switch, use model->full_name. 652*4b169a6bSchristos 653*4b169a6bSchristos * gen.c (print_gen_entry_path): Ditto. 654*4b169a6bSchristos (make_table): Ditto. 655*4b169a6bSchristos (gen_entry_expand_insns): Ditto. 656*4b169a6bSchristos (make_gen_tables): Ditto. 657*4b169a6bSchristos 658*4b169a6bSchristos * igen.c (gen_run_c): Add extra argument `nr_cpus' to generated 659*4b169a6bSchristos function sim_engine_run. Pass argument on to engine_run. 660*4b169a6bSchristos 661*4b169a6bSchristos * gen-engine.c (print_engine_run_function_header): Add extra 662*4b169a6bSchristos argument `nr_cpus' to generated function engine_run. 663*4b169a6bSchristos (print_run_body): Fix SMP case. 664*4b169a6bSchristos 665*4b169a6bSchristos * gen-support.c (support_c_function): Call sim_engine_abort when 666*4b169a6bSchristos internal function fails to long jump. 667*4b169a6bSchristos 668*4b169a6bSchristosWed Jan 21 18:00:22 1998 Andrew Cagney <cagney@b1.cygnus.com> 669*4b169a6bSchristos 670*4b169a6bSchristos * gen-semantics.c (print_semantic_body): Use GPR_SET to zero 671*4b169a6bSchristos hardwired register. 672*4b169a6bSchristos 673*4b169a6bSchristosWed Dec 17 14:49:03 1997 Jeffrey A Law (law@cygnus.com) 674*4b169a6bSchristos 675*4b169a6bSchristos * gen-semantics.c (print_semantic_body): Fix handling of 676*4b169a6bSchristos hardwired zero register. 677*4b169a6bSchristos 678*4b169a6bSchristosTue Dec 9 12:45:00 1997 Andrew Cagney <cagney@b1.cygnus.com> 679*4b169a6bSchristos 680*4b169a6bSchristos * igen.h (struct _igen_gen_options): Add member default_model. 681*4b169a6bSchristos 682*4b169a6bSchristos * igen.c (gen_run_c): Default to the first machine in the 683*4b169a6bSchristos multi-sim list. 684*4b169a6bSchristos (main): Add MODEL parameter to gen-multi-sim option. 685*4b169a6bSchristos 686*4b169a6bSchristos * gen.h (function_decl_type): Declare enum. 687*4b169a6bSchristos 688*4b169a6bSchristos * gen-engine.c (print_engine_run_function_header), gen-engine.h: 689*4b169a6bSchristos Make global, pass function_decl_type as argument. 690*4b169a6bSchristos (gen_engine_h, gen_engine_c): Update call. 691*4b169a6bSchristos 692*4b169a6bSchristos * gen-idecode.c (print_idecode_issue_function_header), 693*4b169a6bSchristos gen-idecode.h: Pass function_decl_type as argument. 694*4b169a6bSchristos 695*4b169a6bSchristos * igen.c (gen_idecode_h): For multi-sim, delcare global variable 696*4b169a6bSchristos idecode_issue. 697*4b169a6bSchristos 698*4b169a6bSchristos * igen.c (gen_run_c): For multi-sim, initialize globals 699*4b169a6bSchristos idecode_issue and engine_run. 700*4b169a6bSchristos 701*4b169a6bSchristosFri Nov 14 10:51:44 1997 Andrew Cagney <cagney@b1.cygnus.com> 702*4b169a6bSchristos 703*4b169a6bSchristos * ld-insn.c (parse_insn_model_record): Allow multiple model names 704*4b169a6bSchristos to be specified in a single instruction model record. 705*4b169a6bSchristos (dump_insn_model_entry): Update. 706*4b169a6bSchristos 707*4b169a6bSchristos * ld-insn.h (struct _insn_model_entry): Replace member name with 708*4b169a6bSchristos the filter names. Document syntax change. 709*4b169a6bSchristos 710*4b169a6bSchristosWed Nov 12 15:45:40 1997 Andrew Cagney <cagney@b1.cygnus.com> 711*4b169a6bSchristos 712*4b169a6bSchristos * gen-engine.c (print_run_body): Add hooks for adding code before 713*4b169a6bSchristos and after an instruction has been issued. 714*4b169a6bSchristos 715*4b169a6bSchristos1997-11-04 Brendan Kehoe <brendan@lisa.cygnus.com> 716*4b169a6bSchristos 717*4b169a6bSchristos * gen-idecode.c (print_jump_until_stop_body): Use `#if 0' instead of 718*4b169a6bSchristos `#ifdef 0' around this. 719*4b169a6bSchristos 720*4b169a6bSchristosTue Nov 4 08:18:29 1997 Michael Meissner <meissner@cygnus.com> 721*4b169a6bSchristos 722*4b169a6bSchristos * ld-decode.c (load_decode_table): Don't assume NULL is an integer 723*4b169a6bSchristos constant. 724*4b169a6bSchristos 725*4b169a6bSchristosWed Oct 29 13:17:17 1997 Andrew Cagney <cagney@b1.cygnus.com> 726*4b169a6bSchristos 727*4b169a6bSchristos * ld-insn.h: Document mnemonic string format. 728*4b169a6bSchristos 729*4b169a6bSchristosTue Oct 28 10:50:35 1997 Andrew Cagney <cagney@b1.cygnus.com> 730*4b169a6bSchristos 731*4b169a6bSchristos * gen-icache.c (print_icache_extraction): Force result of atol to 732*4b169a6bSchristos unsigned. 733*4b169a6bSchristos 734*4b169a6bSchristos * ld-insn.c (parse_function_record): Separate handling of old and 735*4b169a6bSchristos ney fynction records. 736*4b169a6bSchristos (load_insn_table): For %s record, hack function name & type after 737*4b169a6bSchristos it has been parsed. 738*4b169a6bSchristos 739*4b169a6bSchristos * filter.h (filter_is_subset): Reverse argument names, wrong 740*4b169a6bSchristos order. 741*4b169a6bSchristos 742*4b169a6bSchristos * ld-insn.c (load_insn_table): Move include code to. 743*4b169a6bSchristos (parse_include_record): New function. Check for filtering of 744*4b169a6bSchristos include statement by both flags and models. 745*4b169a6bSchristos (load_insn_table): Check for model filtering of cache and model 746*4b169a6bSchristos records. 747*4b169a6bSchristos (parse_model_data_record): Check for model & flag filtering of 748*4b169a6bSchristos model data records. 749*4b169a6bSchristos (parse_function_record): Check for model & flag filtering of 750*4b169a6bSchristos function records. 751*4b169a6bSchristos 752*4b169a6bSchristos * ld-insn.h: Define record_filter_models_field. Add filter-models 753*4b169a6bSchristos field to all but instruction records. 754*4b169a6bSchristos (struct _function_entry, struct _cache_entry): Add models field. 755*4b169a6bSchristos (nr_function_fields): Make parm field mandatory. 756*4b169a6bSchristos 757*4b169a6bSchristosMon Oct 27 15:14:26 1997 Andrew Cagney <cagney@b1.cygnus.com> 758*4b169a6bSchristos 759*4b169a6bSchristos * igen.c (main): Change -I option to -I<directory>. Add optional 760*4b169a6bSchristos size to -Ggen-icache option. Add -Gno-... support. 761*4b169a6bSchristos 762*4b169a6bSchristos * igen.h (struct _igen_options): Add include field. 763*4b169a6bSchristos 764*4b169a6bSchristos * ld-insn.c (enum insn_record_type, insn_type_map): Add 765*4b169a6bSchristos include_record. 766*4b169a6bSchristos (load_insn_table): Call table_push when include record. 767*4b169a6bSchristos 768*4b169a6bSchristos * table.c (struct _open table, struct table): Make table object an 769*4b169a6bSchristos indirect ptr to the current table file. 770*4b169a6bSchristos (current_line, new_table_entry, next_line): Make file arg type 771*4b169a6bSchristos open_table. 772*4b169a6bSchristos (table_open): Use table_push. 773*4b169a6bSchristos (table_read): Point variable file at current table, at eof, pop 774*4b169a6bSchristos last open table. 775*4b169a6bSchristos 776*4b169a6bSchristos * table.h, table.c (table_push): New function. 777*4b169a6bSchristos 778*4b169a6bSchristosThu Oct 16 11:03:27 1997 Andrew Cagney <cagney@b1.cygnus.com> 779*4b169a6bSchristos 780*4b169a6bSchristos * gen-semantics.c (print_semantic_body): Use CIA not 781*4b169a6bSchristos cia.ip. Escape newlines at end of generated call to 782*4b169a6bSchristos sim_engine_abort. 783*4b169a6bSchristos 784*4b169a6bSchristosTue Oct 14 11:13:27 1997 Andrew Cagney <cagney@b1.cygnus.com> 785*4b169a6bSchristos 786*4b169a6bSchristos * igen.c (print_itrace): Output line-ref to igen source file when 787*4b169a6bSchristos generating trace statements. 788*4b169a6bSchristos (print_itrace_prefix, print_itrace_format): Escape newline at end 789*4b169a6bSchristos of each line of generated call to trace function. 790*4b169a6bSchristos 791*4b169a6bSchristosMon Oct 13 11:27:31 1997 Andrew Cagney <cagney@b1.cygnus.com> 792*4b169a6bSchristos 793*4b169a6bSchristos * gen-support.c (gen_support_h): Generate #define NIA. Definition 794*4b169a6bSchristos dependant on gen-delayed-branch mode. 795*4b169a6bSchristos 796*4b169a6bSchristos * ld-insn.c (parse_insn_mnemonic_record): Check for opening and 797*4b169a6bSchristos closing double quote in mnemonic field. 798*4b169a6bSchristos (parse_option_record): Add gen-delayed-branch option. 799*4b169a6bSchristos 800*4b169a6bSchristosWed Oct 8 13:10:16 1997 Andrew Cagney <cagney@b1.cygnus.com> 801*4b169a6bSchristos 802*4b169a6bSchristos * gen.c (insn_list_insert): Missing \n in warning. 803*4b169a6bSchristos 804*4b169a6bSchristos * ld-insn.c (load_insn_table): Only notify of discarded 805*4b169a6bSchristos instrctions when warn.discard enabled. 806*4b169a6bSchristos 807*4b169a6bSchristos * igen.h: Add option.warn.discard, default enabled. 808*4b169a6bSchristos 809*4b169a6bSchristos * igen.c (main): Add -Wnodiscard option. 810*4b169a6bSchristos 811*4b169a6bSchristos * ld-insn.c (record_type): For old record type, check the number 812*4b169a6bSchristos of fields is correct. 813*4b169a6bSchristos (load_insn_table): Allow insn assembler and insn model records to 814*4b169a6bSchristos appear in any order. 815*4b169a6bSchristos (parse_insn_model_record): Rename from parse_insn_model_records. 816*4b169a6bSchristos Parse only one record. 817*4b169a6bSchristos (parse_insn_mnemonic_record): Rename from 818*4b169a6bSchristos parse_insn_mnemonic_records. Parse only one record. 819*4b169a6bSchristos 820*4b169a6bSchristosTue Sep 23 15:52:06 1997 Felix Lee <flee@yin.cygnus.com> 821*4b169a6bSchristos 822*4b169a6bSchristos * gen-itable.c (gen_itable_h): [nr_itable_* + 1] to avoid 823*4b169a6bSchristos illegal zero-sized array. 824*4b169a6bSchristos (itable_print_set): likewise, avoid empty initializers. 825*4b169a6bSchristos 826*4b169a6bSchristosMon Sep 22 18:49:07 1997 Felix Lee <flee@cygnus.com> 827*4b169a6bSchristos 828*4b169a6bSchristos * configure.in: i386-windows is a cross, so don't expect 829*4b169a6bSchristos libiberty to be there. 830*4b169a6bSchristos * configure: updated. 831*4b169a6bSchristos 832*4b169a6bSchristosFri Sep 19 10:36:30 1997 Andrew Cagney <cagney@b1.cygnus.com> 833*4b169a6bSchristos 834*4b169a6bSchristos * igen.c (print_function_name): Put the format name after the 835*4b169a6bSchristos function / instruction name, not before. 836*4b169a6bSchristos (print_itrace): Better format trace code. 837*4b169a6bSchristos 838*4b169a6bSchristosTue Sep 16 11:01:07 1997 Andrew Cagney <cagney@b1.cygnus.com> 839*4b169a6bSchristos 840*4b169a6bSchristos * gen.c (insns_bit_useless): Don't treat string fields restricted 841*4b169a6bSchristos to a range of values as useless. 842*4b169a6bSchristos 843*4b169a6bSchristosMon Sep 15 15:47:21 1997 Andrew Cagney <cagney@b1.cygnus.com> 844*4b169a6bSchristos 845*4b169a6bSchristos * igen.c (gen_run_c): Handle non-multi-sim case. 846*4b169a6bSchristos 847*4b169a6bSchristos * gen-support.c (gen_support_h): Define SD_ - to replace _SD. 848*4b169a6bSchristos Define CIA from cia. 849*4b169a6bSchristos 850*4b169a6bSchristosThu Sep 11 10:27:39 1997 Andrew Cagney <cagney@b1.cygnus.com> 851*4b169a6bSchristos 852*4b169a6bSchristos * gen-semantics.c (print_semantic_body): Trace the instruction 853*4b169a6bSchristos after it has been validated. 854*4b169a6bSchristos (print_semantic_body): Count the instruction using sim-profile. 855*4b169a6bSchristos 856*4b169a6bSchristosWed Sep 10 13:35:37 1997 Andrew Cagney <cagney@b1.cygnus.com> 857*4b169a6bSchristos 858*4b169a6bSchristos * gen-itable.c (gen_itable_h): Collect summary info on instruction 859*4b169a6bSchristos table when traversing it. 860*4b169a6bSchristos (gen_itable_h): Output an enum defining the max size of each of 861*4b169a6bSchristos the itable string members. 862*4b169a6bSchristos 863*4b169a6bSchristosTue Sep 9 03:30:26 1997 Andrew Cagney <cagney@b1.cygnus.com> 864*4b169a6bSchristos 865*4b169a6bSchristos * igen.c (gen_run_c): New function. Generate sim_engine_run that 866*4b169a6bSchristos looks at the currently selected architecture. 867*4b169a6bSchristos 868*4b169a6bSchristos * gen-engine.c, gen-idecode.c: Add multi-sim support - generate 869*4b169a6bSchristos one engine per model. 870*4b169a6bSchristos 871*4b169a6bSchristos * gen-semantics.c, gen-icache.c gen-support.c: 872*4b169a6bSchristos Update. 873*4b169a6bSchristos 874*4b169a6bSchristos * ld-insn.h, ld-insn-h (load_insn_table): Rewrite. table.h only 875*4b169a6bSchristos returns a line at a time. Parse multi-word instructions. Add 876*4b169a6bSchristos multi-sim support. 877*4b169a6bSchristos 878*4b169a6bSchristos * table.h, table.c: Simplify. Only parse a single line at a time. 879*4b169a6bSchristos ld-insn can handle the rest. 880*4b169a6bSchristos 881*4b169a6bSchristos * filter.h, filter.c (filter_parse, filter_add, filter_is_subset, 882*4b169a6bSchristos filter_is_common, filter_is_member, filter_next): New filter 883*4b169a6bSchristos operations. 884*4b169a6bSchristos (dump_filter): Ditto. 885*4b169a6bSchristos 886*4b169a6bSchristos * gen.h, gen.c: New file. Takes the insn table and turns it into 887*4b169a6bSchristos a set of decode tables and semantic functions. 888*4b169a6bSchristos 889*4b169a6bSchristos * ld-insn.c: Copy generator code from here. 890*4b169a6bSchristos * gen.c: To here. 891*4b169a6bSchristos 892*4b169a6bSchristosFri Aug 8 11:43:45 1997 Andrew Cagney <cagney@b1.cygnus.com> 893*4b169a6bSchristos 894*4b169a6bSchristos * misc.h (NZALLOC): Allocate an N element array of TYPE. 895*4b169a6bSchristos 896*4b169a6bSchristos * table.h, table.c: Simplify table parser so that it only 897*4b169a6bSchristos understands colon delimited lines and code blocks. 898*4b169a6bSchristos (table_read): Parse '{' ... '}' as a code block. 899*4b169a6bSchristos (table_print_code): New function, print out a code block to file. 900*4b169a6bSchristos (main): Add suport for standalone testing. 901*4b169a6bSchristos 902*4b169a6bSchristos * ld-insn.h, ld-insn.c: 903*4b169a6bSchristos 904*4b169a6bSchristos 905*4b169a6bSchristosMon Sep 1 11:41:12 1997 Andrew Cagney <cagney@b1.cygnus.com> 906*4b169a6bSchristos 907*4b169a6bSchristos * gen-idecode.c (error_leaf_contains_multiple_insn): Make static. 908*4b169a6bSchristos (print_jump_definition, print_jump, print_jump_internal_function, 909*4b169a6bSchristos print_jump_insn, print_jump_until_stop_body): Delete, moved to 910*4b169a6bSchristos sim-engine.c 911*4b169a6bSchristos 912*4b169a6bSchristos * igen.c (print_itrace_format): Delete unused variable chp. 913*4b169a6bSchristos (gen-engine.h): Include. 914*4b169a6bSchristos 915*4b169a6bSchristos * table.c (current_file_name, current_line_entry, 916*4b169a6bSchristos current_line_entry): Make static. 917*4b169a6bSchristos 918*4b169a6bSchristosWed Aug 6 12:31:17 1997 Andrew Cagney <cagney@b1.cygnus.com> 919*4b169a6bSchristos 920*4b169a6bSchristos * configure.in: Define AR_FOR_BUILD, AR_FLAGS_FOR_BUILD, 921*4b169a6bSchristos RANLIB_FOR_BUILD and CFLAGS_FOR_BUILD. 922*4b169a6bSchristos * configure.in: Include simulator common/aclocal.m4. 923*4b169a6bSchristos * configure.in: Add --enable-sim-warnings option. 924*4b169a6bSchristos * configure: Re-generate. 925*4b169a6bSchristos 926*4b169a6bSchristos * Makefile.in: Use. 927*4b169a6bSchristos 928*4b169a6bSchristos * Makefile.in (tmp-filter): New rule. 929*4b169a6bSchristos (igen.o, tmp-table, tmp-ld-decode, tmp-ld-cache, tmp-ld-insn, 930*4b169a6bSchristos ld-decode.o, ld-cache.o, ld-insn.o): Fix dependencies. 931*4b169a6bSchristos 932*4b169a6bSchristos * gen.h, gen.c: New files. 933*4b169a6bSchristos 934*4b169a6bSchristos * Makefile.in (gen.o, tmp-gen): New rules, update all 935*4b169a6bSchristos dependencies. 936*4b169a6bSchristos 937*4b169a6bSchristosTue Jun 24 11:46:45 1997 Andrew Cagney <cagney@b1.cygnus.com> 938*4b169a6bSchristos 939*4b169a6bSchristos * ld-insn.c (load_insn_table): Accept %s as a function type. 940*4b169a6bSchristos 941*4b169a6bSchristosThu Jun 5 17:14:32 1997 Andrew Cagney <cagney@b1.cygnus.com> 942*4b169a6bSchristos 943*4b169a6bSchristos * igen.c (print_itrace_prefix): Move printing of insn prefix to 944*4b169a6bSchristos here. 945*4b169a6bSchristos (print_itrace_format): Drop printing of MY_NAME in instruction 946*4b169a6bSchristos trace. Printing of insn prefix moved. 947*4b169a6bSchristos (print_itrace): Ditto. 948*4b169a6bSchristos 949*4b169a6bSchristosFri May 30 11:27:37 1997 Andrew Cagney <cagney@b1.cygnus.com> 950*4b169a6bSchristos 951*4b169a6bSchristos * gen-icache.c (print_icache_function_header): Pass 952*4b169a6bSchristos table_line_entry instead of separate file and line. 953*4b169a6bSchristos 954*4b169a6bSchristos * table.c (table_entry_read): Set assembler source file/line-nr to 955*4b169a6bSchristos the current not initial file. 956*4b169a6bSchristos (table_entry_read): Fix line numbering of source files. 957*4b169a6bSchristos 958*4b169a6bSchristos table.h (table_line_entry): New structure. Exactly specifies a 959*4b169a6bSchristos source file/line-nr. 960*4b169a6bSchristos (table_*_entry): Add this to all. 961*4b169a6bSchristos 962*4b169a6bSchristos table.c (table_entry_print_cpp_line_nr): Change to use values from 963*4b169a6bSchristos a table_line_entry struct. 964*4b169a6bSchristos (table_entry_read): Save table_line_entry in all structures read. 965*4b169a6bSchristos 966*4b169a6bSchristos gen-icache.c, gen-support.c, gen-idecode.c, gen-semantics.c, 967*4b169a6bSchristos gen-model.c: Update all references. 968*4b169a6bSchristos 969*4b169a6bSchristosThu May 29 10:29:57 1997 Andrew Cagney <cagney@b1.cygnus.com> 970*4b169a6bSchristos 971*4b169a6bSchristos * igen.c (print_my_defines): Define MY_NAME - a string. For 972*4b169a6bSchristos MY_PREFIX, undefine the name of the function incase some dumb 973*4b169a6bSchristos header defined it. it. 974*4b169a6bSchristos (print_itrace): Use MY_NAME not MY_PREFIX. 975*4b169a6bSchristos 976*4b169a6bSchristos * lf.c (lf_write): New function write an N character buffer to the 977*4b169a6bSchristos file. 978*4b169a6bSchristos 979*4b169a6bSchristos * igen.c (print_itrace): When available, use the assembler to 980*4b169a6bSchristos print the insn-trace. 981*4b169a6bSchristos (print_itrace_prefix): New function, print first part of call to 982*4b169a6bSchristos print_one_insn. 983*4b169a6bSchristos (print_itrace_format): New function, print fmt argument for 984*4b169a6bSchristos print_one_insn. 985*4b169a6bSchristos 986*4b169a6bSchristos * table.c (table_entry_read): Save any assembler lines instead of 987*4b169a6bSchristos discarding them. 988*4b169a6bSchristos 989*4b169a6bSchristosWed May 28 09:55:29 1997 Andrew Cagney <cagney@b1.cygnus.com> 990*4b169a6bSchristos 991*4b169a6bSchristos * gen-icache.c (print_icache_body): Process immeds. 992*4b169a6bSchristos 993*4b169a6bSchristos * gen-semantics.c (print_semantic_body): When computing NIA, skip 994*4b169a6bSchristos any immed words that follow the instruction word. 995*4b169a6bSchristos 996*4b169a6bSchristos * ld-insn.c (parse_insn_format): Parse immeds appended to an 997*4b169a6bSchristos instruction. 998*4b169a6bSchristos 999*4b169a6bSchristos * igen.c (main): Allow any register to be specified as the zero 1000*4b169a6bSchristos register. 1001*4b169a6bSchristos (semantic_zero_reg): Global, index to zero register. 1002*4b169a6bSchristos 1003*4b169a6bSchristos * gen-semantics.c (print_semantic_body): Zero selected register. 1004*4b169a6bSchristos 1005*4b169a6bSchristosTue May 27 14:12:32 1997 Andrew Cagney <cagney@b1.cygnus.com> 1006*4b169a6bSchristos 1007*4b169a6bSchristos * igen.h: Stop options and code gen type bit masks overlaping. 1008*4b169a6bSchristos 1009*4b169a6bSchristosFri May 23 12:01:08 1997 Andrew Cagney <cagney@b1.cygnus.com> 1010*4b169a6bSchristos 1011*4b169a6bSchristos * gen-semantics.c (print_semantic_body): Incorrect test for 1012*4b169a6bSchristos zero-r0 code. 1013*4b169a6bSchristos 1014*4b169a6bSchristosFri May 16 14:32:31 1997 Andrew Cagney <cagney@b1.cygnus.com> 1015*4b169a6bSchristos 1016*4b169a6bSchristos * gen-semantics.c (print_semantic_body): Use common sim-engine 1017*4b169a6bSchristos interface. 1018*4b169a6bSchristos 1019*4b169a6bSchristosFri May 16 11:48:30 1997 Andrew Cagney <cagney@b1.cygnus.com> 1020*4b169a6bSchristos 1021*4b169a6bSchristos * gen-semantics.c (print_semantic_body): Add code to clear r0. 1022*4b169a6bSchristos 1023*4b169a6bSchristos * igen.c (main): Add new option zero-r0, which adds code to clear 1024*4b169a6bSchristos GPR(0) each cycle. 1025*4b169a6bSchristos 1026*4b169a6bSchristosWed May 7 12:31:30 1997 Andrew Cagney <cagney@b1.cygnus.com> 1027*4b169a6bSchristos 1028*4b169a6bSchristos * igen.c (print_itrace): Fix so line-nr is passed to trace 1029*4b169a6bSchristos function. 1030*4b169a6bSchristos 1031*4b169a6bSchristos * gen-idecode.c (print_idecode_validate): Correct FP code. 1032*4b169a6bSchristos 1033*4b169a6bSchristos * gen-support.c (gen_support_h): Always pass MY_INDEX to support 1034*4b169a6bSchristos functions. 1035*4b169a6bSchristos (print_support_function_name): Ditto. 1036*4b169a6bSchristos 1037*4b169a6bSchristosTue May 6 06:12:04 1997 Mike Meissner <meissner@cygnus.com> 1038*4b169a6bSchristos 1039*4b169a6bSchristos * igen.c (print_itrace): Call trace_one_insn to trace 1040*4b169a6bSchristos instructions, rather than doing it directly. 1041*4b169a6bSchristos 1042*4b169a6bSchristosMon May 5 14:11:46 1997 Mike Meissner <meissner@cygnus.com> 1043*4b169a6bSchristos 1044*4b169a6bSchristos * gen-engine.c (engine_switch_leaf): Remove extra %s. 1045*4b169a6bSchristos (print_engine_floating_point_unavailable): Wrap in #ifdef 1046*4b169a6bSchristos UNUSED/#endif, until somebody uses it. 1047*4b169a6bSchristos 1048*4b169a6bSchristos * gen-idecode.c (error_leaf_contains_multiple_insn): Remove unused 1049*4b169a6bSchristos variable. 1050*4b169a6bSchristos (print_jump_until_stop_body): Wrap in #ifdef UNUSED/#endif, until 1051*4b169a6bSchristos somebody uses it. 1052*4b169a6bSchristos (print_idecode_validate): Use long formats to print long values. 1053*4b169a6bSchristos 1054*4b169a6bSchristos * gen-semantics.c (print_idecode_invalid): Set name to "unknown" 1055*4b169a6bSchristos if we get an unexpected type. 1056*4b169a6bSchristos 1057*4b169a6bSchristosFri May 2 13:28:06 1997 Andrew Cagney <cagney@b1.cygnus.com> 1058*4b169a6bSchristos 1059*4b169a6bSchristos * igen.c (print_itrace): Pass SD as well as CPU to calls to 1060*4b169a6bSchristos trace_printf. 1061*4b169a6bSchristos 1062*4b169a6bSchristos * gen-support.c (gen_support_h): Always pass sim_cia cia to 1063*4b169a6bSchristos support functions. 1064*4b169a6bSchristos (print_support_function_name): Ditto. 1065*4b169a6bSchristos 1066*4b169a6bSchristosWed Apr 30 17:35:51 1997 Andrew Cagney <cagney@b1.cygnus.com> 1067*4b169a6bSchristos 1068*4b169a6bSchristos * gen-support.c (support_c_function): Remove unnecessary memset of 1069*4b169a6bSchristos cia. 1070*4b169a6bSchristos * gen-semantics.c (print_semantic_body): Wasn't closing 1071*4b169a6bSchristos generated comment. 1072*4b169a6bSchristos 1073*4b169a6bSchristosTue Apr 29 11:11:12 1997 Andrew Cagney <cagney@b1.cygnus.com> 1074*4b169a6bSchristos 1075*4b169a6bSchristos * ld-insn.c (load_insn_table): Report instructions that do not 1076*4b169a6bSchristos have at least a format and name. 1077*4b169a6bSchristos (insn_table_find_opcode_field): Check progress is being made. 1078*4b169a6bSchristos 1079*4b169a6bSchristos * gen-support.c (support_c_function): Report empty function body. 1080*4b169a6bSchristos 1081*4b169a6bSchristosThu Apr 24 11:43:45 1997 Andrew Cagney <cagney@b1.cygnus.com> 1082*4b169a6bSchristos 1083*4b169a6bSchristos * ld-insn.c (insn_table_expand_opcode): Allow reserved fields to 1084*4b169a6bSchristos be broken up. 1085*4b169a6bSchristos (insn_table_expand_insns): Allow special rules to apply to groups 1086*4b169a6bSchristos of instructions when all members of the group match the special 1087*4b169a6bSchristos mask/value. 1088*4b169a6bSchristos 1089*4b169a6bSchristos * gen-semantics.c (print_c_semantic): Ditto. 1090*4b169a6bSchristos * igen.c (print_semantic_function_formal): Ditto. 1091*4b169a6bSchristos (print_semantic_function_type): Ditto. 1092*4b169a6bSchristos * igen.c (print_icache_function_formal): Ditto. 1093*4b169a6bSchristos * gen-idecode.c (print_idecode_issue_function_body): Ditto. 1094*4b169a6bSchristos 1095*4b169a6bSchristos * gen-idecode.c (gen_idecode_h): Prepend the global_prefix to the 1096*4b169a6bSchristos instruction_address type. 1097*4b169a6bSchristos 1098*4b169a6bSchristos * gen-semantics.c (print_semantic_body): Call cpu_error when an 1099*4b169a6bSchristos unimplemented instruction is encountered - gives the interpreter 1100*4b169a6bSchristos the chance to stop correctly. 1101*4b169a6bSchristos 1102*4b169a6bSchristosWed Apr 23 20:06:36 1997 Andrew Cagney <cagney@b1.cygnus.com> 1103*4b169a6bSchristos 1104*4b169a6bSchristos * igen.c (print_function_name): Allow dot's in instruction names. 1105*4b169a6bSchristos 1106*4b169a6bSchristosTue Apr 22 21:46:28 1997 Andrew Cagney <cagney@b1.cygnus.com> 1107*4b169a6bSchristos 1108*4b169a6bSchristos * igen.c (main), igen.h: Support new option - delayed-branch - 1109*4b169a6bSchristos generate code to drive a delayed branch processor. 1110*4b169a6bSchristos 1111*4b169a6bSchristos * gen-idecode.c (gen_idecode_h): Define instruction_address type. 1112*4b169a6bSchristos 1113*4b169a6bSchristos * igen.c (print_icache_function_formal): Replace address_word with 1114*4b169a6bSchristos instruction_address. 1115*4b169a6bSchristos (print_semantic_function_formal): Ditto. 1116*4b169a6bSchristos (print_semantic_function_type): Ditto. 1117*4b169a6bSchristos * gen-idecode.c (print_idecode_issue_function_body): Ditto. 1118*4b169a6bSchristos 1119*4b169a6bSchristos * gen-semantics.c (print_semantic_body): Ditto. 1120*4b169a6bSchristos (print_c_semantic): Ditto. 1121*4b169a6bSchristos 1122*4b169a6bSchristos * gen-support.c (support_c_function): Return a zeroed CIA instead 1123*4b169a6bSchristos of just zero - works with any cia type. 1124*4b169a6bSchristos 1125*4b169a6bSchristos * igen.c (print_itrace): For delayed branch case, print just the 1126*4b169a6bSchristos current instruction. 1127*4b169a6bSchristos 1128*4b169a6bSchristosThu Apr 17 07:02:33 1997 Doug Evans <dje@canuck.cygnus.com> 1129*4b169a6bSchristos 1130*4b169a6bSchristos * igen.c (print_itrace): Use TRACE_FOO_P and trace_printf. 1131*4b169a6bSchristos 1132*4b169a6bSchristosTue Apr 15 15:20:31 1997 Ian Lance Taylor <ian@cygnus.com> 1133*4b169a6bSchristos 1134*4b169a6bSchristos * Makefile.in (INSTALL): Set to @INSTALL@. 1135*4b169a6bSchristos (INSTALL_XFORM, INSTALL_XFORM1): Remove. 1136*4b169a6bSchristos 1137*4b169a6bSchristosMon Apr 14 16:29:34 1997 Ian Lance Taylor <ian@cygnus.com> 1138*4b169a6bSchristos 1139*4b169a6bSchristos * Makefile.in (INSTALL): Change install.sh to install-sh. 1140*4b169a6bSchristos 1141*4b169a6bSchristosWed Apr 2 18:51:20 1997 Doug Evans <dje@canuck.cygnus.com> 1142*4b169a6bSchristos 1143*4b169a6bSchristos * gen-support.c (gen_support_c): sim-state.h renamed to sim-main.h. 1144*4b169a6bSchristos * gen-idecode.c (gen_idecode_c): Likewise. 1145*4b169a6bSchristos * igen.c (gen_semantics_c): Likewise. 1146*4b169a6bSchristos 1147*4b169a6bSchristosMon Mar 24 10:10:08 1997 Andrew Cagney <cagney@kremvax.cygnus.com> 1148*4b169a6bSchristos 1149*4b169a6bSchristos * gen-icache.c (print_icache_body): No longer define cpu/sd, 1150*4b169a6bSchristos support.h now defines CPU/SD globally. 1151*4b169a6bSchristos 1152*4b169a6bSchristos * gen-model.c (gen_model_h): Ditto. 1153*4b169a6bSchristos 1154*4b169a6bSchristos * gen-idecode.c (print_idecode_issue_function_body): Ditto. 1155*4b169a6bSchristos (print_jump): Ditto. 1156*4b169a6bSchristos (print_jump_until_stop_body): Ditto. 1157*4b169a6bSchristos (print_idecode_validate): Ditto. 1158*4b169a6bSchristos 1159*4b169a6bSchristos * gen-icache.c (print_icache_body): Ditto. 1160*4b169a6bSchristos 1161*4b169a6bSchristos * gen-semantics.c (print_semantic_body): Ditto. 1162*4b169a6bSchristos 1163*4b169a6bSchristos * igen.c (print_semantic_function_formal): Rename cpu to sim_cpu, 1164*4b169a6bSchristos processor to cpu. 1165*4b169a6bSchristos (print_icache_function_formal): Ditto. 1166*4b169a6bSchristos 1167*4b169a6bSchristos * gen-support.c (print_support_function_name): Include sd/cpu arg 1168*4b169a6bSchristos in support function argument list. 1169*4b169a6bSchristos (support_c_function): Generate code to cpu/sd from sd/cpu. 1170*4b169a6bSchristos (gen_support_h): Define _SD the argument prefix for all support 1171*4b169a6bSchristos functions. Define SD/CPU to determine sd/cpu from value of _SD 1172*4b169a6bSchristos macro. 1173*4b169a6bSchristos 1174*4b169a6bSchristosTue Mar 18 15:52:24 1997 Andrew Cagney <cagney@kremvax.cygnus.com> 1175*4b169a6bSchristos 1176*4b169a6bSchristos * gen-support.c (gen_support_c): Update for renaming of engine to 1177*4b169a6bSchristos sim-state. 1178*4b169a6bSchristos 1179*4b169a6bSchristos * igen.c: Ditto. 1180*4b169a6bSchristos * gen-idecode.c (gen_idecode_c): Ditto. 1181*4b169a6bSchristos 1182*4b169a6bSchristosMon Mar 17 15:17:07 1997 Andrew Cagney <cagney@kremvax.cygnus.com> 1183*4b169a6bSchristos 1184*4b169a6bSchristos * ld-decode.c (load_decode_table): Rename slash to reserved. 1185*4b169a6bSchristos (dump_decode_rule): Ditto. 1186*4b169a6bSchristos 1187*4b169a6bSchristos * ld-insn.c (parse_insn_format): Differentiate between a `/' - 1188*4b169a6bSchristos reserved bit - and a `*' - wild card. 1189*4b169a6bSchristos (parse_insn_format): Change is_slash to more informative reserved. 1190*4b169a6bSchristos (dump_insn_field): Ditto. 1191*4b169a6bSchristos (insn_field_is_constant): Ditto. 1192*4b169a6bSchristos (insn_table_expand_opcode): Ditto. 1193*4b169a6bSchristos 1194*4b169a6bSchristos * gen-idecode.c (print_idecode_validate): Make check_mask and 1195*4b169a6bSchristos check_val the correct integer size. 1196*4b169a6bSchristos (print_idecode_validate): Fix reserved bit check for 64 bit 1197*4b169a6bSchristos targets. 1198*4b169a6bSchristos 1199*4b169a6bSchristosFri Mar 14 11:24:06 1997 Andrew Cagney <cagney@kremvax.cygnus.com> 1200*4b169a6bSchristos 1201*4b169a6bSchristos * ld-insn.c (parse_insn_format): Accept '*' as an alternative of 1202*4b169a6bSchristos `/' in bit fields. `/' denotes a wild bit. 1203*4b169a6bSchristos 1204*4b169a6bSchristosFri Mar 7 18:20:38 1997 Andrew Cagney <cagney@kremvax.cygnus.com> 1205*4b169a6bSchristos 1206*4b169a6bSchristos * igen.h, igen.c (main): New options. Control generation of 1207*4b169a6bSchristos conditional issue and slot verification code. 1208*4b169a6bSchristos 1209*4b169a6bSchristosFri Mar 7 18:17:25 1997 Andrew Cagney <cagney@kremvax.cygnus.com> 1210*4b169a6bSchristos 1211*4b169a6bSchristos * gen-support.c (print_support_function_name): Prepend the global 1212*4b169a6bSchristos name prefix when applicable. Provide #define to map the user 1213*4b169a6bSchristos specified name the generated globaly unique one. 1214*4b169a6bSchristos 1215*4b169a6bSchristosFri Mar 7 18:07:45 1997 Andrew Cagney <cagney@kremvax.cygnus.com> 1216*4b169a6bSchristos 1217*4b169a6bSchristos * gen-idecode.c (print_idecode_validate): Wrap each of the checks 1218*4b169a6bSchristos - reserved bits, floating point and slot validation - with a 1219*4b169a6bSchristos #ifdef so that they are optional. 1220*4b169a6bSchristos 1221*4b169a6bSchristosFri Mar 7 16:35:13 1997 Andrew Cagney <cagney@kremvax.cygnus.com> 1222*4b169a6bSchristos 1223*4b169a6bSchristos * gen-idecode.c (error_leaf_contains_multiple_insn): New function 1224*4b169a6bSchristos - report the error of a leaf node in the decision tree containing 1225*4b169a6bSchristos several instructions. 1226*4b169a6bSchristos (print_idecode_table_leaf): Detect a leaf with multiple instructions. 1227*4b169a6bSchristos (print_idecode_switch_leaf): Ditto. 1228*4b169a6bSchristos 1229*4b169a6bSchristos * gen-semantics.h, gen-semantics.c (print_idecode_illegal, 1230*4b169a6bSchristos print_idecode_invalid): Rename former to latter. Add argument so 1231*4b169a6bSchristos that one function can generate all invalid instruction cases - 1232*4b169a6bSchristos illegal, fp-unavailable, wrong-slot. 1233*4b169a6bSchristos * gen-engine.c: Update. 1234*4b169a6bSchristos 1235*4b169a6bSchristos * gen-idecode.c: Use print_idecode_invalid to generate a function 1236*4b169a6bSchristos call for cases when fp-unavailable and the slot is wrong. 1237*4b169a6bSchristos 1238*4b169a6bSchristos * gen-idecode.c (print_idecode_validate): New check, generate code 1239*4b169a6bSchristos to verify that the instruction slot is correct. 1240*4b169a6bSchristos 1241*4b169a6bSchristos * igen.c (main): Simplify options. 1242*4b169a6bSchristos 1243*4b169a6bSchristosWed Mar 5 09:55:55 1997 Andrew Cagney <cagney@kremvax.cygnus.com> 1244*4b169a6bSchristos 1245*4b169a6bSchristos * igen.c (print_itrace): Remove source line reference for trace 1246*4b169a6bSchristos code - let the user see the generated file. 1247*4b169a6bSchristos (print_itrace): Print the trace code rather than reference a 1248*4b169a6bSchristos macro. 1249*4b169a6bSchristos 1250*4b169a6bSchristosTue Mar 4 17:31:55 1997 Andrew Cagney <cagney@kremvax.cygnus.com> 1251*4b169a6bSchristos 1252*4b169a6bSchristos * igen.c (print_semantic_function_actual): Pass either the 1253*4b169a6bSchristos processor - smp - or the engine - mono - into semantic functions. 1254*4b169a6bSchristos Don't pass in both. 1255*4b169a6bSchristos 1256*4b169a6bSchristos * gen-icache.c (print_icache_body): Dependant on smp, derive 1257*4b169a6bSchristos processor from engine or engine from processor, and hence ensuring 1258*4b169a6bSchristos that both are defined in all semantic functions. 1259*4b169a6bSchristos 1260*4b169a6bSchristosMon Mar 3 17:11:21 1997 Andrew Cagney <cagney@kremvax.cygnus.com> 1261*4b169a6bSchristos 1262*4b169a6bSchristos * ld-insn.c (parse_insn_format): Make the width field optional. 1263*4b169a6bSchristos If missing assume that the number of characters in the value 1264*4b169a6bSchristos determines the number of bits in the field. 1265*4b169a6bSchristos 1266*4b169a6bSchristosThu Feb 27 11:27:48 1997 Andrew Cagney <cagney@kremvax.cygnus.com> 1267*4b169a6bSchristos 1268*4b169a6bSchristos * ld-insn.c (insn_table_expand_opcode): Replace assertion with 1269*4b169a6bSchristos more useful error message. 1270*4b169a6bSchristos 1271*4b169a6bSchristosTue Feb 25 16:43:27 1997 Andrew Cagney <cagney@kremvax.cygnus.com> 1272*4b169a6bSchristos 1273*4b169a6bSchristos * misc.c (error): Output errors on stderr. 1274*4b169a6bSchristos 1275*4b169a6bSchristos * ld-insn.c (parse_insn_format): Skip any leading spaces. 1276*4b169a6bSchristos Verify the width of instructions being parsed. 1277*4b169a6bSchristos 1278*4b169a6bSchristos * table.c (table_entry_read): Parse CPP's convention for 1279*4b169a6bSchristos specifying original file name/line-nr. 1280*4b169a6bSchristos 1281*4b169a6bSchristosWed Feb 19 12:30:28 1997 Andrew Cagney <cagney@critters.cygnus.com> 1282*4b169a6bSchristos 1283*4b169a6bSchristos * ld-insn.c (parse_insn_format): Allow trailing spaces in 1284*4b169a6bSchristos instruction fields. 1285*4b169a6bSchristos 1286*4b169a6bSchristos * Makefile.in: Create using ../ppc/Makefile.in as a starting 1287*4b169a6bSchristos point. 1288*4b169a6bSchristos * configure.in: Ditto vis ../ppc/configure.in 1289*4b169a6bSchristos 1290*4b169a6bSchristosMon Feb 17 10:44:18 1997 Andrew Cagney <cagney@critters.cygnus.com> 1291*4b169a6bSchristos 1292*4b169a6bSchristos * gen-support.c (gen_support_c): Always include engine.h instead 1293*4b169a6bSchristos of cpu.h 1294*4b169a6bSchristos * gen-idecode.c (gen_idecode_c): Ditto. 1295*4b169a6bSchristos 1296*4b169a6bSchristos * words.h (instruction_word): Remove instruction_word - now 1297*4b169a6bSchristos generated by igen. 1298*4b169a6bSchristos (address_word): New. Used by igen. 1299*4b169a6bSchristos 1300*4b169a6bSchristos * lf.c (lf_print_function_type_function): New, pass a function to 1301*4b169a6bSchristos print out the type instead of a constant string. 1302*4b169a6bSchristos 1303*4b169a6bSchristos * igen.h, igen.c (print_semantic_function_formal, 1304*4b169a6bSchristos SEMANTIC_FUNCTION_FORMAL): Relace macro with function. 1305*4b169a6bSchristos (print_semantic_function_actual, SEMANTIC_FUNCTION_ACTUAL): Ditto. 1306*4b169a6bSchristos (print_semantic_function_type, SEMANTIC_FUNCTION_TYPE): Ditto. 1307*4b169a6bSchristos (print_icache_function_type, ICACHE_FUNCTION_TYPE): Ditto. 1308*4b169a6bSchristos (print_icache_function_formal, ICACHE_FUNCTION_FORMAL): Ditto. 1309*4b169a6bSchristos (print_icache_function_actual, ICACHE_FUNCTION_ACTUAL): Ditto. 1310*4b169a6bSchristos * gen-idecode.c (print_idecode_table): Update. 1311*4b169a6bSchristos (idecode_switch_leaf): Update. 1312*4b169a6bSchristos (print_idecode_switch_function_header): Ditto. 1313*4b169a6bSchristos (print_idecode_floating_point_unavailable): Ditto. 1314*4b169a6bSchristos (print_idecode_issue_function_header): Ditto. 1315*4b169a6bSchristos * igen.c (gen_icache_h): Ditto. 1316*4b169a6bSchristos * gen-engine.c (print_engine_table): Ditto. 1317*4b169a6bSchristos (engine_switch_leaf): Ditto. 1318*4b169a6bSchristos * gen-support.c (print_support_function_name): Ditto. 1319*4b169a6bSchristos * gen-semantics.c (print_semantic_function_header): Update. 1320*4b169a6bSchristos Update. 1321*4b169a6bSchristos * gen-icache.c (print_icache_function_header): Update. 1322*4b169a6bSchristos (print_icache_function): Update. 1323*4b169a6bSchristos (print_icache_internal_function_declaration): Update. 1324*4b169a6bSchristos (print_icache_internal_function_definition): Update. 1325*4b169a6bSchristos 1326*4b169a6bSchristos * gen-idecode.c (gen_idecode_h): Drop including of idecode_*.h 1327*4b169a6bSchristos files, will at some stage need to move it into support. 1328*4b169a6bSchristos 1329*4b169a6bSchristos * igen.h, igen.c (main): New option -e <engine> - generate a full 1330*4b169a6bSchristos simulation engine. Previously this was the -d <idecode-file> 1331*4b169a6bSchristos option. 1332*4b169a6bSchristos * gen-engine.h, gen-engine.c: Copies of gen-idecode.*. Will need 1333*4b169a6bSchristos to clean these up so that that call upon the updated gen-idecode 1334*4b169a6bSchristos code. 1335*4b169a6bSchristos 1336*4b169a6bSchristos * gen-idecode.h, gen-idecode.c: Prune out any code not relevant to 1337*4b169a6bSchristos generating a decode table. 1338*4b169a6bSchristos 1339*4b169a6bSchristos * Makefile.in (igen): Add dependencies for new gen-engine.* files. 1340*4b169a6bSchristos 1341*4b169a6bSchristos * igen.h, igen.c (main): New option -M - Control what is returned 1342*4b169a6bSchristos by semantic functions - -1/NIA vs CIA+N/NIA. Add 1343*4b169a6bSchristos generate_semantic_returning_modified_nia_only to igen_code enum. 1344*4b169a6bSchristos * gen-semantics.c (print_semantic_body): As an alternative, make 1345*4b169a6bSchristos NIA == -1 instead of CIA+insn_size by default. 1346*4b169a6bSchristos 1347*4b169a6bSchristos * igen.h, igen.c (main, global_name_prefix, global_uname_prefix): 1348*4b169a6bSchristos New option -P <prefix> - Prepend all generated functions with the 1349*4b169a6bSchristos specified prefix. 1350*4b169a6bSchristos (gen_idecode_c): Adjust. 1351*4b169a6bSchristos * gen-icache.c (print_icache_struct): Ditto. 1352*4b169a6bSchristos * gen-support.c (gen_support_c): Ditto. 1353*4b169a6bSchristos 1354*4b169a6bSchristosSun Feb 16 15:23:15 1997 Andrew Cagney <cagney@critters.cygnus.com> 1355*4b169a6bSchristos 1356*4b169a6bSchristos * igen.c (main): Correct usage. Missleading message about ucase 1357*4b169a6bSchristos options dumping internal tables. -F now includes rather then 1358*4b169a6bSchristos excludes instructions. 1359*4b169a6bSchristos 1360*4b169a6bSchristos * misc.h, misc.c (a2i): Make 64bit. 1361*4b169a6bSchristos 1362*4b169a6bSchristos * ld-insn.h (max_insn_bit_size, default_insn_bit_size): Increase 1363*4b169a6bSchristos max to 64bits, expect trouble. Make the default 32 bits. 1364*4b169a6bSchristos * gen-idecode.c (print_idecode_table): Change EXTRACTED* 1365*4b169a6bSchristos et.al. macro's to use the insn_bit_size instead of assuming 32 1366*4b169a6bSchristos bits. 1367*4b169a6bSchristos * gen-icache.c (print_icache_extraction): Ditto. 1368*4b169a6bSchristos * gen-idecode.c (idecode_switch_start): Ditto. 1369*4b169a6bSchristos * gen-idecode.c (gen_idecode_c): Ditto 1370*4b169a6bSchristos 1371*4b169a6bSchristos * igen.h (insn_specifying_widths), igen.c (main): New option -W. 1372*4b169a6bSchristos Indicates that the instruction field of the table is specifying 1373*4b169a6bSchristos bit widths instead of bit offsets. 1374*4b169a6bSchristos * ld-insn.c (parse_insn_format): Parse instruction fields 1375*4b169a6bSchristos specifying widths. 1376*4b169a6bSchristos 1377*4b169a6bSchristos * misc.c (a2i): Allow binary numbers to be specified using the 1378*4b169a6bSchristos syntax 0bNNNN. 1379*4b169a6bSchristos * ld-insn.c: Allow such numbers to appear in the instruction 1380*4b169a6bSchristos format. 1381*4b169a6bSchristos 1382*4b169a6bSchristos * table.c (table_entry_read): Make // a valid comment character. 1383*4b169a6bSchristos (table_entry_read): Skip lines containing a leading " - these may 1384*4b169a6bSchristos eventually be used in a disasembler. 1385*4b169a6bSchristos 1386*4b169a6bSchristosFri Feb 14 15:23:15 1997 Andrew Cagney <cagney@critters.cygnus.com> 1387*4b169a6bSchristos 1388*4b169a6bSchristos * filter.c, filter.h, gen-engine.c, gen-engine.h, gen-icache.c, 1389*4b169a6bSchristos gen-icache.h, gen-idecode.c, gen-idecode.h, gen-itable.c, 1390*4b169a6bSchristos gen-itable.h, gen-model.c, gen-model.h, gen-semantics.c, 1391*4b169a6bSchristos gen-semantics.h, gen-support.c, gen-support.h, igen.c, igen.h, 1392*4b169a6bSchristos ld-cache.c, ld-cache.h, ld-decode.c, ld-decode.h, ld-insn.c, 1393*4b169a6bSchristos ld-insn.h, lf.c, lf.h, misc.c, misc.h, table.c, table.h: Copy in 1394*4b169a6bSchristos from the ../ppc directory. 1395*4b169a6bSchristos 1396*4b169a6bSchristos * filter_host.c, filter_host.h: Copy in from the ../ppc directory 1397*4b169a6bSchristos renaming from filter_filename.[hc] 1398