root / target-ppc / op_mem.h @ cf360a32
History | View | Annotate | Download (1.9 kB)
1 |
/*
|
---|---|
2 |
* PowerPC emulation micro-operations for qemu.
|
3 |
*
|
4 |
* Copyright (c) 2003-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 |
#include "op_mem_access.h" |
22 |
|
23 |
/* External access */
|
24 |
void OPPROTO glue(op_eciwx, MEMSUFFIX) (void) |
25 |
{ |
26 |
T1 = glue(ldu32, MEMSUFFIX)((uint32_t)T0); |
27 |
RETURN(); |
28 |
} |
29 |
|
30 |
#if defined(TARGET_PPC64)
|
31 |
void OPPROTO glue(op_eciwx_64, MEMSUFFIX) (void) |
32 |
{ |
33 |
T1 = glue(ldu32, MEMSUFFIX)((uint64_t)T0); |
34 |
RETURN(); |
35 |
} |
36 |
#endif
|
37 |
|
38 |
void OPPROTO glue(op_ecowx, MEMSUFFIX) (void) |
39 |
{ |
40 |
glue(st32, MEMSUFFIX)((uint32_t)T0, T1); |
41 |
RETURN(); |
42 |
} |
43 |
|
44 |
#if defined(TARGET_PPC64)
|
45 |
void OPPROTO glue(op_ecowx_64, MEMSUFFIX) (void) |
46 |
{ |
47 |
glue(st32, MEMSUFFIX)((uint64_t)T0, T1); |
48 |
RETURN(); |
49 |
} |
50 |
#endif
|
51 |
|
52 |
void OPPROTO glue(op_eciwx_le, MEMSUFFIX) (void) |
53 |
{ |
54 |
T1 = glue(ldu32r, MEMSUFFIX)((uint32_t)T0); |
55 |
RETURN(); |
56 |
} |
57 |
|
58 |
#if defined(TARGET_PPC64)
|
59 |
void OPPROTO glue(op_eciwx_le_64, MEMSUFFIX) (void) |
60 |
{ |
61 |
T1 = glue(ldu32r, MEMSUFFIX)((uint64_t)T0); |
62 |
RETURN(); |
63 |
} |
64 |
#endif
|
65 |
|
66 |
void OPPROTO glue(op_ecowx_le, MEMSUFFIX) (void) |
67 |
{ |
68 |
glue(st32r, MEMSUFFIX)((uint32_t)T0, T1); |
69 |
RETURN(); |
70 |
} |
71 |
|
72 |
#if defined(TARGET_PPC64)
|
73 |
void OPPROTO glue(op_ecowx_le_64, MEMSUFFIX) (void) |
74 |
{ |
75 |
glue(st32r, MEMSUFFIX)((uint64_t)T0, T1); |
76 |
RETURN(); |
77 |
} |
78 |
#endif
|
79 |
|
80 |
#undef MEMSUFFIX
|