diff options
author | Andrew Haley <aph@redhat.com> | 2000-02-24 21:56:53 +0000 |
---|---|---|
committer | Andrew Haley <aph@redhat.com> | 2000-02-24 21:56:53 +0000 |
commit | 60f036a265ffa98d6618546fe1725af1f79b653b (patch) | |
tree | 5581794bd502664bf2cb88d9bd56b403dae8448b /include | |
parent | f5619cc233860c641e2b68e767b1660aa2a342c1 (diff) | |
download | gdb-60f036a265ffa98d6618546fe1725af1f79b653b.zip gdb-60f036a265ffa98d6618546fe1725af1f79b653b.tar.gz gdb-60f036a265ffa98d6618546fe1725af1f79b653b.tar.bz2 |
2000-02-24 Andrew Haley <aph@cygnus.com>
* cgen.h (CGEN_INSN_MACH_HAS_P): New macro.
(CGEN_CPU_TABLE): flags: new field.
Add prototypes for new functions.
Diffstat (limited to 'include')
-rw-r--r-- | include/opcode/ChangeLog | 6 | ||||
-rw-r--r-- | include/opcode/cgen.h | 22 |
2 files changed, 27 insertions, 1 deletions
diff --git a/include/opcode/ChangeLog b/include/opcode/ChangeLog index f96ad2d..b549903 100644 --- a/include/opcode/ChangeLog +++ b/include/opcode/ChangeLog @@ -1,3 +1,9 @@ +2000-02-24 Andrew Haley <aph@cygnus.com> + + * cgen.h (CGEN_INSN_MACH_HAS_P): New macro. + (CGEN_CPU_TABLE): flags: new field. + Add prototypes for new functions. + 2000-02-24 Alan Modra <alan@spri.levels.unisa.edu.au> * i386.h: Add some more UNIXWARE_COMPAT comments. diff --git a/include/opcode/cgen.h b/include/opcode/cgen.h index 2a5fd0d..d46d268 100644 --- a/include/opcode/cgen.h +++ b/include/opcode/cgen.h @@ -1,6 +1,6 @@ /* Header file for targets using CGEN: Cpu tools GENerator. -Copyright (C) 1996, 1997, 1998, 1999 Free Software Foundation, Inc. +Copyright (C) 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc. This file is part of GDB, the GNU debugger, and the GNU Binutils. @@ -1281,6 +1281,11 @@ typedef struct cgen_cpu_desc /* Disassembler instruction hash table. */ CGEN_INSN_LIST **dis_hash_table; CGEN_INSN_LIST *dis_hash_table_entries; + + /* Customisation for CGEN operations. */ +#define CGEN_FLAG_SIGNED_OVERFLOW_OK (1 << 0) + unsigned int flags; + } CGEN_CPU_TABLE; /* wip */ @@ -1383,4 +1388,19 @@ extern void cgen_put_insn_value extern const char * cgen_read_cpu_file PARAMS ((CGEN_CPU_DESC, const char * filename_)); +/* Set the flags in the CGEN_CPU_DESC. */ +extern void cgen_set_flags PARAMS ((CGEN_CPU_DESC, unsigned int)); + +/* Read the flags in the CGEN_CPU_DESC. */ +extern unsigned int cgen_get_flags PARAMS ((CGEN_CPU_DESC)); + +/* Allow signed overflow of instruction fields. */ +extern void cgen_set_signed_overflow_ok PARAMS ((CGEN_CPU_DESC)); + +/* Generate an error message if a signed field in an instruction overflows. */ +extern void cgen_clear_signed_overflow_ok PARAMS ((CGEN_CPU_DESC)); + +/* Will an error message be generated if a signed field in an instruction overflows ? */ +extern unsigned int cgen_signed_overflow_ok_p PARAMS ((CGEN_CPU_DESC)); + #endif /* CGEN_H */ |