Revision c570fd16 target-mips/op_template.c

b/target-mips/op_template.c
51 51
#endif
52 52

  
53 53
#if defined (TN)
54
void glue(op_set_, TN) (void)
55
{
56
    TN = PARAM1;
57
    RETURN();
58
}
54
#define SET_RESET(treg, tregname)        \
55
    void glue(op_set, tregname)(void)    \
56
    {                                    \
57
        treg = PARAM1;                   \
58
        RETURN();                        \
59
    }                                    \
60
    void glue(op_reset, tregname)(void)  \
61
    {                                    \
62
        treg = 0;                        \
63
        RETURN();                        \
64
    }                                    \
59 65

  
60
void glue (op_reset_, TN) (void)
61
{
62
    TN = 0;
63
    RETURN();
64
}
66
SET_RESET(T0, _T0)
67
SET_RESET(T1, _T1)
68
SET_RESET(T2, _T2)
69

  
70
#undef SET_RESET
65 71
#endif

Also available in: Unified diff