target/arm: Reorganize PMCCNTR accesses
[qemu/ar7.git] / target / unicore32 / helper.h
bloba4a5d45d1d97a29db5bd7b794ebe6411ae44f00f
1 /*
2 * Copyright (C) 2010-2012 Guan Xuetao
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation, or (at your option) any
7 * later version. See the COPYING file in the top-level directory.
8 */
10 #ifndef CONFIG_USER_ONLY
11 DEF_HELPER_4(cp0_set, void, env, i32, i32, i32)
12 DEF_HELPER_3(cp0_get, i32, env, i32, i32)
13 DEF_HELPER_1(cp1_putc, void, i32)
14 #endif
16 DEF_HELPER_2(exception, void, env, i32)
18 DEF_HELPER_3(asr_write, void, env, i32, i32)
19 DEF_HELPER_1(asr_read, i32, env)
21 DEF_HELPER_2(get_user_reg, i32, env, i32)
22 DEF_HELPER_3(set_user_reg, void, env, i32, i32)
24 DEF_HELPER_3(add_cc, i32, env, i32, i32)
25 DEF_HELPER_3(adc_cc, i32, env, i32, i32)
26 DEF_HELPER_3(sub_cc, i32, env, i32, i32)
27 DEF_HELPER_3(sbc_cc, i32, env, i32, i32)
29 DEF_HELPER_2(shl, i32, i32, i32)
30 DEF_HELPER_2(shr, i32, i32, i32)
31 DEF_HELPER_2(sar, i32, i32, i32)
32 DEF_HELPER_3(shl_cc, i32, env, i32, i32)
33 DEF_HELPER_3(shr_cc, i32, env, i32, i32)
34 DEF_HELPER_3(sar_cc, i32, env, i32, i32)
35 DEF_HELPER_3(ror_cc, i32, env, i32, i32)
37 DEF_HELPER_1(ucf64_get_fpscr, i32, env)
38 DEF_HELPER_2(ucf64_set_fpscr, void, env, i32)
40 DEF_HELPER_3(ucf64_adds, f32, f32, f32, env)
41 DEF_HELPER_3(ucf64_addd, f64, f64, f64, env)
42 DEF_HELPER_3(ucf64_subs, f32, f32, f32, env)
43 DEF_HELPER_3(ucf64_subd, f64, f64, f64, env)
44 DEF_HELPER_3(ucf64_muls, f32, f32, f32, env)
45 DEF_HELPER_3(ucf64_muld, f64, f64, f64, env)
46 DEF_HELPER_3(ucf64_divs, f32, f32, f32, env)
47 DEF_HELPER_3(ucf64_divd, f64, f64, f64, env)
48 DEF_HELPER_1(ucf64_negs, f32, f32)
49 DEF_HELPER_1(ucf64_negd, f64, f64)
50 DEF_HELPER_1(ucf64_abss, f32, f32)
51 DEF_HELPER_1(ucf64_absd, f64, f64)
52 DEF_HELPER_4(ucf64_cmps, void, f32, f32, i32, env)
53 DEF_HELPER_4(ucf64_cmpd, void, f64, f64, i32, env)
55 DEF_HELPER_2(ucf64_sf2df, f64, f32, env)
56 DEF_HELPER_2(ucf64_df2sf, f32, f64, env)
58 DEF_HELPER_2(ucf64_si2sf, f32, f32, env)
59 DEF_HELPER_2(ucf64_si2df, f64, f32, env)
61 DEF_HELPER_2(ucf64_sf2si, f32, f32, env)
62 DEF_HELPER_2(ucf64_df2si, f32, f64, env)