root / target-alpha / op_helper.h @ 86cc1ce0
History | View | Annotate | Download (4.2 kB)
1 | 4c9649a9 | j_mayer | /*
|
---|---|---|---|
2 | 4c9649a9 | j_mayer | * Alpha emulation cpu micro-operations helpers definitions for qemu.
|
3 | 4c9649a9 | j_mayer | *
|
4 | 4c9649a9 | j_mayer | * Copyright (c) 2007 Jocelyn Mayer
|
5 | 4c9649a9 | j_mayer | *
|
6 | 4c9649a9 | j_mayer | * This library is free software; you can redistribute it and/or
|
7 | 4c9649a9 | j_mayer | * modify it under the terms of the GNU Lesser General Public
|
8 | 4c9649a9 | j_mayer | * License as published by the Free Software Foundation; either
|
9 | 4c9649a9 | j_mayer | * version 2 of the License, or (at your option) any later version.
|
10 | 4c9649a9 | j_mayer | *
|
11 | 4c9649a9 | j_mayer | * This library is distributed in the hope that it will be useful,
|
12 | 4c9649a9 | j_mayer | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13 | 4c9649a9 | j_mayer | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
14 | 4c9649a9 | j_mayer | * Lesser General Public License for more details.
|
15 | 4c9649a9 | j_mayer | *
|
16 | 4c9649a9 | j_mayer | * You should have received a copy of the GNU Lesser General Public
|
17 | 4c9649a9 | j_mayer | * License along with this library; if not, write to the Free Software
|
18 | 4c9649a9 | j_mayer | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
19 | 4c9649a9 | j_mayer | */
|
20 | 4c9649a9 | j_mayer | |
21 | 4c9649a9 | j_mayer | void helper_call_pal (uint32_t palcode);
|
22 | 4c9649a9 | j_mayer | void helper_excp (uint32_t excp, uint32_t error);
|
23 | 4c9649a9 | j_mayer | void helper_amask (void); |
24 | 4c9649a9 | j_mayer | void helper_load_pcc (void); |
25 | 4c9649a9 | j_mayer | void helper_load_implver (void); |
26 | 4c9649a9 | j_mayer | void helper_load_fpcr (void); |
27 | 4c9649a9 | j_mayer | void helper_store_fpcr (void); |
28 | 4c9649a9 | j_mayer | void helper_load_irf (void); |
29 | 4c9649a9 | j_mayer | void helper_set_irf (void); |
30 | 4c9649a9 | j_mayer | void helper_clear_irf (void); |
31 | 4c9649a9 | j_mayer | void helper_addqv (void); |
32 | 4c9649a9 | j_mayer | void helper_addlv (void); |
33 | 4c9649a9 | j_mayer | void helper_subqv (void); |
34 | 4c9649a9 | j_mayer | void helper_sublv (void); |
35 | 4c9649a9 | j_mayer | void helper_mullv (void); |
36 | 4c9649a9 | j_mayer | void helper_mulqv (void); |
37 | 4c9649a9 | j_mayer | void helper_umulh (void); |
38 | 4c9649a9 | j_mayer | void helper_ctpop (void); |
39 | 4c9649a9 | j_mayer | void helper_ctlz (void); |
40 | 4c9649a9 | j_mayer | void helper_cttz (void); |
41 | 4c9649a9 | j_mayer | void helper_mskbl (void); |
42 | 4c9649a9 | j_mayer | void helper_extbl (void); |
43 | 4c9649a9 | j_mayer | void helper_insbl (void); |
44 | 4c9649a9 | j_mayer | void helper_mskwl (void); |
45 | 4c9649a9 | j_mayer | void helper_extwl (void); |
46 | 4c9649a9 | j_mayer | void helper_inswl (void); |
47 | 4c9649a9 | j_mayer | void helper_mskll (void); |
48 | 4c9649a9 | j_mayer | void helper_extll (void); |
49 | 4c9649a9 | j_mayer | void helper_insll (void); |
50 | 4c9649a9 | j_mayer | void helper_zap (void); |
51 | 4c9649a9 | j_mayer | void helper_zapnot (void); |
52 | 4c9649a9 | j_mayer | void helper_mskql (void); |
53 | 4c9649a9 | j_mayer | void helper_extql (void); |
54 | 4c9649a9 | j_mayer | void helper_insql (void); |
55 | 4c9649a9 | j_mayer | void helper_mskwh (void); |
56 | 4c9649a9 | j_mayer | void helper_inswh (void); |
57 | 4c9649a9 | j_mayer | void helper_extwh (void); |
58 | 4c9649a9 | j_mayer | void helper_msklh (void); |
59 | 4c9649a9 | j_mayer | void helper_inslh (void); |
60 | 4c9649a9 | j_mayer | void helper_extlh (void); |
61 | 4c9649a9 | j_mayer | void helper_mskqh (void); |
62 | 4c9649a9 | j_mayer | void helper_insqh (void); |
63 | 4c9649a9 | j_mayer | void helper_extqh (void); |
64 | 4c9649a9 | j_mayer | void helper_cmpbge (void); |
65 | 4c9649a9 | j_mayer | void helper_cmov_fir (int freg); |
66 | 4c9649a9 | j_mayer | |
67 | 4c9649a9 | j_mayer | double helper_ldff_raw (target_ulong ea);
|
68 | 4c9649a9 | j_mayer | void helper_stff_raw (target_ulong ea, double op); |
69 | 4c9649a9 | j_mayer | double helper_ldfg_raw (target_ulong ea);
|
70 | 4c9649a9 | j_mayer | void helper_stfg_raw (target_ulong ea, double op); |
71 | 4c9649a9 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
72 | 4c9649a9 | j_mayer | double helper_ldff_user (target_ulong ea);
|
73 | 4c9649a9 | j_mayer | void helper_stff_user (target_ulong ea, double op); |
74 | 4c9649a9 | j_mayer | double helper_ldff_kernel (target_ulong ea);
|
75 | 4c9649a9 | j_mayer | void helper_stff_kernel (target_ulong ea, double op); |
76 | 4c9649a9 | j_mayer | double helper_ldff_data (target_ulong ea);
|
77 | 4c9649a9 | j_mayer | void helper_stff_data (target_ulong ea, double op); |
78 | 4c9649a9 | j_mayer | double helper_ldfg_user (target_ulong ea);
|
79 | 4c9649a9 | j_mayer | void helper_stfg_user (target_ulong ea, double op); |
80 | 4c9649a9 | j_mayer | double helper_ldfg_kernel (target_ulong ea);
|
81 | 4c9649a9 | j_mayer | void helper_stfg_kernel (target_ulong ea, double op); |
82 | 4c9649a9 | j_mayer | double helper_ldfg_data (target_ulong ea);
|
83 | 4c9649a9 | j_mayer | void helper_stfg_data (target_ulong ea, double op); |
84 | 4c9649a9 | j_mayer | #endif
|
85 | 4c9649a9 | j_mayer | |
86 | 4c9649a9 | j_mayer | void helper_sqrts (void); |
87 | 4c9649a9 | j_mayer | void helper_cpys (void); |
88 | 4c9649a9 | j_mayer | void helper_cpysn (void); |
89 | 4c9649a9 | j_mayer | void helper_cpyse (void); |
90 | 4c9649a9 | j_mayer | void helper_itofs (void); |
91 | 4c9649a9 | j_mayer | void helper_ftois (void); |
92 | 4c9649a9 | j_mayer | |
93 | 4c9649a9 | j_mayer | void helper_sqrtt (void); |
94 | 4c9649a9 | j_mayer | void helper_cmptun (void); |
95 | 4c9649a9 | j_mayer | void helper_cmpteq (void); |
96 | 4c9649a9 | j_mayer | void helper_cmptle (void); |
97 | 4c9649a9 | j_mayer | void helper_cmptlt (void); |
98 | 4c9649a9 | j_mayer | void helper_itoft (void); |
99 | 4c9649a9 | j_mayer | void helper_ftoit (void); |
100 | 4c9649a9 | j_mayer | |
101 | 4c9649a9 | j_mayer | void helper_addf (void); |
102 | 4c9649a9 | j_mayer | void helper_subf (void); |
103 | 4c9649a9 | j_mayer | void helper_mulf (void); |
104 | 4c9649a9 | j_mayer | void helper_divf (void); |
105 | 4c9649a9 | j_mayer | void helper_sqrtf (void); |
106 | 4c9649a9 | j_mayer | void helper_cmpfeq (void); |
107 | 4c9649a9 | j_mayer | void helper_cmpfne (void); |
108 | 4c9649a9 | j_mayer | void helper_cmpflt (void); |
109 | 4c9649a9 | j_mayer | void helper_cmpfle (void); |
110 | 4c9649a9 | j_mayer | void helper_cmpfgt (void); |
111 | 4c9649a9 | j_mayer | void helper_cmpfge (void); |
112 | 4c9649a9 | j_mayer | void helper_itoff (void); |
113 | 4c9649a9 | j_mayer | |
114 | 4c9649a9 | j_mayer | void helper_addg (void); |
115 | 4c9649a9 | j_mayer | void helper_subg (void); |
116 | 4c9649a9 | j_mayer | void helper_mulg (void); |
117 | 4c9649a9 | j_mayer | void helper_divg (void); |
118 | 4c9649a9 | j_mayer | void helper_sqrtg (void); |
119 | 4c9649a9 | j_mayer | void helper_cmpgeq (void); |
120 | 4c9649a9 | j_mayer | void helper_cmpglt (void); |
121 | 4c9649a9 | j_mayer | void helper_cmpgle (void); |
122 | 4c9649a9 | j_mayer | |
123 | 4c9649a9 | j_mayer | void helper_cvtqs (void); |
124 | 4c9649a9 | j_mayer | void helper_cvttq (void); |
125 | 4c9649a9 | j_mayer | void helper_cvtqt (void); |
126 | 4c9649a9 | j_mayer | void helper_cvtqf (void); |
127 | 4c9649a9 | j_mayer | void helper_cvtgf (void); |
128 | 4c9649a9 | j_mayer | void helper_cvtgd (void); |
129 | 4c9649a9 | j_mayer | void helper_cvtgq (void); |
130 | 4c9649a9 | j_mayer | void helper_cvtqg (void); |
131 | 4c9649a9 | j_mayer | void helper_cvtdg (void); |
132 | 4c9649a9 | j_mayer | void helper_cvtlq (void); |
133 | 4c9649a9 | j_mayer | void helper_cvtql (void); |
134 | 4c9649a9 | j_mayer | void helper_cvtqlv (void); |
135 | 4c9649a9 | j_mayer | void helper_cvtqlsv (void); |
136 | 4c9649a9 | j_mayer | |
137 | 4c9649a9 | j_mayer | void helper_mfpr (int iprn); |
138 | 4c9649a9 | j_mayer | void helper_mtpr (int iprn); |
139 | 4c9649a9 | j_mayer | void helper_ld_phys_to_virt (void); |
140 | 4c9649a9 | j_mayer | void helper_st_phys_to_virt (void); |
141 | 4c9649a9 | j_mayer | void helper_tb_flush (void); |