2007-10-14 20:27:31 +04:00
|
|
|
#ifdef TARGET_ABI32
|
|
|
|
#define ADDR(x) ((x) & 0xffffffff)
|
|
|
|
#else
|
|
|
|
#define ADDR(x) (x)
|
|
|
|
#endif
|
|
|
|
|
2004-10-01 01:55:55 +04:00
|
|
|
/*** Floating-point store ***/
|
|
|
|
void OPPROTO glue(op_stf, MEMSUFFIX) (void)
|
|
|
|
{
|
2007-10-14 20:27:31 +04:00
|
|
|
glue(stfl, MEMSUFFIX)(ADDR(T0), FT0);
|
2004-10-01 01:55:55 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
void OPPROTO glue(op_stdf, MEMSUFFIX) (void)
|
|
|
|
{
|
2007-10-14 20:27:31 +04:00
|
|
|
glue(stfq, MEMSUFFIX)(ADDR(T0), DT0);
|
2004-10-01 01:55:55 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
/*** Floating-point load ***/
|
|
|
|
void OPPROTO glue(op_ldf, MEMSUFFIX) (void)
|
|
|
|
{
|
2007-10-14 20:27:31 +04:00
|
|
|
FT0 = glue(ldfl, MEMSUFFIX)(ADDR(T0));
|
2004-10-01 01:55:55 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
void OPPROTO glue(op_lddf, MEMSUFFIX) (void)
|
|
|
|
{
|
2007-10-14 20:27:31 +04:00
|
|
|
DT0 = glue(ldfq, MEMSUFFIX)(ADDR(T0));
|
2004-10-01 01:55:55 +04:00
|
|
|
}
|
2005-07-02 18:31:34 +04:00
|
|
|
|
2007-11-25 21:40:20 +03:00
|
|
|
#if defined(CONFIG_USER_ONLY)
|
|
|
|
void OPPROTO glue(op_ldqf, MEMSUFFIX) (void)
|
|
|
|
{
|
|
|
|
// XXX add 128 bit load
|
|
|
|
CPU_QuadU u;
|
|
|
|
|
|
|
|
u.ll.upper = glue(ldq, MEMSUFFIX)(ADDR(T0));
|
|
|
|
u.ll.lower = glue(ldq, MEMSUFFIX)(ADDR(T0 + 8));
|
|
|
|
QT0 = u.q;
|
|
|
|
}
|
|
|
|
|
|
|
|
void OPPROTO glue(op_stqf, MEMSUFFIX) (void)
|
|
|
|
{
|
|
|
|
// XXX add 128 bit store
|
|
|
|
CPU_QuadU u;
|
|
|
|
|
|
|
|
u.q = QT0;
|
|
|
|
glue(stq, MEMSUFFIX)(ADDR(T0), u.ll.upper);
|
|
|
|
glue(stq, MEMSUFFIX)(ADDR(T0 + 8), u.ll.lower);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2004-10-01 01:55:55 +04:00
|
|
|
#undef MEMSUFFIX
|