root / target-i386 / ops_mem.h @ 1d6e34fd
History | View | Annotate | Download (2.9 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 | 14ce26e7 | bellard | T1 = 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 | 2c0262af | bellard | } |
55 | 2c0262af | bellard | |
56 | 2c0262af | bellard | void OPPROTO glue(glue(op_stw, MEMSUFFIX), _T0_A0)(void) |
57 | 2c0262af | bellard | { |
58 | 14ce26e7 | bellard | glue(stw, MEMSUFFIX)(A0, T0); |
59 | 2c0262af | bellard | } |
60 | 2c0262af | bellard | |
61 | 2c0262af | bellard | void OPPROTO glue(glue(op_stl, MEMSUFFIX), _T0_A0)(void) |
62 | 2c0262af | bellard | { |
63 | 14ce26e7 | bellard | glue(stl, MEMSUFFIX)(A0, T0); |
64 | 2c0262af | bellard | } |
65 | 2c0262af | bellard | |
66 | 7f1135b9 | bellard | #if 0
|
67 | 7f1135b9 | bellard | void OPPROTO glue(glue(op_stb, MEMSUFFIX), _T1_A0)(void)
|
68 | 7f1135b9 | bellard | {
|
69 | 14ce26e7 | bellard | glue(stb, MEMSUFFIX)(A0, T1);
|
70 | 7f1135b9 | bellard | }
|
71 | 7f1135b9 | bellard | #endif
|
72 | 7f1135b9 | bellard | |
73 | 7f1135b9 | bellard | void OPPROTO glue(glue(op_stw, MEMSUFFIX), _T1_A0)(void) |
74 | 7f1135b9 | bellard | { |
75 | 14ce26e7 | bellard | glue(stw, MEMSUFFIX)(A0, T1); |
76 | 7f1135b9 | bellard | } |
77 | 7f1135b9 | bellard | |
78 | 7f1135b9 | bellard | void OPPROTO glue(glue(op_stl, MEMSUFFIX), _T1_A0)(void) |
79 | 7f1135b9 | bellard | { |
80 | 14ce26e7 | bellard | glue(stl, MEMSUFFIX)(A0, T1); |
81 | 7f1135b9 | bellard | } |
82 | 7f1135b9 | bellard | |
83 | 664e0f19 | bellard | /* SSE/MMX support */
|
84 | 664e0f19 | bellard | void OPPROTO glue(glue(op_ldq, MEMSUFFIX), _env_A0)(void) |
85 | 664e0f19 | bellard | { |
86 | 664e0f19 | bellard | uint64_t *p; |
87 | 664e0f19 | bellard | p = (uint64_t *)((char *)env + PARAM1);
|
88 | 664e0f19 | bellard | *p = glue(ldq, MEMSUFFIX)(A0); |
89 | 664e0f19 | bellard | } |
90 | 664e0f19 | bellard | |
91 | 664e0f19 | bellard | void OPPROTO glue(glue(op_stq, MEMSUFFIX), _env_A0)(void) |
92 | 664e0f19 | bellard | { |
93 | 664e0f19 | bellard | uint64_t *p; |
94 | 664e0f19 | bellard | p = (uint64_t *)((char *)env + PARAM1);
|
95 | 664e0f19 | bellard | glue(stq, MEMSUFFIX)(A0, *p); |
96 | 664e0f19 | bellard | } |
97 | 664e0f19 | bellard | |
98 | 14ce26e7 | bellard | void OPPROTO glue(glue(op_ldo, MEMSUFFIX), _env_A0)(void) |
99 | 14ce26e7 | bellard | { |
100 | 14ce26e7 | bellard | XMMReg *p; |
101 | 14ce26e7 | bellard | p = (XMMReg *)((char *)env + PARAM1);
|
102 | a8ede8ba | bellard | p->XMM_Q(0) = glue(ldq, MEMSUFFIX)(A0);
|
103 | a8ede8ba | bellard | p->XMM_Q(1) = glue(ldq, MEMSUFFIX)(A0 + 8); |
104 | 14ce26e7 | bellard | } |
105 | 14ce26e7 | bellard | |
106 | 14ce26e7 | bellard | void OPPROTO glue(glue(op_sto, MEMSUFFIX), _env_A0)(void) |
107 | 14ce26e7 | bellard | { |
108 | 14ce26e7 | bellard | XMMReg *p; |
109 | 14ce26e7 | bellard | p = (XMMReg *)((char *)env + PARAM1);
|
110 | a8ede8ba | bellard | glue(stq, MEMSUFFIX)(A0, p->XMM_Q(0));
|
111 | a8ede8ba | bellard | glue(stq, MEMSUFFIX)(A0 + 8, p->XMM_Q(1)); |
112 | 14ce26e7 | bellard | } |
113 | 14ce26e7 | bellard | |
114 | 14ce26e7 | bellard | #ifdef TARGET_X86_64
|
115 | 14ce26e7 | bellard | void OPPROTO glue(glue(op_ldsl, MEMSUFFIX), _T0_A0)(void) |
116 | 14ce26e7 | bellard | { |
117 | 14ce26e7 | bellard | T0 = (int32_t)glue(ldl, MEMSUFFIX)(A0); |
118 | 14ce26e7 | bellard | } |
119 | 14ce26e7 | bellard | |
120 | 14ce26e7 | bellard | void OPPROTO glue(glue(op_ldsl, MEMSUFFIX), _T1_A0)(void) |
121 | 14ce26e7 | bellard | { |
122 | 14ce26e7 | bellard | T1 = (int32_t)glue(ldl, MEMSUFFIX)(A0); |
123 | 14ce26e7 | bellard | } |
124 | 14ce26e7 | bellard | |
125 | 14ce26e7 | bellard | void OPPROTO glue(glue(op_ldq, MEMSUFFIX), _T0_A0)(void) |
126 | 14ce26e7 | bellard | { |
127 | 14ce26e7 | bellard | T0 = glue(ldq, MEMSUFFIX)(A0); |
128 | 14ce26e7 | bellard | } |
129 | 14ce26e7 | bellard | |
130 | 14ce26e7 | bellard | void OPPROTO glue(glue(op_ldq, MEMSUFFIX), _T1_A0)(void) |
131 | 14ce26e7 | bellard | { |
132 | 14ce26e7 | bellard | T1 = glue(ldq, MEMSUFFIX)(A0); |
133 | 14ce26e7 | bellard | } |
134 | 14ce26e7 | bellard | |
135 | 14ce26e7 | bellard | void OPPROTO glue(glue(op_stq, MEMSUFFIX), _T0_A0)(void) |
136 | 14ce26e7 | bellard | { |
137 | 14ce26e7 | bellard | glue(stq, MEMSUFFIX)(A0, T0); |
138 | 14ce26e7 | bellard | } |
139 | 14ce26e7 | bellard | |
140 | 14ce26e7 | bellard | void OPPROTO glue(glue(op_stq, MEMSUFFIX), _T1_A0)(void) |
141 | 14ce26e7 | bellard | { |
142 | 14ce26e7 | bellard | glue(stq, MEMSUFFIX)(A0, T1); |
143 | 14ce26e7 | bellard | } |
144 | 14ce26e7 | bellard | #endif
|
145 | 14ce26e7 | bellard | |
146 | 2c0262af | bellard | #undef MEMSUFFIX |