48 int OP_16007E0 (void);
49 int OP_16087E0 (void);
50 int OP_12007E0 (void);
51 int OP_10007E0 (void);
53 int OP_22207E0 (void);
57 int OP_20007E0 (void);
58 int OP_1C207E0 (void);
59 int OP_1C007E0 (void);
60 int OP_18207E0 (void);
61 int OP_18007E0 (void);
62 int OP_2C207E0 (void);
63 int OP_2C007E0 (void);
64 int OP_28207E0 (void);
65 int OP_28007E0 (void);
66 int OP_24207E0 (void);
67 int OP_24007E0 (void);
74 int OP_22007E0 (void);
79 int v850_float_compare(SIM_DESC sd, int cmp, sim_fpu wop1, sim_fpu wop2, int double_op_p);
82 unsigned32 load_data_mem(SIM_DESC sd, SIM_ADDR addr, int len);
83 void store_data_mem(SIM_DESC sd, SIM_ADDR addr, int len, unsigned32 data);
85 unsigned long Add32 (unsigned long a1, unsigned long a2, int * carry);
90 FPU: update FPSR flags
91 invalid, inexact, overflow, underflow
94 extern void check_invalid_snan (SIM_DESC sd, sim_fpu_status, unsigned int);
96 #define check_cvt_fi(sd, status, double_op_p) \
97 update_fpsr (sd, status, FPSR_XEV | FPSR_XEI, double_op_p)
99 #define check_cvt_if(sd, status, double_op_p) \
100 update_fpsr (sd, status, FPSR_XEI, double_op_p)
102 #define check_cvt_ff(sd, status, double_op_p) \
103 update_fpsr (sd, status, FPSR_XEV | FPSR_XEI | FPSR_XEO | FPSR_XEU, double_op_p)
105 extern void update_fpsr (SIM_DESC sd, sim_fpu_status, unsigned int, unsigned int);
111 void SignalException (SIM_DESC sd);
112 void SignalExceptionFPE (SIM_DESC sd, unsigned int double_op_p);
114 int mpu_load_mem_test (SIM_DESC sd, unsigned int addr, int len, int base_reg);
115 int mpu_store_mem_test (SIM_DESC sd, unsigned int addr, int len, int base_reg);
117 void v850_sar (SIM_DESC sd, unsigned int op0, unsigned int op1, unsigned int *op2p);
118 void v850_shl (SIM_DESC sd, unsigned int op0, unsigned int op1, unsigned int *op2p);
119 void v850_rotl (SIM_DESC sd, unsigned int, unsigned int, unsigned int *);
120 void v850_bins (SIM_DESC sd, unsigned int, unsigned int, unsigned int, unsigned int *);
121 void v850_shr (SIM_DESC sd, unsigned int op0, unsigned int op1, unsigned int *op2p);
122 void v850_satadd (SIM_DESC sd, unsigned int op0, unsigned int op1, unsigned int *op2p);
123 void v850_satsub (SIM_DESC sd, unsigned int op0, unsigned int op1, unsigned int *op2p);
124 void v850_div (SIM_DESC sd, unsigned int op0, unsigned int op1, unsigned int *op2p, unsigned int *op3p);
125 void v850_divu (SIM_DESC sd, unsigned int op0, unsigned int op1, unsigned int *op2p, unsigned int *op3p);