Revision 14ce26e7 target-i386/ops_mem.h

b/target-i386/ops_mem.h
1 1
void OPPROTO glue(glue(op_ldub, MEMSUFFIX), _T0_A0)(void)
2 2
{
3
    T0 = glue(ldub, MEMSUFFIX)((uint8_t *)A0);
3
    T0 = glue(ldub, MEMSUFFIX)(A0);
4 4
}
5 5

  
6 6
void OPPROTO glue(glue(op_ldsb, MEMSUFFIX), _T0_A0)(void)
7 7
{
8
    T0 = glue(ldsb, MEMSUFFIX)((int8_t *)A0);
8
    T0 = glue(ldsb, MEMSUFFIX)(A0);
9 9
}
10 10

  
11 11
void OPPROTO glue(glue(op_lduw, MEMSUFFIX), _T0_A0)(void)
12 12
{
13
    T0 = glue(lduw, MEMSUFFIX)((uint8_t *)A0);
13
    T0 = glue(lduw, MEMSUFFIX)(A0);
14 14
}
15 15

  
16 16
void OPPROTO glue(glue(op_ldsw, MEMSUFFIX), _T0_A0)(void)
17 17
{
18
    T0 = glue(ldsw, MEMSUFFIX)((int8_t *)A0);
18
    T0 = glue(ldsw, MEMSUFFIX)(A0);
19 19
}
20 20

  
21 21
void OPPROTO glue(glue(op_ldl, MEMSUFFIX), _T0_A0)(void)
22 22
{
23
    T0 = glue(ldl, MEMSUFFIX)((uint8_t *)A0);
23
    T0 = (uint32_t)glue(ldl, MEMSUFFIX)(A0);
24 24
}
25 25

  
26 26
void OPPROTO glue(glue(op_ldub, MEMSUFFIX), _T1_A0)(void)
27 27
{
28
    T1 = glue(ldub, MEMSUFFIX)((uint8_t *)A0);
28
    T1 = glue(ldub, MEMSUFFIX)(A0);
29 29
}
30 30

  
31 31
void OPPROTO glue(glue(op_ldsb, MEMSUFFIX), _T1_A0)(void)
32 32
{
33
    T1 = glue(ldsb, MEMSUFFIX)((int8_t *)A0);
33
    T1 = glue(ldsb, MEMSUFFIX)(A0);
34 34
}
35 35

  
36 36
void OPPROTO glue(glue(op_lduw, MEMSUFFIX), _T1_A0)(void)
37 37
{
38
    T1 = glue(lduw, MEMSUFFIX)((uint8_t *)A0);
38
    T1 = glue(lduw, MEMSUFFIX)(A0);
39 39
}
40 40

  
41 41
void OPPROTO glue(glue(op_ldsw, MEMSUFFIX), _T1_A0)(void)
42 42
{
43
    T1 = glue(ldsw, MEMSUFFIX)((int8_t *)A0);
43
    T1 = glue(ldsw, MEMSUFFIX)(A0);
44 44
}
45 45

  
46 46
void OPPROTO glue(glue(op_ldl, MEMSUFFIX), _T1_A0)(void)
47 47
{
48
    T1 = glue(ldl, MEMSUFFIX)((uint8_t *)A0);
48
    T1 = glue(ldl, MEMSUFFIX)(A0);
49 49
}
50 50

  
51 51
void OPPROTO glue(glue(op_stb, MEMSUFFIX), _T0_A0)(void)
52 52
{
53
    glue(stb, MEMSUFFIX)((uint8_t *)A0, T0);
53
    glue(stb, MEMSUFFIX)(A0, T0);
54 54
}
55 55

  
56 56
void OPPROTO glue(glue(op_stw, MEMSUFFIX), _T0_A0)(void)
57 57
{
58
    glue(stw, MEMSUFFIX)((uint8_t *)A0, T0);
58
    glue(stw, MEMSUFFIX)(A0, T0);
59 59
}
60 60

  
61 61
void OPPROTO glue(glue(op_stl, MEMSUFFIX), _T0_A0)(void)
62 62
{
63
    glue(stl, MEMSUFFIX)((uint8_t *)A0, T0);
63
    glue(stl, MEMSUFFIX)(A0, T0);
64 64
}
65 65

  
66 66
#if 0
67 67
void OPPROTO glue(glue(op_stb, MEMSUFFIX), _T1_A0)(void)
68 68
{
69
    glue(stb, MEMSUFFIX)((uint8_t *)A0, T1);
69
    glue(stb, MEMSUFFIX)(A0, T1);
70 70
}
71 71
#endif
72 72

  
73 73
void OPPROTO glue(glue(op_stw, MEMSUFFIX), _T1_A0)(void)
74 74
{
75
    glue(stw, MEMSUFFIX)((uint8_t *)A0, T1);
75
    glue(stw, MEMSUFFIX)(A0, T1);
76 76
}
77 77

  
78 78
void OPPROTO glue(glue(op_stl, MEMSUFFIX), _T1_A0)(void)
79 79
{
80
    glue(stl, MEMSUFFIX)((uint8_t *)A0, T1);
80
    glue(stl, MEMSUFFIX)(A0, T1);
81 81
}
82 82

  
83
/* SSE support */
84
void OPPROTO glue(glue(op_ldo, MEMSUFFIX), _env_A0)(void)
85
{
86
    XMMReg *p;
87
    p = (XMMReg *)((char *)env + PARAM1);
88
    /* XXX: host endianness ? */
89
    p->u.q[0] = glue(ldq, MEMSUFFIX)(A0);
90
    p->u.q[1] = glue(ldq, MEMSUFFIX)(A0 + 8);
91
}
92

  
93
void OPPROTO glue(glue(op_sto, MEMSUFFIX), _env_A0)(void)
94
{
95
    XMMReg *p;
96
    p = (XMMReg *)((char *)env + PARAM1);
97
    /* XXX: host endianness ? */
98
    glue(stq, MEMSUFFIX)(A0, p->u.q[0]);
99
    glue(stq, MEMSUFFIX)(A0 + 8, p->u.q[1]);
100
}
101

  
102
#ifdef TARGET_X86_64
103
void OPPROTO glue(glue(op_ldsl, MEMSUFFIX), _T0_A0)(void)
104
{
105
    T0 = (int32_t)glue(ldl, MEMSUFFIX)(A0);
106
}
107

  
108
void OPPROTO glue(glue(op_ldsl, MEMSUFFIX), _T1_A0)(void)
109
{
110
    T1 = (int32_t)glue(ldl, MEMSUFFIX)(A0);
111
}
112

  
113
void OPPROTO glue(glue(op_ldq, MEMSUFFIX), _T0_A0)(void)
114
{
115
    T0 = glue(ldq, MEMSUFFIX)(A0);
116
}
117

  
118
void OPPROTO glue(glue(op_ldq, MEMSUFFIX), _T1_A0)(void)
119
{
120
    T1 = glue(ldq, MEMSUFFIX)(A0);
121
}
122

  
123
void OPPROTO glue(glue(op_stq, MEMSUFFIX), _T0_A0)(void)
124
{
125
    glue(stq, MEMSUFFIX)(A0, T0);
126
}
127

  
128
void OPPROTO glue(glue(op_stq, MEMSUFFIX), _T1_A0)(void)
129
{
130
    glue(stq, MEMSUFFIX)(A0, T1);
131
}
132
#endif
133

  
83 134
#undef MEMSUFFIX

Also available in: Unified diff