2 * Alpha emulation cpu micro-operations helpers definitions for qemu.
4 * Copyright (c) 2007 Jocelyn Mayer
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.
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.
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
21 void helper_call_pal (uint32_t palcode);
22 void helper_load_fpcr (void);
23 void helper_store_fpcr (void);
24 void helper_addqv (void);
25 void helper_addlv (void);
26 void helper_subqv (void);
27 void helper_sublv (void);
28 void helper_mullv (void);
29 void helper_mulqv (void);
30 void helper_cmpbge (void);
31 void helper_cmov_fir (int freg);
33 double helper_ldff_raw (target_ulong ea);
34 void helper_stff_raw (target_ulong ea, double op);
35 double helper_ldfg_raw (target_ulong ea);
36 void helper_stfg_raw (target_ulong ea, double op);
37 #if !defined(CONFIG_USER_ONLY)
38 double helper_ldff_user (target_ulong ea);
39 void helper_stff_user (target_ulong ea, double op);
40 double helper_ldff_kernel (target_ulong ea);
41 void helper_stff_kernel (target_ulong ea, double op);
42 double helper_ldff_data (target_ulong ea);
43 void helper_stff_data (target_ulong ea, double op);
44 double helper_ldfg_user (target_ulong ea);
45 void helper_stfg_user (target_ulong ea, double op);
46 double helper_ldfg_kernel (target_ulong ea);
47 void helper_stfg_kernel (target_ulong ea, double op);
48 double helper_ldfg_data (target_ulong ea);
49 void helper_stfg_data (target_ulong ea, double op);
52 void helper_sqrts (void);
53 void helper_cpys (void);
54 void helper_cpysn (void);
55 void helper_cpyse (void);
56 void helper_itofs (void);
57 void helper_ftois (void);
59 void helper_sqrtt (void);
60 void helper_cmptun (void);
61 void helper_cmpteq (void);
62 void helper_cmptle (void);
63 void helper_cmptlt (void);
64 void helper_itoft (void);
65 void helper_ftoit (void);
67 void helper_addf (void);
68 void helper_subf (void);
69 void helper_mulf (void);
70 void helper_divf (void);
71 void helper_sqrtf (void);
72 void helper_cmpfeq (void);
73 void helper_cmpfne (void);
74 void helper_cmpflt (void);
75 void helper_cmpfle (void);
76 void helper_cmpfgt (void);
77 void helper_cmpfge (void);
78 void helper_itoff (void);
80 void helper_addg (void);
81 void helper_subg (void);
82 void helper_mulg (void);
83 void helper_divg (void);
84 void helper_sqrtg (void);
85 void helper_cmpgeq (void);
86 void helper_cmpglt (void);
87 void helper_cmpgle (void);
89 void helper_cvtqs (void);
90 void helper_cvttq (void);
91 void helper_cvtqt (void);
92 void helper_cvtqf (void);
93 void helper_cvtgf (void);
94 void helper_cvtgd (void);
95 void helper_cvtgq (void);
96 void helper_cvtqg (void);
97 void helper_cvtdg (void);
98 void helper_cvtlq (void);
99 void helper_cvtql (void);
100 void helper_cvtqlv (void);
101 void helper_cvtqlsv (void);
103 void helper_mfpr (int iprn);
104 void helper_mtpr (int iprn);
105 void helper_ld_phys_to_virt (void);
106 void helper_st_phys_to_virt (void);
107 void helper_tb_flush (void);
109 #if defined(HOST_SPARC) || defined(HOST_SPARC64)
110 void helper_reset_FT0 (void);
111 void helper_reset_FT1 (void);
112 void helper_reset_FT2 (void);