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