pbrook | a7812ae | 2008-11-17 14:43:54 +0000 | [diff] [blame] | 1 | #include "def-helper.h" |
ths | 3089880 | 2008-05-21 02:04:15 +0000 | [diff] [blame] | 2 | |
Stefan Weil | 59821ae | 2012-03-18 23:16:03 +0100 | [diff] [blame] | 3 | DEF_HELPER_2(raise_exception_err, noreturn, i32, int) |
| 4 | DEF_HELPER_1(raise_exception, noreturn, i32) |
ths | 7dd9e55 | 2008-06-08 07:42:23 +0000 | [diff] [blame] | 5 | |
ths | c8c2227 | 2008-06-20 15:12:14 +0000 | [diff] [blame] | 6 | #ifdef TARGET_MIPS64 |
pbrook | a7812ae | 2008-11-17 14:43:54 +0000 | [diff] [blame] | 7 | DEF_HELPER_3(ldl, tl, tl, tl, int) |
| 8 | DEF_HELPER_3(ldr, tl, tl, tl, int) |
| 9 | DEF_HELPER_3(sdl, void, tl, tl, int) |
| 10 | DEF_HELPER_3(sdr, void, tl, tl, int) |
ths | c8c2227 | 2008-06-20 15:12:14 +0000 | [diff] [blame] | 11 | #endif |
pbrook | a7812ae | 2008-11-17 14:43:54 +0000 | [diff] [blame] | 12 | DEF_HELPER_3(lwl, tl, tl, tl, int) |
| 13 | DEF_HELPER_3(lwr, tl, tl, tl, int) |
| 14 | DEF_HELPER_3(swl, void, tl, tl, int) |
| 15 | DEF_HELPER_3(swr, void, tl, tl, int) |
ths | c8c2227 | 2008-06-20 15:12:14 +0000 | [diff] [blame] | 16 | |
Aurelien Jarno | e7139c4 | 2009-11-30 15:39:54 +0100 | [diff] [blame] | 17 | #ifndef CONFIG_USER_ONLY |
| 18 | DEF_HELPER_2(ll, tl, tl, int) |
| 19 | DEF_HELPER_3(sc, tl, tl, tl, int) |
| 20 | #ifdef TARGET_MIPS64 |
| 21 | DEF_HELPER_2(lld, tl, tl, int) |
| 22 | DEF_HELPER_3(scd, tl, tl, tl, int) |
| 23 | #endif |
| 24 | #endif |
| 25 | |
aurel32 | e7a6965 | 2009-04-06 12:34:07 +0000 | [diff] [blame] | 26 | DEF_HELPER_FLAGS_1(clo, TCG_CALL_CONST | TCG_CALL_PURE, tl, tl) |
| 27 | DEF_HELPER_FLAGS_1(clz, TCG_CALL_CONST | TCG_CALL_PURE, tl, tl) |
ths | 7dd9e55 | 2008-06-08 07:42:23 +0000 | [diff] [blame] | 28 | #ifdef TARGET_MIPS64 |
aurel32 | e7a6965 | 2009-04-06 12:34:07 +0000 | [diff] [blame] | 29 | DEF_HELPER_FLAGS_1(dclo, TCG_CALL_CONST | TCG_CALL_PURE, tl, tl) |
| 30 | DEF_HELPER_FLAGS_1(dclz, TCG_CALL_CONST | TCG_CALL_PURE, tl, tl) |
pbrook | a7812ae | 2008-11-17 14:43:54 +0000 | [diff] [blame] | 31 | DEF_HELPER_2(dmult, void, tl, tl) |
| 32 | DEF_HELPER_2(dmultu, void, tl, tl) |
ths | 7dd9e55 | 2008-06-08 07:42:23 +0000 | [diff] [blame] | 33 | #endif |
ths | f1aa632 | 2008-06-09 07:13:38 +0000 | [diff] [blame] | 34 | |
pbrook | a7812ae | 2008-11-17 14:43:54 +0000 | [diff] [blame] | 35 | DEF_HELPER_2(muls, tl, tl, tl) |
| 36 | DEF_HELPER_2(mulsu, tl, tl, tl) |
| 37 | DEF_HELPER_2(macc, tl, tl, tl) |
| 38 | DEF_HELPER_2(maccu, tl, tl, tl) |
| 39 | DEF_HELPER_2(msac, tl, tl, tl) |
| 40 | DEF_HELPER_2(msacu, tl, tl, tl) |
| 41 | DEF_HELPER_2(mulhi, tl, tl, tl) |
| 42 | DEF_HELPER_2(mulhiu, tl, tl, tl) |
| 43 | DEF_HELPER_2(mulshi, tl, tl, tl) |
| 44 | DEF_HELPER_2(mulshiu, tl, tl, tl) |
| 45 | DEF_HELPER_2(macchi, tl, tl, tl) |
| 46 | DEF_HELPER_2(macchiu, tl, tl, tl) |
| 47 | DEF_HELPER_2(msachi, tl, tl, tl) |
| 48 | DEF_HELPER_2(msachiu, tl, tl, tl) |
ths | 92af06d | 2008-06-20 14:35:19 +0000 | [diff] [blame] | 49 | |
ths | f1aa632 | 2008-06-09 07:13:38 +0000 | [diff] [blame] | 50 | #ifndef CONFIG_USER_ONLY |
ths | 0eaef5a | 2008-07-23 16:14:22 +0000 | [diff] [blame] | 51 | /* CP0 helpers */ |
pbrook | a7812ae | 2008-11-17 14:43:54 +0000 | [diff] [blame] | 52 | DEF_HELPER_0(mfc0_mvpcontrol, tl) |
| 53 | DEF_HELPER_0(mfc0_mvpconf0, tl) |
| 54 | DEF_HELPER_0(mfc0_mvpconf1, tl) |
Edgar E. Iglesias | 5a25ce9 | 2011-08-29 23:07:34 +0200 | [diff] [blame] | 55 | DEF_HELPER_0(mftc0_vpecontrol, tl) |
| 56 | DEF_HELPER_0(mftc0_vpeconf0, tl) |
pbrook | a7812ae | 2008-11-17 14:43:54 +0000 | [diff] [blame] | 57 | DEF_HELPER_0(mfc0_random, tl) |
| 58 | DEF_HELPER_0(mfc0_tcstatus, tl) |
| 59 | DEF_HELPER_0(mftc0_tcstatus, tl) |
| 60 | DEF_HELPER_0(mfc0_tcbind, tl) |
| 61 | DEF_HELPER_0(mftc0_tcbind, tl) |
| 62 | DEF_HELPER_0(mfc0_tcrestart, tl) |
| 63 | DEF_HELPER_0(mftc0_tcrestart, tl) |
| 64 | DEF_HELPER_0(mfc0_tchalt, tl) |
| 65 | DEF_HELPER_0(mftc0_tchalt, tl) |
| 66 | DEF_HELPER_0(mfc0_tccontext, tl) |
| 67 | DEF_HELPER_0(mftc0_tccontext, tl) |
| 68 | DEF_HELPER_0(mfc0_tcschedule, tl) |
| 69 | DEF_HELPER_0(mftc0_tcschedule, tl) |
| 70 | DEF_HELPER_0(mfc0_tcschefback, tl) |
| 71 | DEF_HELPER_0(mftc0_tcschefback, tl) |
| 72 | DEF_HELPER_0(mfc0_count, tl) |
| 73 | DEF_HELPER_0(mftc0_entryhi, tl) |
| 74 | DEF_HELPER_0(mftc0_status, tl) |
Edgar E. Iglesias | 5a25ce9 | 2011-08-29 23:07:34 +0200 | [diff] [blame] | 75 | DEF_HELPER_0(mftc0_cause, tl) |
| 76 | DEF_HELPER_0(mftc0_epc, tl) |
| 77 | DEF_HELPER_0(mftc0_ebase, tl) |
| 78 | DEF_HELPER_1(mftc0_configx, tl, tl) |
pbrook | a7812ae | 2008-11-17 14:43:54 +0000 | [diff] [blame] | 79 | DEF_HELPER_0(mfc0_lladdr, tl) |
| 80 | DEF_HELPER_1(mfc0_watchlo, tl, i32) |
| 81 | DEF_HELPER_1(mfc0_watchhi, tl, i32) |
| 82 | DEF_HELPER_0(mfc0_debug, tl) |
| 83 | DEF_HELPER_0(mftc0_debug, tl) |
ths | f1aa632 | 2008-06-09 07:13:38 +0000 | [diff] [blame] | 84 | #ifdef TARGET_MIPS64 |
pbrook | a7812ae | 2008-11-17 14:43:54 +0000 | [diff] [blame] | 85 | DEF_HELPER_0(dmfc0_tcrestart, tl) |
| 86 | DEF_HELPER_0(dmfc0_tchalt, tl) |
| 87 | DEF_HELPER_0(dmfc0_tccontext, tl) |
| 88 | DEF_HELPER_0(dmfc0_tcschedule, tl) |
| 89 | DEF_HELPER_0(dmfc0_tcschefback, tl) |
| 90 | DEF_HELPER_0(dmfc0_lladdr, tl) |
| 91 | DEF_HELPER_1(dmfc0_watchlo, tl, i32) |
ths | f1aa632 | 2008-06-09 07:13:38 +0000 | [diff] [blame] | 92 | #endif /* TARGET_MIPS64 */ |
| 93 | |
pbrook | a7812ae | 2008-11-17 14:43:54 +0000 | [diff] [blame] | 94 | DEF_HELPER_1(mtc0_index, void, tl) |
| 95 | DEF_HELPER_1(mtc0_mvpcontrol, void, tl) |
| 96 | DEF_HELPER_1(mtc0_vpecontrol, void, tl) |
Edgar E. Iglesias | 5a25ce9 | 2011-08-29 23:07:34 +0200 | [diff] [blame] | 97 | DEF_HELPER_1(mttc0_vpecontrol, void, tl) |
pbrook | a7812ae | 2008-11-17 14:43:54 +0000 | [diff] [blame] | 98 | DEF_HELPER_1(mtc0_vpeconf0, void, tl) |
Edgar E. Iglesias | 5a25ce9 | 2011-08-29 23:07:34 +0200 | [diff] [blame] | 99 | DEF_HELPER_1(mttc0_vpeconf0, void, tl) |
pbrook | a7812ae | 2008-11-17 14:43:54 +0000 | [diff] [blame] | 100 | DEF_HELPER_1(mtc0_vpeconf1, void, tl) |
| 101 | DEF_HELPER_1(mtc0_yqmask, void, tl) |
| 102 | DEF_HELPER_1(mtc0_vpeopt, void, tl) |
| 103 | DEF_HELPER_1(mtc0_entrylo0, void, tl) |
| 104 | DEF_HELPER_1(mtc0_tcstatus, void, tl) |
| 105 | DEF_HELPER_1(mttc0_tcstatus, void, tl) |
| 106 | DEF_HELPER_1(mtc0_tcbind, void, tl) |
| 107 | DEF_HELPER_1(mttc0_tcbind, void, tl) |
| 108 | DEF_HELPER_1(mtc0_tcrestart, void, tl) |
| 109 | DEF_HELPER_1(mttc0_tcrestart, void, tl) |
| 110 | DEF_HELPER_1(mtc0_tchalt, void, tl) |
| 111 | DEF_HELPER_1(mttc0_tchalt, void, tl) |
| 112 | DEF_HELPER_1(mtc0_tccontext, void, tl) |
| 113 | DEF_HELPER_1(mttc0_tccontext, void, tl) |
| 114 | DEF_HELPER_1(mtc0_tcschedule, void, tl) |
| 115 | DEF_HELPER_1(mttc0_tcschedule, void, tl) |
| 116 | DEF_HELPER_1(mtc0_tcschefback, void, tl) |
| 117 | DEF_HELPER_1(mttc0_tcschefback, void, tl) |
| 118 | DEF_HELPER_1(mtc0_entrylo1, void, tl) |
| 119 | DEF_HELPER_1(mtc0_context, void, tl) |
| 120 | DEF_HELPER_1(mtc0_pagemask, void, tl) |
| 121 | DEF_HELPER_1(mtc0_pagegrain, void, tl) |
| 122 | DEF_HELPER_1(mtc0_wired, void, tl) |
| 123 | DEF_HELPER_1(mtc0_srsconf0, void, tl) |
| 124 | DEF_HELPER_1(mtc0_srsconf1, void, tl) |
| 125 | DEF_HELPER_1(mtc0_srsconf2, void, tl) |
| 126 | DEF_HELPER_1(mtc0_srsconf3, void, tl) |
| 127 | DEF_HELPER_1(mtc0_srsconf4, void, tl) |
| 128 | DEF_HELPER_1(mtc0_hwrena, void, tl) |
| 129 | DEF_HELPER_1(mtc0_count, void, tl) |
| 130 | DEF_HELPER_1(mtc0_entryhi, void, tl) |
| 131 | DEF_HELPER_1(mttc0_entryhi, void, tl) |
| 132 | DEF_HELPER_1(mtc0_compare, void, tl) |
| 133 | DEF_HELPER_1(mtc0_status, void, tl) |
| 134 | DEF_HELPER_1(mttc0_status, void, tl) |
| 135 | DEF_HELPER_1(mtc0_intctl, void, tl) |
| 136 | DEF_HELPER_1(mtc0_srsctl, void, tl) |
| 137 | DEF_HELPER_1(mtc0_cause, void, tl) |
Edgar E. Iglesias | 5a25ce9 | 2011-08-29 23:07:34 +0200 | [diff] [blame] | 138 | DEF_HELPER_1(mttc0_cause, void, tl) |
pbrook | a7812ae | 2008-11-17 14:43:54 +0000 | [diff] [blame] | 139 | DEF_HELPER_1(mtc0_ebase, void, tl) |
Edgar E. Iglesias | 5a25ce9 | 2011-08-29 23:07:34 +0200 | [diff] [blame] | 140 | DEF_HELPER_1(mttc0_ebase, void, tl) |
pbrook | a7812ae | 2008-11-17 14:43:54 +0000 | [diff] [blame] | 141 | DEF_HELPER_1(mtc0_config0, void, tl) |
| 142 | DEF_HELPER_1(mtc0_config2, void, tl) |
Aurelien Jarno | 2a6e32d | 2009-11-22 13:22:54 +0100 | [diff] [blame] | 143 | DEF_HELPER_1(mtc0_lladdr, void, tl) |
pbrook | a7812ae | 2008-11-17 14:43:54 +0000 | [diff] [blame] | 144 | DEF_HELPER_2(mtc0_watchlo, void, tl, i32) |
| 145 | DEF_HELPER_2(mtc0_watchhi, void, tl, i32) |
| 146 | DEF_HELPER_1(mtc0_xcontext, void, tl) |
| 147 | DEF_HELPER_1(mtc0_framemask, void, tl) |
| 148 | DEF_HELPER_1(mtc0_debug, void, tl) |
| 149 | DEF_HELPER_1(mttc0_debug, void, tl) |
| 150 | DEF_HELPER_1(mtc0_performance0, void, tl) |
| 151 | DEF_HELPER_1(mtc0_taglo, void, tl) |
| 152 | DEF_HELPER_1(mtc0_datalo, void, tl) |
| 153 | DEF_HELPER_1(mtc0_taghi, void, tl) |
| 154 | DEF_HELPER_1(mtc0_datahi, void, tl) |
ths | f1aa632 | 2008-06-09 07:13:38 +0000 | [diff] [blame] | 155 | |
| 156 | /* MIPS MT functions */ |
pbrook | a7812ae | 2008-11-17 14:43:54 +0000 | [diff] [blame] | 157 | DEF_HELPER_1(mftgpr, tl, i32); |
| 158 | DEF_HELPER_1(mftlo, tl, i32) |
| 159 | DEF_HELPER_1(mfthi, tl, i32) |
| 160 | DEF_HELPER_1(mftacx, tl, i32) |
| 161 | DEF_HELPER_0(mftdsp, tl) |
| 162 | DEF_HELPER_2(mttgpr, void, tl, i32) |
| 163 | DEF_HELPER_2(mttlo, void, tl, i32) |
| 164 | DEF_HELPER_2(mtthi, void, tl, i32) |
| 165 | DEF_HELPER_2(mttacx, void, tl, i32) |
| 166 | DEF_HELPER_1(mttdsp, void, tl) |
Nathan Froyd | 9ed5726 | 2010-10-29 07:48:46 -0700 | [diff] [blame] | 167 | DEF_HELPER_0(dmt, tl) |
| 168 | DEF_HELPER_0(emt, tl) |
| 169 | DEF_HELPER_0(dvpe, tl) |
| 170 | DEF_HELPER_0(evpe, tl) |
ths | 0eaef5a | 2008-07-23 16:14:22 +0000 | [diff] [blame] | 171 | #endif /* !CONFIG_USER_ONLY */ |
Nathan Froyd | 3c82410 | 2010-06-08 13:29:59 -0700 | [diff] [blame] | 172 | |
| 173 | /* microMIPS functions */ |
| 174 | DEF_HELPER_3(lwm, void, tl, tl, i32); |
| 175 | DEF_HELPER_3(swm, void, tl, tl, i32); |
| 176 | #ifdef TARGET_MIPS64 |
| 177 | DEF_HELPER_3(ldm, void, tl, tl, i32); |
| 178 | DEF_HELPER_3(sdm, void, tl, tl, i32); |
| 179 | #endif |
| 180 | |
pbrook | a7812ae | 2008-11-17 14:43:54 +0000 | [diff] [blame] | 181 | DEF_HELPER_2(fork, void, tl, tl) |
| 182 | DEF_HELPER_1(yield, tl, tl) |
ths | f1aa632 | 2008-06-09 07:13:38 +0000 | [diff] [blame] | 183 | |
| 184 | /* CP1 functions */ |
pbrook | a7812ae | 2008-11-17 14:43:54 +0000 | [diff] [blame] | 185 | DEF_HELPER_1(cfc1, tl, i32) |
| 186 | DEF_HELPER_2(ctc1, void, tl, i32) |
ths | 5d0fc90 | 2008-06-11 15:27:54 +0000 | [diff] [blame] | 187 | |
pbrook | a7812ae | 2008-11-17 14:43:54 +0000 | [diff] [blame] | 188 | DEF_HELPER_1(float_cvtd_s, i64, i32) |
| 189 | DEF_HELPER_1(float_cvtd_w, i64, i32) |
| 190 | DEF_HELPER_1(float_cvtd_l, i64, i64) |
| 191 | DEF_HELPER_1(float_cvtl_d, i64, i64) |
| 192 | DEF_HELPER_1(float_cvtl_s, i64, i32) |
| 193 | DEF_HELPER_1(float_cvtps_pw, i64, i64) |
| 194 | DEF_HELPER_1(float_cvtpw_ps, i64, i64) |
| 195 | DEF_HELPER_1(float_cvts_d, i32, i64) |
| 196 | DEF_HELPER_1(float_cvts_w, i32, i32) |
| 197 | DEF_HELPER_1(float_cvts_l, i32, i64) |
| 198 | DEF_HELPER_1(float_cvts_pl, i32, i32) |
| 199 | DEF_HELPER_1(float_cvts_pu, i32, i32) |
| 200 | DEF_HELPER_1(float_cvtw_s, i32, i32) |
| 201 | DEF_HELPER_1(float_cvtw_d, i32, i64) |
ths | 5d0fc90 | 2008-06-11 15:27:54 +0000 | [diff] [blame] | 202 | |
pbrook | a7812ae | 2008-11-17 14:43:54 +0000 | [diff] [blame] | 203 | DEF_HELPER_2(float_addr_ps, i64, i64, i64) |
| 204 | DEF_HELPER_2(float_mulr_ps, i64, i64, i64) |
ths | 5d0fc90 | 2008-06-11 15:27:54 +0000 | [diff] [blame] | 205 | |
pbrook | a7812ae | 2008-11-17 14:43:54 +0000 | [diff] [blame] | 206 | #define FOP_PROTO(op) \ |
| 207 | DEF_HELPER_1(float_ ## op ## l_s, i64, i32) \ |
| 208 | DEF_HELPER_1(float_ ## op ## l_d, i64, i64) \ |
| 209 | DEF_HELPER_1(float_ ## op ## w_s, i32, i32) \ |
| 210 | DEF_HELPER_1(float_ ## op ## w_d, i32, i64) |
ths | b6d96be | 2008-07-09 11:05:10 +0000 | [diff] [blame] | 211 | FOP_PROTO(round) |
| 212 | FOP_PROTO(trunc) |
| 213 | FOP_PROTO(ceil) |
| 214 | FOP_PROTO(floor) |
| 215 | #undef FOP_PROTO |
| 216 | |
pbrook | a7812ae | 2008-11-17 14:43:54 +0000 | [diff] [blame] | 217 | #define FOP_PROTO(op) \ |
| 218 | DEF_HELPER_1(float_ ## op ## _s, i32, i32) \ |
| 219 | DEF_HELPER_1(float_ ## op ## _d, i64, i64) |
ths | a16336e | 2008-06-19 18:35:02 +0000 | [diff] [blame] | 220 | FOP_PROTO(sqrt) |
ths | 5d0fc90 | 2008-06-11 15:27:54 +0000 | [diff] [blame] | 221 | FOP_PROTO(rsqrt) |
| 222 | FOP_PROTO(recip) |
| 223 | #undef FOP_PROTO |
| 224 | |
pbrook | a7812ae | 2008-11-17 14:43:54 +0000 | [diff] [blame] | 225 | #define FOP_PROTO(op) \ |
| 226 | DEF_HELPER_1(float_ ## op ## _s, i32, i32) \ |
| 227 | DEF_HELPER_1(float_ ## op ## _d, i64, i64) \ |
| 228 | DEF_HELPER_1(float_ ## op ## _ps, i64, i64) |
ths | b6d96be | 2008-07-09 11:05:10 +0000 | [diff] [blame] | 229 | FOP_PROTO(abs) |
| 230 | FOP_PROTO(chs) |
| 231 | FOP_PROTO(recip1) |
| 232 | FOP_PROTO(rsqrt1) |
| 233 | #undef FOP_PROTO |
| 234 | |
pbrook | a7812ae | 2008-11-17 14:43:54 +0000 | [diff] [blame] | 235 | #define FOP_PROTO(op) \ |
| 236 | DEF_HELPER_2(float_ ## op ## _s, i32, i32, i32) \ |
| 237 | DEF_HELPER_2(float_ ## op ## _d, i64, i64, i64) \ |
| 238 | DEF_HELPER_2(float_ ## op ## _ps, i64, i64, i64) |
ths | 5d0fc90 | 2008-06-11 15:27:54 +0000 | [diff] [blame] | 239 | FOP_PROTO(add) |
| 240 | FOP_PROTO(sub) |
| 241 | FOP_PROTO(mul) |
| 242 | FOP_PROTO(div) |
ths | b6d96be | 2008-07-09 11:05:10 +0000 | [diff] [blame] | 243 | FOP_PROTO(recip2) |
| 244 | FOP_PROTO(rsqrt2) |
| 245 | #undef FOP_PROTO |
| 246 | |
pbrook | a7812ae | 2008-11-17 14:43:54 +0000 | [diff] [blame] | 247 | #define FOP_PROTO(op) \ |
| 248 | DEF_HELPER_3(float_ ## op ## _s, i32, i32, i32, i32) \ |
| 249 | DEF_HELPER_3(float_ ## op ## _d, i64, i64, i64, i64) \ |
| 250 | DEF_HELPER_3(float_ ## op ## _ps, i64, i64, i64, i64) |
ths | a16336e | 2008-06-19 18:35:02 +0000 | [diff] [blame] | 251 | FOP_PROTO(muladd) |
| 252 | FOP_PROTO(mulsub) |
| 253 | FOP_PROTO(nmuladd) |
| 254 | FOP_PROTO(nmulsub) |
ths | 5d0fc90 | 2008-06-11 15:27:54 +0000 | [diff] [blame] | 255 | #undef FOP_PROTO |
| 256 | |
pbrook | a7812ae | 2008-11-17 14:43:54 +0000 | [diff] [blame] | 257 | #define FOP_PROTO(op) \ |
| 258 | DEF_HELPER_3(cmp_d_ ## op, void, i64, i64, int) \ |
| 259 | DEF_HELPER_3(cmpabs_d_ ## op, void, i64, i64, int) \ |
| 260 | DEF_HELPER_3(cmp_s_ ## op, void, i32, i32, int) \ |
| 261 | DEF_HELPER_3(cmpabs_s_ ## op, void, i32, i32, int) \ |
| 262 | DEF_HELPER_3(cmp_ps_ ## op, void, i64, i64, int) \ |
| 263 | DEF_HELPER_3(cmpabs_ps_ ## op, void, i64, i64, int) |
ths | 5d0fc90 | 2008-06-11 15:27:54 +0000 | [diff] [blame] | 264 | FOP_PROTO(f) |
| 265 | FOP_PROTO(un) |
| 266 | FOP_PROTO(eq) |
| 267 | FOP_PROTO(ueq) |
| 268 | FOP_PROTO(olt) |
| 269 | FOP_PROTO(ult) |
| 270 | FOP_PROTO(ole) |
| 271 | FOP_PROTO(ule) |
| 272 | FOP_PROTO(sf) |
| 273 | FOP_PROTO(ngle) |
| 274 | FOP_PROTO(seq) |
| 275 | FOP_PROTO(ngl) |
| 276 | FOP_PROTO(lt) |
| 277 | FOP_PROTO(nge) |
| 278 | FOP_PROTO(le) |
| 279 | FOP_PROTO(ngt) |
| 280 | #undef FOP_PROTO |
ths | 08ba796 | 2008-06-12 03:15:13 +0000 | [diff] [blame] | 281 | |
| 282 | /* Special functions */ |
ths | 0eaef5a | 2008-07-23 16:14:22 +0000 | [diff] [blame] | 283 | #ifndef CONFIG_USER_ONLY |
pbrook | a7812ae | 2008-11-17 14:43:54 +0000 | [diff] [blame] | 284 | DEF_HELPER_0(tlbwi, void) |
| 285 | DEF_HELPER_0(tlbwr, void) |
| 286 | DEF_HELPER_0(tlbp, void) |
| 287 | DEF_HELPER_0(tlbr, void) |
| 288 | DEF_HELPER_0(di, tl) |
| 289 | DEF_HELPER_0(ei, tl) |
| 290 | DEF_HELPER_0(eret, void) |
| 291 | DEF_HELPER_0(deret, void) |
ths | 0eaef5a | 2008-07-23 16:14:22 +0000 | [diff] [blame] | 292 | #endif /* !CONFIG_USER_ONLY */ |
pbrook | a7812ae | 2008-11-17 14:43:54 +0000 | [diff] [blame] | 293 | DEF_HELPER_0(rdhwr_cpunum, tl) |
| 294 | DEF_HELPER_0(rdhwr_synci_step, tl) |
| 295 | DEF_HELPER_0(rdhwr_cc, tl) |
| 296 | DEF_HELPER_0(rdhwr_ccres, tl) |
| 297 | DEF_HELPER_1(pmon, void, int) |
| 298 | DEF_HELPER_0(wait, void) |
| 299 | |
| 300 | #include "def-helper.h" |