kvm: libkvm: substitute is_allocated_mem with more general is_containing_region
[qemu-kvm/fedora.git] / target-alpha / op_template.h
blobf2f4b1cf671edc821a44b205cd8e95933439d981
1 /*
2 * Alpha emulation cpu micro-operations templates 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 /* Optimized constant loads */
22 #if REG < 3
24 #if !defined(HOST_SPARC) && !defined(HOST_SPARC64)
25 void OPPROTO glue(op_reset_FT, REG) (void)
27 glue(FT, REG) = 0;
28 RETURN();
30 #else
31 void OPPROTO glue(op_reset_FT, REG) (void)
33 glue(helper_reset_FT, REG)();
34 RETURN();
36 #endif
38 #endif /* REG < 3 */
40 #if REG < 31
41 /* floating point registers moves */
42 void OPPROTO glue(op_load_FT0_fir, REG) (void)
44 FT0 = env->fir[REG];
45 RETURN();
48 void OPPROTO glue(op_load_FT1_fir, REG) (void)
50 FT1 = env->fir[REG];
51 RETURN();
54 void OPPROTO glue(op_load_FT2_fir, REG) (void)
56 FT2 = env->fir[REG];
57 RETURN();
60 void OPPROTO glue(op_store_FT0_fir, REG) (void)
62 env->fir[REG] = FT0;
63 RETURN();
66 void OPPROTO glue(op_store_FT1_fir, REG) (void)
68 env->fir[REG] = FT1;
69 RETURN();
72 void OPPROTO glue(op_store_FT2_fir, REG) (void)
74 env->fir[REG] = FT2;
75 RETURN();
78 void OPPROTO glue(op_cmov_fir, REG) (void)
80 helper_cmov_fir(REG);
81 RETURN();
83 #endif /* REG < 31 */
85 #undef REG