root / target-i386 / ops_mem.h @ 89fc88da
History | View | Annotate | Download (3.1 kB)
1 | 2c0262af | bellard | void OPPROTO glue(glue(op_ldub, MEMSUFFIX), _T0_A0)(void) |
---|---|---|---|
2 | 2c0262af | bellard | { |
3 | 14ce26e7 | bellard | T0 = glue(ldub, MEMSUFFIX)(A0); |
4 | 2c0262af | bellard | } |
5 | 2c0262af | bellard | |
6 | 2c0262af | bellard | void OPPROTO glue(glue(op_ldsb, MEMSUFFIX), _T0_A0)(void) |
7 | 2c0262af | bellard | { |
8 | 14ce26e7 | bellard | T0 = glue(ldsb, MEMSUFFIX)(A0); |
9 | 2c0262af | bellard | } |
10 | 2c0262af | bellard | |
11 | 2c0262af | bellard | void OPPROTO glue(glue(op_lduw, MEMSUFFIX), _T0_A0)(void) |
12 | 2c0262af | bellard | { |
13 | 14ce26e7 | bellard | T0 = glue(lduw, MEMSUFFIX)(A0); |
14 | 2c0262af | bellard | } |
15 | 2c0262af | bellard | |
16 | 2c0262af | bellard | void OPPROTO glue(glue(op_ldsw, MEMSUFFIX), _T0_A0)(void) |
17 | 2c0262af | bellard | { |
18 | 14ce26e7 | bellard | T0 = glue(ldsw, MEMSUFFIX)(A0); |
19 | 2c0262af | bellard | } |
20 | 2c0262af | bellard | |
21 | 2c0262af | bellard | void OPPROTO glue(glue(op_ldl, MEMSUFFIX), _T0_A0)(void) |
22 | 2c0262af | bellard | { |
23 | 14ce26e7 | bellard | T0 = (uint32_t)glue(ldl, MEMSUFFIX)(A0); |
24 | 2c0262af | bellard | } |
25 | 2c0262af | bellard | |
26 | 2c0262af | bellard | void OPPROTO glue(glue(op_ldub, MEMSUFFIX), _T1_A0)(void) |
27 | 2c0262af | bellard | { |
28 | 14ce26e7 | bellard | T1 = glue(ldub, MEMSUFFIX)(A0); |
29 | 2c0262af | bellard | } |
30 | 2c0262af | bellard | |
31 | 2c0262af | bellard | void OPPROTO glue(glue(op_ldsb, MEMSUFFIX), _T1_A0)(void) |
32 | 2c0262af | bellard | { |
33 | 14ce26e7 | bellard | T1 = glue(ldsb, MEMSUFFIX)(A0); |
34 | 2c0262af | bellard | } |
35 | 2c0262af | bellard | |
36 | 2c0262af | bellard | void OPPROTO glue(glue(op_lduw, MEMSUFFIX), _T1_A0)(void) |
37 | 2c0262af | bellard | { |
38 | 14ce26e7 | bellard | T1 = glue(lduw, MEMSUFFIX)(A0); |
39 | 2c0262af | bellard | } |
40 | 2c0262af | bellard | |
41 | 2c0262af | bellard | void OPPROTO glue(glue(op_ldsw, MEMSUFFIX), _T1_A0)(void) |
42 | 2c0262af | bellard | { |
43 | 14ce26e7 | bellard | T1 = glue(ldsw, MEMSUFFIX)(A0); |
44 | 2c0262af | bellard | } |
45 | 2c0262af | bellard | |
46 | 2c0262af | bellard | void OPPROTO glue(glue(op_ldl, MEMSUFFIX), _T1_A0)(void) |
47 | 2c0262af | bellard | { |
48 | 5732fd27 | bellard | T1 = (uint32_t)glue(ldl, MEMSUFFIX)(A0); |
49 | 2c0262af | bellard | } |
50 | 2c0262af | bellard | |
51 | 2c0262af | bellard | void OPPROTO glue(glue(op_stb, MEMSUFFIX), _T0_A0)(void) |
52 | 2c0262af | bellard | { |
53 | 14ce26e7 | bellard | glue(stb, MEMSUFFIX)(A0, T0); |
54 | 6eea2b1b | bellard | FORCE_RET(); |
55 | 2c0262af | bellard | } |
56 | 2c0262af | bellard | |
57 | 2c0262af | bellard | void OPPROTO glue(glue(op_stw, MEMSUFFIX), _T0_A0)(void) |
58 | 2c0262af | bellard | { |
59 | 14ce26e7 | bellard | glue(stw, MEMSUFFIX)(A0, T0); |
60 | 6eea2b1b | bellard | FORCE_RET(); |
61 | 2c0262af | bellard | } |
62 | 2c0262af | bellard | |
63 | 2c0262af | bellard | void OPPROTO glue(glue(op_stl, MEMSUFFIX), _T0_A0)(void) |
64 | 2c0262af | bellard | { |
65 | 14ce26e7 | bellard | glue(stl, MEMSUFFIX)(A0, T0); |
66 | 6eea2b1b | bellard | FORCE_RET(); |
67 | 2c0262af | bellard | } |
68 | 2c0262af | bellard | |
69 | 7f1135b9 | bellard | #if 0
|
70 | 7f1135b9 | bellard | void OPPROTO glue(glue(op_stb, MEMSUFFIX), _T1_A0)(void)
|
71 | 7f1135b9 | bellard | {
|
72 | 14ce26e7 | bellard | glue(stb, MEMSUFFIX)(A0, T1);
|
73 | 6eea2b1b | bellard | FORCE_RET();
|
74 | 7f1135b9 | bellard | }
|
75 | 7f1135b9 | bellard | #endif
|
76 | 7f1135b9 | bellard | |
77 | 7f1135b9 | bellard | void OPPROTO glue(glue(op_stw, MEMSUFFIX), _T1_A0)(void) |
78 | 7f1135b9 | bellard | { |
79 | 14ce26e7 | bellard | glue(stw, MEMSUFFIX)(A0, T1); |
80 | 6eea2b1b | bellard | FORCE_RET(); |
81 | 7f1135b9 | bellard | } |
82 | 7f1135b9 | bellard | |
83 | 7f1135b9 | bellard | void OPPROTO glue(glue(op_stl, MEMSUFFIX), _T1_A0)(void) |
84 | 7f1135b9 | bellard | { |
85 | 14ce26e7 | bellard | glue(stl, MEMSUFFIX)(A0, T1); |
86 | 6eea2b1b | bellard | FORCE_RET(); |
87 | 7f1135b9 | bellard | } |
88 | 7f1135b9 | bellard | |
89 | 664e0f19 | bellard | /* SSE/MMX support */
|
90 | 664e0f19 | bellard | void OPPROTO glue(glue(op_ldq, MEMSUFFIX), _env_A0)(void) |
91 | 664e0f19 | bellard | { |
92 | 664e0f19 | bellard | uint64_t *p; |
93 | 664e0f19 | bellard | p = (uint64_t *)((char *)env + PARAM1);
|
94 | 664e0f19 | bellard | *p = glue(ldq, MEMSUFFIX)(A0); |
95 | 664e0f19 | bellard | } |
96 | 664e0f19 | bellard | |
97 | 664e0f19 | bellard | void OPPROTO glue(glue(op_stq, MEMSUFFIX), _env_A0)(void) |
98 | 664e0f19 | bellard | { |
99 | 664e0f19 | bellard | uint64_t *p; |
100 | 664e0f19 | bellard | p = (uint64_t *)((char *)env + PARAM1);
|
101 | 664e0f19 | bellard | glue(stq, MEMSUFFIX)(A0, *p); |
102 | 6eea2b1b | bellard | FORCE_RET(); |
103 | 664e0f19 | bellard | } |
104 | 664e0f19 | bellard | |
105 | 14ce26e7 | bellard | void OPPROTO glue(glue(op_ldo, MEMSUFFIX), _env_A0)(void) |
106 | 14ce26e7 | bellard | { |
107 | 14ce26e7 | bellard | XMMReg *p; |
108 | 14ce26e7 | bellard | p = (XMMReg *)((char *)env + PARAM1);
|
109 | a8ede8ba | bellard | p->XMM_Q(0) = glue(ldq, MEMSUFFIX)(A0);
|
110 | a8ede8ba | bellard | p->XMM_Q(1) = glue(ldq, MEMSUFFIX)(A0 + 8); |
111 | 14ce26e7 | bellard | } |
112 | 14ce26e7 | bellard | |
113 | 14ce26e7 | bellard | void OPPROTO glue(glue(op_sto, MEMSUFFIX), _env_A0)(void) |
114 | 14ce26e7 | bellard | { |
115 | 14ce26e7 | bellard | XMMReg *p; |
116 | 14ce26e7 | bellard | p = (XMMReg *)((char *)env + PARAM1);
|
117 | a8ede8ba | bellard | glue(stq, MEMSUFFIX)(A0, p->XMM_Q(0));
|
118 | a8ede8ba | bellard | glue(stq, MEMSUFFIX)(A0 + 8, p->XMM_Q(1)); |
119 | 6eea2b1b | bellard | FORCE_RET(); |
120 | 14ce26e7 | bellard | } |
121 | 14ce26e7 | bellard | |
122 | 14ce26e7 | bellard | #ifdef TARGET_X86_64
|
123 | 14ce26e7 | bellard | void OPPROTO glue(glue(op_ldsl, MEMSUFFIX), _T0_A0)(void) |
124 | 14ce26e7 | bellard | { |
125 | 14ce26e7 | bellard | T0 = (int32_t)glue(ldl, MEMSUFFIX)(A0); |
126 | 14ce26e7 | bellard | } |
127 | 14ce26e7 | bellard | |
128 | 14ce26e7 | bellard | void OPPROTO glue(glue(op_ldsl, MEMSUFFIX), _T1_A0)(void) |
129 | 14ce26e7 | bellard | { |
130 | 14ce26e7 | bellard | T1 = (int32_t)glue(ldl, MEMSUFFIX)(A0); |
131 | 14ce26e7 | bellard | } |
132 | 14ce26e7 | bellard | |
133 | 14ce26e7 | bellard | void OPPROTO glue(glue(op_ldq, MEMSUFFIX), _T0_A0)(void) |
134 | 14ce26e7 | bellard | { |
135 | 14ce26e7 | bellard | T0 = glue(ldq, MEMSUFFIX)(A0); |
136 | 14ce26e7 | bellard | } |
137 | 14ce26e7 | bellard | |
138 | 14ce26e7 | bellard | void OPPROTO glue(glue(op_ldq, MEMSUFFIX), _T1_A0)(void) |
139 | 14ce26e7 | bellard | { |
140 | 14ce26e7 | bellard | T1 = glue(ldq, MEMSUFFIX)(A0); |
141 | 14ce26e7 | bellard | } |
142 | 14ce26e7 | bellard | |
143 | 14ce26e7 | bellard | void OPPROTO glue(glue(op_stq, MEMSUFFIX), _T0_A0)(void) |
144 | 14ce26e7 | bellard | { |
145 | 14ce26e7 | bellard | glue(stq, MEMSUFFIX)(A0, T0); |
146 | 6eea2b1b | bellard | FORCE_RET(); |
147 | 14ce26e7 | bellard | } |
148 | 14ce26e7 | bellard | |
149 | 14ce26e7 | bellard | void OPPROTO glue(glue(op_stq, MEMSUFFIX), _T1_A0)(void) |
150 | 14ce26e7 | bellard | { |
151 | 14ce26e7 | bellard | glue(stq, MEMSUFFIX)(A0, T1); |
152 | 6eea2b1b | bellard | FORCE_RET(); |
153 | 14ce26e7 | bellard | } |
154 | 14ce26e7 | bellard | #endif
|
155 | 14ce26e7 | bellard | |
156 | 2c0262af | bellard | #undef MEMSUFFIX |