Revision 3475187d target-sparc/fop_template.h

b/target-sparc/fop_template.h
40 40
    REG = FT1;
41 41
}
42 42

  
43
void OPPROTO glue(op_load_fpr_FT2_fpr, REGNAME)(void)
44
{
45
    FT2 = REG;
46
}
47

  
48
void OPPROTO glue(op_store_FT2_fpr_fpr, REGNAME)(void)
49
{
50
    REG = FT2;
51
}
52

  
53 43
/* double floating point registers moves */
54 44
void OPPROTO glue(op_load_fpr_DT0_fpr, REGNAME)(void)
55 45
{
......
87 77
    *p = u.l.upper;
88 78
}
89 79

  
90
void OPPROTO glue(op_load_fpr_DT2_fpr, REGNAME)(void)
91
{
92
    CPU_DoubleU u;
93
    uint32_t *p = (uint32_t *)®
94
    u.l.lower = *(p +1);
95
    u.l.upper = *p;
96
    DT2 = u.d;
97
}
98

  
99
void OPPROTO glue(op_store_DT2_fpr_fpr, REGNAME)(void)
100
{
101
    CPU_DoubleU u;
102
    uint32_t *p = (uint32_t *)®
103
    u.d = DT2;
104
    *(p +1) = u.l.lower;
105
    *p = u.l.upper;
106
}
107

  
108 80
#undef REG
109 81
#undef REGNAME

Also available in: Unified diff