diff options
author | Andrew Cagney <cagney@redhat.com> | 1997-09-15 14:42:51 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 1997-09-15 14:42:51 +0000 |
commit | bda616399558c403cb8d3cd90a128361c5d169a3 (patch) | |
tree | 829fe67fca5fec8c42ef20cbe83446168994359a /sim/v850/sim-main.h | |
parent | a2ab5e65eba0838ef24a59b56a37f9bd34023ffc (diff) | |
download | gdb-bda616399558c403cb8d3cd90a128361c5d169a3.zip gdb-bda616399558c403cb8d3cd90a128361c5d169a3.tar.gz gdb-bda616399558c403cb8d3cd90a128361c5d169a3.tar.bz2 |
Fix sanitization for v850 V v850e V v850eq
Diffstat (limited to 'sim/v850/sim-main.h')
-rw-r--r-- | sim/v850/sim-main.h | 35 |
1 files changed, 31 insertions, 4 deletions
diff --git a/sim/v850/sim-main.h b/sim/v850/sim-main.h index fb6b31d..2cab082 100644 --- a/sim/v850/sim-main.h +++ b/sim/v850/sim-main.h @@ -21,6 +21,10 @@ typedef address_word sim_cia; #include "sim-base.h" +#include "simops.h" +#include "bfd.h" + + typedef signed8 int8; typedef unsigned8 uint8; typedef signed16 int16; @@ -86,9 +90,9 @@ extern uint32 OP[4]; it. */ #if 0 -OP[0] = inst & 0x1f; -OP[1] = (inst >> 11) & 0x1f; -OP[2] = (inst >> 16) & 0xffff; +OP[0] = inst & 0x1f; /* RRRRR -> reg1 */ +OP[1] = (inst >> 11) & 0x1f; /* rrrrr -> reg2 */ +OP[2] = (inst >> 16) & 0xffff; /* wwwww -> reg3 */ OP[3] = inst; #endif @@ -260,4 +264,27 @@ void trace_output PARAMS ((enum op_types result)); #define trace_output(RESULT) #endif -#include "simops.h" + +/* start-sanitize-v850eq */ +extern void divun ( unsigned int N, + unsigned long int als, + unsigned long int sfi, + unsigned long int * quotient_ptr, + unsigned long int * remainder_ptr, + boolean * overflow_ptr + ); +extern void divn ( unsigned int N, + unsigned long int als, + unsigned long int sfi, + signed long int * quotient_ptr, + signed long int * remainder_ptr, + boolean * overflow_ptr + ); +/* end-sanitize-v850eq */ +/* start-sanitize-v850e */ +extern int type1_regs[]; +extern int type2_regs[]; +/* end-sanitize-v850e */ +/* start-sanitize-v850eq */ +extern int type3_regs[]; +/* end-sanitize-v850eq */ |