aboutsummaryrefslogtreecommitdiff
path: root/opcodes/z8k-opc.h
AgeCommit message (Collapse)AuthorFilesLines
2021-01-01Update year range in copyright notice of binutils filesAlan Modra1-1/+1
2020-08-04Z8k: fix sout/soudb opcodes with direct addressChristian Groessler1-4/+4
Problem found by Tadashi G. Takaoka. 2020-08-04 Christian Groessler <chris@groessler.org> Tadashi G. Takaoka <tadashi.g.takaoka@gmail.com> * z8kgen.c (opt): Fix "sout imm16,rs" and "soutb imm16,rbs" opcodes (special "out" to absolute address). * z8k-opc.h: Regenerate. 2020-08-04 Christian Groessler <chris@groessler.org> * gas/testsuite/gas/z8k/inout.d: Adapt to correct encoding of "sout/soutb #imm,reg"
2020-01-08ubsan: z8k: index 10 out of bounds for type 'unsigned int const[10]'Alan Modra1-3/+3
The fix is the additional ARRAY_SIZE test, the rest just tidies variable types rather than adding a cast to avoid warnings. opcodes/ * z8k-dis.c: Include libiberty.h (instr_data_s): Make max_fetched unsigned. (z8k_lookup_instr): Make nibl_index and tabl_index unsigned. Don't exceed byte_info bounds. (output_instr): Make num_bytes unsigned. (unpack_instr): Likewise for nibl_count and loop. * z8kgen.c (gas <opcode_entry_type>): Make noperands, length and idx unsigned. * z8k-opc.h: Regenerate. gas/ * config/tc-z8k.c (md_begin): Make idx unsigned. (get_specific): Likewise for this_index.
2020-01-01Update year range in copyright notice of binutils filesAlan Modra1-1/+1
2019-01-01Update year range in copyright notice of binutils filesAlan Modra1-1/+1
2018-01-03Update year range in copyright notice of binutils filesAlan Modra1-1/+1
2017-01-02Update year range in copyright notice of all files.Alan Modra1-1/+1
2016-01-01Copyright update for binutilsAlan Modra1-1/+1
2015-01-02ChangeLog rotatation and copyright year updateAlan Modra1-1/+1
2014-03-05Update copyright yearsAlan Modra1-1/+1
2012-10-26gas/testsuite:Christian Groessler1-52/+44
* gas/z8k/z8k.exp: Run translate-ops test. * gas/z8k/translate-ops.s: New file. * gas/z8k/translate-ops.d: New file. opcodes: * z8kgen.c (struct op): Fix encoding for translate opcodes (trdb, trdrb, trib, trirb, trtdb, trtdrb, trtib, trtirb). Remove non-existing opcode trtrb. * z8k-opc.h: Regenerate.
2009-09-08* z8kgen.c (struct op): Replace unused flavor with id.Andreas Schwab1-8/+0
(opt): Remove extra xorb entry. (func): Use id field as fallback. (sub): Return new string, caller changed. (internal): Allocate end marker. Assign unique id before sorting. (gas): Likewise. Fix loop end condition. * z8k-opc.h: Regenerate.
2009-09-07 * z8kgen.c (func): Stabilize qsort of identically named entries.Alan Modra1-8/+8
* z8k-opc.h: Regenerate.
2009-09-072009-09-07 Tristan Gingold <gingold@adacore.com>Tristan Gingold1-8/+8
* z8k-opc.h: Regenerate.
2009-08-25Build cleanups in opcodes: cross-compilation and generators.Ralf Wildenhues1-2/+2
opcodes/: * Makefile.am (SUBDIRS): Build '.' before 'po'. (COMPILE_FOR_BUILD, LINK_FOR_BUILD, BUILD_LIBIBERTY) (MOSTLYCLEANFILES, MAINTAINERCLEANFILES): New variables. (i386-gen$(EXEEXT_FOR_BUILD)): Renamed from i386-gen, rewrite using *BUILD variables, depend upon $(BUILD_LIBIBERTY). (i386-gen.o): New rule. ($(srcdir)/i386-init.h): Adjust. (i386-opc.lo): Depend on $(srcdir)/i386-tbl.h. (ia64-gen$(EXEEXT_FOR_BUILD)): Rename from ia64-gen, adjust likewise. (ia64-gen.o): New rule. (ia64_asmtab_deps): New variable. ($(srcdir)/ia64-asmtab.c): Use it; adjust likewise. (ia64-opc.lo): Depend on $(srcdir)/ia64-asmtab.c. (s390-mkopc$(EXEEXT_FOR_BUILD)): Rename from s390-mkopc, adjust likewise. (s390-opc.tab): Adjust. (z8kgen$(EXEEXT_FOR_BUILD), z8kgen.o, $(srcdir)/z8k-opc.h): New rules. (z8k-dis.lo): Depend on $(srcdir)/z8k-opc.h. * Makefile.in: Regenerate. * z8kgen.c (gas): Avoid '/*' in comment. * z8k-opc.h (func): Regenerate.
2007-07-05Change source files over to GPLv3.Nick Clifton1-0/+19
2003-11-28 * z8k-dis.c: Convert to ISO C90.Christian Groessler1-113/+113
* z8kgen.c: Convert to ISO C90. (opt): Move long opcode for "ldb rdb,imm8" after short one, now the short one is created when assembling. * z8k-opc.h: Regenerate with new z8kgen.c.
2003-06-19 * z8k-dis.c (instr_data_s): Change tabl_index from long to int.Christian Groessler1-593/+746
(print_insn_z8k): Correctly check return value from z8k_lookup_instr call. (unparse_instr): Handle CLASS_IRO case. * z8kgen.c: Fix function definitions. Fix formatting. (opt): Add brk opcode alias for non-simulator breakpoint. Add missing and fix existing in/out and sin/sout opcode definitions. (args): "@ri", "@ro" - add CLASS_IRO register usage for in/out opcodes. (internal): Check p->flags for non-zero before dereferencing it. (gas): Add CLASS_IRO line. Insert new OPC_xxx lines for the added opcodes and renumber the remaining lines repectively. (main): Remove "-d" command line switch. * z8k-opc.h: Regenerate with new z8kgen.c.
2002-12-12 * config/tc-z8k.c (cons, obj_coff_section): Delete declarations.Alan Modra1-1695/+857
(whatreg, parse_reg, parse_exp): Make static, prototype. (checkfor, regword, regaddr, get_ctrl_operand): Prototype. (get_flags_operand, get_interrupt_operand, get_cc_operand): Likewise. (get_operand, get_operands, get_specific, newfix): Likewise. (apply_fix, build_bytes): Likewise. (md_atof): Remove declaration of atof_ieee. (tc_aout_fix_to_chars): Delete. (md_begin): Constify "opcode". Don't try to init opcode->idx. Fix s_unseg call. (md_parse_option): Fix s_segm and s_unseg calls. * z8kgen.c: Include "libiberty.h". (opt, args, toks): Fix initializer warnings. (chewname): Make "name" a char **. Return mnemonic trimmed of operands. (gas): Improve emitted "DO NOT EDIT" warning. Format emitted opcode_entry_type, and make "nicename" and "name" const. Make z8k_table const too. Formatting. Generate idx as gas needs it. * z8k-opc.h: Regenerate.
2002-11-182002-11-18 Klee Dienes <kdienes@apple.com>Klee Dienes1-1/+1
* arc.h (arc_ext_opcodes): Declare as extern. (arc_ext_operands): Declare as extern. * i860.h (i860_opcodes): Declare as const. 2002-11-18 Klee Dienes <kdienes@apple.com> * arc-opc.c (arc_ext_opcodes): Define. (arc_ext_operands): Define. * i386-dis.c (Suffix3DNow): Declare as const. * arm-opc.h (arm_opcodes): Declare as const. (thumb_opcodes): Declare as const. * h8500-opc.h (h8500_table): Declare as const. (h8500_table): Use a NULL for the opcode in the terminator, so that code testing (opcode->name) behaves correctly. * mcore-opc.h (mcore_table): Declare as const. * sh-opc.h (sh_table): Declare as const. * w65-opc.h (optable): Declare as const. * z8k-opc.h (z8k_table): Declare as const.
2002-08-22opcodes: Fix definition of "in rd,imm16" opcode.Nick Clifton1-2/+2
gas: Adjust ptr variable also in "case 0" case.
2002-04-25The patch contains mostly fixes for the disassembler. It also fixesNick Clifton1-34/+36
a crash of the assembler with some malformed source input. Long segmented addresses are now correctly relocated. Finally it updates my email address in the MAINTAINERS file.
2001-09-20Fix compile time warningsNick Clifton1-1/+1
2001-08-01Cleanups for z8k targetNick Clifton1-1/+9
2001-04-24z8k fixesNick Clifton1-232/+265
1999-05-0319990502 sourceware importbinu_ss_19990502Richard Henderson1-0/+4438