xref: /openbmc/qemu/target/xtensa/helper.h (revision 7f6c3d1a)
1 DEF_HELPER_2(exception, noreturn, env, i32)
2 DEF_HELPER_3(exception_cause, noreturn, env, i32, i32)
3 DEF_HELPER_4(exception_cause_vaddr, noreturn, env, i32, i32, i32)
4 DEF_HELPER_3(debug_exception, noreturn, env, i32, i32)
5 
6 DEF_HELPER_1(sync_windowbase, void, env)
7 DEF_HELPER_4(entry, void, env, i32, i32, i32)
8 DEF_HELPER_2(test_ill_retw, void, env, i32)
9 DEF_HELPER_2(test_underflow_retw, void, env, i32)
10 DEF_HELPER_2(retw, void, env, i32)
11 DEF_HELPER_3(window_check, noreturn, env, i32, i32)
12 DEF_HELPER_1(restore_owb, void, env)
13 DEF_HELPER_2(movsp, void, env, i32)
14 #ifndef CONFIG_USER_ONLY
15 DEF_HELPER_1(simcall, void, env)
16 #endif
17 
18 #ifndef CONFIG_USER_ONLY
19 DEF_HELPER_3(waiti, void, env, i32, i32)
20 DEF_HELPER_1(update_ccount, void, env)
21 DEF_HELPER_2(wsr_ccount, void, env, i32)
22 DEF_HELPER_2(update_ccompare, void, env, i32)
23 DEF_HELPER_1(check_interrupts, void, env)
24 DEF_HELPER_2(intset, void, env, i32)
25 DEF_HELPER_2(intclear, void, env, i32)
26 DEF_HELPER_3(check_atomctl, void, env, i32, i32)
27 DEF_HELPER_4(check_exclusive, void, env, i32, i32, i32)
28 DEF_HELPER_2(wsr_memctl, void, env, i32)
29 
30 DEF_HELPER_2(itlb_hit_test, void, env, i32)
31 DEF_HELPER_2(wsr_rasid, void, env, i32)
32 DEF_HELPER_FLAGS_3(rtlb0, TCG_CALL_NO_RWG_SE, i32, env, i32, i32)
33 DEF_HELPER_FLAGS_3(rtlb1, TCG_CALL_NO_RWG_SE, i32, env, i32, i32)
34 DEF_HELPER_3(itlb, void, env, i32, i32)
35 DEF_HELPER_3(ptlb, i32, env, i32, i32)
36 DEF_HELPER_4(wtlb, void, env, i32, i32, i32)
37 DEF_HELPER_2(wsr_mpuenb, void, env, i32)
38 DEF_HELPER_3(wptlb, void, env, i32, i32)
39 DEF_HELPER_FLAGS_2(rptlb0, TCG_CALL_NO_RWG_SE, i32, env, i32)
40 DEF_HELPER_FLAGS_2(rptlb1, TCG_CALL_NO_RWG_SE, i32, env, i32)
41 DEF_HELPER_2(pptlb, i32, env, i32)
42 
43 DEF_HELPER_2(wsr_ibreakenable, void, env, i32)
44 DEF_HELPER_3(wsr_ibreaka, void, env, i32, i32)
45 DEF_HELPER_3(wsr_dbreaka, void, env, i32, i32)
46 DEF_HELPER_3(wsr_dbreakc, void, env, i32, i32)
47 #endif
48 
49 DEF_HELPER_2(wur_fpu2k_fcr, void, env, i32)
50 DEF_HELPER_FLAGS_1(abs_s, TCG_CALL_NO_RWG_SE, f32, f32)
51 DEF_HELPER_FLAGS_1(neg_s, TCG_CALL_NO_RWG_SE, f32, f32)
52 DEF_HELPER_3(fpu2k_add_s, f32, env, f32, f32)
53 DEF_HELPER_3(fpu2k_sub_s, f32, env, f32, f32)
54 DEF_HELPER_3(fpu2k_mul_s, f32, env, f32, f32)
55 DEF_HELPER_4(fpu2k_madd_s, f32, env, f32, f32, f32)
56 DEF_HELPER_4(fpu2k_msub_s, f32, env, f32, f32, f32)
57 DEF_HELPER_4(ftoi_s, i32, env, f32, i32, i32)
58 DEF_HELPER_4(ftoui_s, i32, env, f32, i32, i32)
59 DEF_HELPER_3(itof_s, f32, env, i32, i32)
60 DEF_HELPER_3(uitof_s, f32, env, i32, i32)
61 DEF_HELPER_2(cvtd_s, f64, env, f32)
62 
63 DEF_HELPER_3(un_s,  i32, env, f32, f32)
64 DEF_HELPER_3(oeq_s, i32, env, f32, f32)
65 DEF_HELPER_3(ueq_s, i32, env, f32, f32)
66 DEF_HELPER_3(olt_s, i32, env, f32, f32)
67 DEF_HELPER_3(ult_s, i32, env, f32, f32)
68 DEF_HELPER_3(ole_s, i32, env, f32, f32)
69 DEF_HELPER_3(ule_s, i32, env, f32, f32)
70 
71 DEF_HELPER_2(wur_fpu_fcr, void, env, i32)
72 DEF_HELPER_1(rur_fpu_fsr, i32, env)
73 DEF_HELPER_2(wur_fpu_fsr, void, env, i32)
74 DEF_HELPER_FLAGS_1(abs_d, TCG_CALL_NO_RWG_SE, f64, f64)
75 DEF_HELPER_FLAGS_1(neg_d, TCG_CALL_NO_RWG_SE, f64, f64)
76 DEF_HELPER_3(add_d, f64, env, f64, f64)
77 DEF_HELPER_3(add_s, f32, env, f32, f32)
78 DEF_HELPER_3(sub_d, f64, env, f64, f64)
79 DEF_HELPER_3(sub_s, f32, env, f32, f32)
80 DEF_HELPER_3(mul_d, f64, env, f64, f64)
81 DEF_HELPER_3(mul_s, f32, env, f32, f32)
82 DEF_HELPER_4(madd_d, f64, env, f64, f64, f64)
83 DEF_HELPER_4(madd_s, f32, env, f32, f32, f32)
84 DEF_HELPER_4(msub_d, f64, env, f64, f64, f64)
85 DEF_HELPER_4(msub_s, f32, env, f32, f32, f32)
86 DEF_HELPER_3(mkdadj_d, f64, env, f64, f64)
87 DEF_HELPER_3(mkdadj_s, f32, env, f32, f32)
88 DEF_HELPER_2(mksadj_d, f64, env, f64)
89 DEF_HELPER_2(mksadj_s, f32, env, f32)
90 DEF_HELPER_4(ftoi_d, i32, env, f64, i32, i32)
91 DEF_HELPER_4(ftoui_d, i32, env, f64, i32, i32)
92 DEF_HELPER_3(itof_d, f64, env, i32, i32)
93 DEF_HELPER_3(uitof_d, f64, env, i32, i32)
94 DEF_HELPER_2(cvts_d, f32, env, f64)
95 
96 DEF_HELPER_3(un_d,  i32, env, f64, f64)
97 DEF_HELPER_3(oeq_d, i32, env, f64, f64)
98 DEF_HELPER_3(ueq_d, i32, env, f64, f64)
99 DEF_HELPER_3(olt_d, i32, env, f64, f64)
100 DEF_HELPER_3(ult_d, i32, env, f64, f64)
101 DEF_HELPER_3(ole_d, i32, env, f64, f64)
102 DEF_HELPER_3(ule_d, i32, env, f64, f64)
103 
104 DEF_HELPER_2(rer, i32, env, i32)
105 DEF_HELPER_3(wer, void, env, i32, i32)
106