]> git.proxmox.com Git - mirror_qemu.git/blame - target/hexagon/helper.h
target/arm: Rewrite check_s2_mmu_setup
[mirror_qemu.git] / target / hexagon / helper.h
CommitLineData
b5ed786f
TS
1/*
2 * Copyright(c) 2019-2021 Qualcomm Innovation Center, Inc. All Rights Reserved.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, see <http://www.gnu.org/licenses/>.
16 */
17
18#include "internal.h"
19#include "helper_protos_generated.h.inc"
20
21DEF_HELPER_FLAGS_2(raise_exception, TCG_CALL_NO_RETURN, noreturn, env, i32)
b5ed786f
TS
22DEF_HELPER_1(debug_start_packet, void, env)
23DEF_HELPER_FLAGS_3(debug_check_store_width, TCG_CALL_NO_WG, void, env, int, int)
24DEF_HELPER_FLAGS_3(debug_commit_end, TCG_CALL_NO_WG, void, env, int, int)
b5ed786f 25DEF_HELPER_2(commit_store, void, env, int)
33e9ed11
TS
26DEF_HELPER_3(gather_store, void, env, i32, int)
27DEF_HELPER_1(commit_hvx_stores, void, env)
b5ed786f 28DEF_HELPER_FLAGS_4(fcircadd, TCG_CALL_NO_RWG_SE, s32, s32, s32, s32, s32)
af7f1821 29DEF_HELPER_FLAGS_1(fbrev, TCG_CALL_NO_RWG_SE, i32, i32)
d934c16d 30DEF_HELPER_3(sfrecipa, i64, env, f32, f32)
dd8705bd 31DEF_HELPER_2(sfinvsqrta, i64, env, f32)
da74cd2d
TS
32DEF_HELPER_4(vacsh_val, s64, env, s64, s64, s64)
33DEF_HELPER_FLAGS_4(vacsh_pred, TCG_CALL_NO_RWG_SE, s32, env, s64, s64, s64)
b5ed786f
TS
34
35/* Floating point */
36DEF_HELPER_2(conv_sf2df, f64, env, f32)
37DEF_HELPER_2(conv_df2sf, f32, env, f64)
38DEF_HELPER_2(conv_uw2sf, f32, env, s32)
39DEF_HELPER_2(conv_uw2df, f64, env, s32)
40DEF_HELPER_2(conv_w2sf, f32, env, s32)
41DEF_HELPER_2(conv_w2df, f64, env, s32)
42DEF_HELPER_2(conv_ud2sf, f32, env, s64)
43DEF_HELPER_2(conv_ud2df, f64, env, s64)
44DEF_HELPER_2(conv_d2sf, f32, env, s64)
45DEF_HELPER_2(conv_d2df, f64, env, s64)
b3f37abd 46DEF_HELPER_2(conv_sf2uw, i32, env, f32)
b5ed786f 47DEF_HELPER_2(conv_sf2w, s32, env, f32)
b3f37abd 48DEF_HELPER_2(conv_sf2ud, i64, env, f32)
b5ed786f 49DEF_HELPER_2(conv_sf2d, s64, env, f32)
b3f37abd 50DEF_HELPER_2(conv_df2uw, i32, env, f64)
b5ed786f 51DEF_HELPER_2(conv_df2w, s32, env, f64)
b3f37abd 52DEF_HELPER_2(conv_df2ud, i64, env, f64)
b5ed786f 53DEF_HELPER_2(conv_df2d, s64, env, f64)
b3f37abd 54DEF_HELPER_2(conv_sf2uw_chop, i32, env, f32)
b5ed786f 55DEF_HELPER_2(conv_sf2w_chop, s32, env, f32)
b3f37abd 56DEF_HELPER_2(conv_sf2ud_chop, i64, env, f32)
b5ed786f 57DEF_HELPER_2(conv_sf2d_chop, s64, env, f32)
b3f37abd 58DEF_HELPER_2(conv_df2uw_chop, i32, env, f64)
b5ed786f 59DEF_HELPER_2(conv_df2w_chop, s32, env, f64)
b3f37abd 60DEF_HELPER_2(conv_df2ud_chop, i64, env, f64)
b5ed786f
TS
61DEF_HELPER_2(conv_df2d_chop, s64, env, f64)
62DEF_HELPER_3(sfadd, f32, env, f32, f32)
63DEF_HELPER_3(sfsub, f32, env, f32, f32)
64DEF_HELPER_3(sfcmpeq, s32, env, f32, f32)
65DEF_HELPER_3(sfcmpgt, s32, env, f32, f32)
66DEF_HELPER_3(sfcmpge, s32, env, f32, f32)
67DEF_HELPER_3(sfcmpuo, s32, env, f32, f32)
68DEF_HELPER_3(sfmax, f32, env, f32, f32)
69DEF_HELPER_3(sfmin, f32, env, f32, f32)
70DEF_HELPER_3(sfclass, s32, env, f32, s32)
71DEF_HELPER_3(sffixupn, f32, env, f32, f32)
72DEF_HELPER_3(sffixupd, f32, env, f32, f32)
73DEF_HELPER_2(sffixupr, f32, env, f32)
74
75DEF_HELPER_3(dfadd, f64, env, f64, f64)
76DEF_HELPER_3(dfsub, f64, env, f64, f64)
77DEF_HELPER_3(dfmax, f64, env, f64, f64)
78DEF_HELPER_3(dfmin, f64, env, f64, f64)
79DEF_HELPER_3(dfcmpeq, s32, env, f64, f64)
80DEF_HELPER_3(dfcmpgt, s32, env, f64, f64)
81DEF_HELPER_3(dfcmpge, s32, env, f64, f64)
82DEF_HELPER_3(dfcmpuo, s32, env, f64, f64)
83DEF_HELPER_3(dfclass, s32, env, f64, s32)
84
85DEF_HELPER_3(sfmpy, f32, env, f32, f32)
86DEF_HELPER_4(sffma, f32, env, f32, f32, f32)
87DEF_HELPER_5(sffma_sc, f32, env, f32, f32, f32, f32)
88DEF_HELPER_4(sffms, f32, env, f32, f32, f32)
89DEF_HELPER_4(sffma_lib, f32, env, f32, f32, f32)
90DEF_HELPER_4(sffms_lib, f32, env, f32, f32, f32)
91
92DEF_HELPER_3(dfmpyfix, f64, env, f64, f64)
93DEF_HELPER_4(dfmpyhh, f64, env, f64, f64, f64)
c23b5764 94
33e9ed11
TS
95/* Histogram instructions */
96DEF_HELPER_1(vhist, void, env)
97DEF_HELPER_1(vhistq, void, env)
98DEF_HELPER_1(vwhist256, void, env)
99DEF_HELPER_1(vwhist256q, void, env)
100DEF_HELPER_1(vwhist256_sat, void, env)
101DEF_HELPER_1(vwhist256q_sat, void, env)
102DEF_HELPER_1(vwhist128, void, env)
103DEF_HELPER_1(vwhist128q, void, env)
104DEF_HELPER_2(vwhist128m, void, env, s32)
105DEF_HELPER_2(vwhist128qm, void, env, s32)
106
15fc6bad 107DEF_HELPER_4(probe_noshuf_load, void, env, i32, int, int)
c23b5764 108DEF_HELPER_2(probe_pkt_scalar_store_s0, void, env, int)
33e9ed11
TS
109DEF_HELPER_2(probe_hvx_stores, void, env, int)
110DEF_HELPER_3(probe_pkt_scalar_hvx_stores, void, env, int, int)