kvm: external module: workqueue compatibility
[qemu-kvm/fedora.git] / target-sh4 / op_mem.c
blobb59871c20685035e23cfd410fb42d54ec96e8573
1 /*
2 * SH4 emulation
4 * Copyright (c) 2005 Samuel Tardieu
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
20 void glue(op_ldb_T0_T0, MEMSUFFIX) (void) {
21 T0 = glue(ldsb, MEMSUFFIX) (T0);
22 RETURN();
25 void glue(op_ldub_T0_T0, MEMSUFFIX) (void) {
26 T0 = glue(ldub, MEMSUFFIX) (T0);
27 RETURN();
30 void glue(op_stb_T0_T1, MEMSUFFIX) (void) {
31 glue(stb, MEMSUFFIX) (T1, T0);
32 RETURN();
35 void glue(op_ldw_T0_T0, MEMSUFFIX) (void) {
36 T0 = glue(ldsw, MEMSUFFIX) (T0);
37 RETURN();
40 void glue(op_lduw_T0_T0, MEMSUFFIX) (void) {
41 T0 = glue(lduw, MEMSUFFIX) (T0);
42 RETURN();
45 void glue(op_stw_T0_T1, MEMSUFFIX) (void) {
46 glue(stw, MEMSUFFIX) (T1, T0);
47 RETURN();
50 void glue(op_ldl_T0_T0, MEMSUFFIX) (void) {
51 T0 = glue(ldl, MEMSUFFIX) (T0);
52 RETURN();
55 void glue(op_stl_T0_T1, MEMSUFFIX) (void) {
56 glue(stl, MEMSUFFIX) (T1, T0);
57 RETURN();
60 void glue(op_ldfl_T0_FT0, MEMSUFFIX) (void) {
61 FT0 = glue(ldfl, MEMSUFFIX) (T0);
62 RETURN();
65 void glue(op_stfl_FT0_T1, MEMSUFFIX) (void) {
66 glue(stfl, MEMSUFFIX) (T1, FT0);
67 RETURN();
70 void glue(op_ldfq_T0_DT0, MEMSUFFIX) (void) {
71 DT0 = glue(ldfq, MEMSUFFIX) (T0);
72 RETURN();
75 void glue(op_stfq_DT0_T1, MEMSUFFIX) (void) {
76 glue(stfq, MEMSUFFIX) (T1, DT0);
77 RETURN();