Statistics
| Branch: | Revision:

root / target-unicore32 / helper.h @ 5e2dafeb

History | View | Annotate | Download (2.1 kB)

1
/*
2
 * Copyright (C) 2010-2011 GUAN Xue-tao
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 version 2 as
6
 * published by the Free Software Foundation.
7
 */
8
#include "def-helper.h"
9

    
10
DEF_HELPER_1(clz, i32, i32)
11
DEF_HELPER_1(clo, i32, i32)
12

    
13
DEF_HELPER_1(exception, void, i32)
14

    
15
DEF_HELPER_2(asr_write, void, i32, i32)
16
DEF_HELPER_0(asr_read, i32)
17

    
18
DEF_HELPER_3(set_cp0, void, env, i32, i32)
19
DEF_HELPER_2(get_cp0, i32, env, i32)
20

    
21
DEF_HELPER_3(set_cp, void, env, i32, i32)
22
DEF_HELPER_2(get_cp, i32, env, i32)
23

    
24
DEF_HELPER_1(get_user_reg, i32, i32)
25
DEF_HELPER_2(set_user_reg, void, i32, i32)
26

    
27
DEF_HELPER_2(add_cc, i32, i32, i32)
28
DEF_HELPER_2(adc_cc, i32, i32, i32)
29
DEF_HELPER_2(sub_cc, i32, i32, i32)
30
DEF_HELPER_2(sbc_cc, i32, i32, i32)
31

    
32
DEF_HELPER_2(shl, i32, i32, i32)
33
DEF_HELPER_2(shr, i32, i32, i32)
34
DEF_HELPER_2(sar, i32, i32, i32)
35
DEF_HELPER_2(shl_cc, i32, i32, i32)
36
DEF_HELPER_2(shr_cc, i32, i32, i32)
37
DEF_HELPER_2(sar_cc, i32, i32, i32)
38
DEF_HELPER_2(ror_cc, i32, i32, i32)
39

    
40
DEF_HELPER_2(get_r29_banked, i32, env, i32)
41
DEF_HELPER_3(set_r29_banked, void, env, i32, i32)
42

    
43
DEF_HELPER_1(ucf64_get_fpscr, i32, env)
44
DEF_HELPER_2(ucf64_set_fpscr, void, env, i32)
45

    
46
DEF_HELPER_3(ucf64_adds, f32, f32, f32, env)
47
DEF_HELPER_3(ucf64_addd, f64, f64, f64, env)
48
DEF_HELPER_3(ucf64_subs, f32, f32, f32, env)
49
DEF_HELPER_3(ucf64_subd, f64, f64, f64, env)
50
DEF_HELPER_3(ucf64_muls, f32, f32, f32, env)
51
DEF_HELPER_3(ucf64_muld, f64, f64, f64, env)
52
DEF_HELPER_3(ucf64_divs, f32, f32, f32, env)
53
DEF_HELPER_3(ucf64_divd, f64, f64, f64, env)
54
DEF_HELPER_1(ucf64_negs, f32, f32)
55
DEF_HELPER_1(ucf64_negd, f64, f64)
56
DEF_HELPER_1(ucf64_abss, f32, f32)
57
DEF_HELPER_1(ucf64_absd, f64, f64)
58
DEF_HELPER_4(ucf64_cmps, void, f32, f32, i32, env)
59
DEF_HELPER_4(ucf64_cmpd, void, f64, f64, i32, env)
60

    
61
DEF_HELPER_2(ucf64_sf2df, f64, f32, env)
62
DEF_HELPER_2(ucf64_df2sf, f32, f64, env)
63

    
64
DEF_HELPER_2(ucf64_si2sf, f32, f32, env)
65
DEF_HELPER_2(ucf64_si2df, f64, f32, env)
66

    
67
DEF_HELPER_2(ucf64_sf2si, f32, f32, env)
68
DEF_HELPER_2(ucf64_df2si, f32, f64, env)
69

    
70
#include "def-helper.h"