diff options
Diffstat (limited to 'instruction.h')
-rw-r--r-- | instruction.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/instruction.h b/instruction.h index 57fd1b6..f53c995 100644 --- a/instruction.h +++ b/instruction.h @@ -196,9 +196,15 @@ enum { }; #define R_TYPE_COUNT 0x40 +#define INSTR_ERR -1 +#define PC_INC_NORMAL 0 +#define PC_INC_BY_INSTR 1 + /* Forward declaration */ struct nios2; -typedef uint32_t (*instruction_handler)(struct nios2 *cpu, uint32_t opcode); +typedef int (*instruction_handler)(struct nios2 *cpu, uint32_t opcode); + +extern instruction_handler instruction_get_handler(uint32_t code); #endif /* _INSTRUCTION_H_ */ |