Revision aa0bf00b target-mips/op.c

b/target-mips/op.c
48 48
        func(arg0, arg1, arg2, arg3)
49 49
#endif
50 50

  
51
#define FREG 0
52
#include "fop_template.c"
53
#undef FREG
54
#define FREG 1
55
#include "fop_template.c"
56
#undef FREG
57
#define FREG 2
58
#include "fop_template.c"
59
#undef FREG
60
#define FREG 3
61
#include "fop_template.c"
62
#undef FREG
63
#define FREG 4
64
#include "fop_template.c"
65
#undef FREG
66
#define FREG 5
67
#include "fop_template.c"
68
#undef FREG
69
#define FREG 6
70
#include "fop_template.c"
71
#undef FREG
72
#define FREG 7
73
#include "fop_template.c"
74
#undef FREG
75
#define FREG 8
76
#include "fop_template.c"
77
#undef FREG
78
#define FREG 9
79
#include "fop_template.c"
80
#undef FREG
81
#define FREG 10
82
#include "fop_template.c"
83
#undef FREG
84
#define FREG 11
85
#include "fop_template.c"
86
#undef FREG
87
#define FREG 12
88
#include "fop_template.c"
89
#undef FREG
90
#define FREG 13
91
#include "fop_template.c"
92
#undef FREG
93
#define FREG 14
94
#include "fop_template.c"
95
#undef FREG
96
#define FREG 15
97
#include "fop_template.c"
98
#undef FREG
99
#define FREG 16
100
#include "fop_template.c"
101
#undef FREG
102
#define FREG 17
103
#include "fop_template.c"
104
#undef FREG
105
#define FREG 18
106
#include "fop_template.c"
107
#undef FREG
108
#define FREG 19
109
#include "fop_template.c"
110
#undef FREG
111
#define FREG 20
112
#include "fop_template.c"
113
#undef FREG
114
#define FREG 21
115
#include "fop_template.c"
116
#undef FREG
117
#define FREG 22
118
#include "fop_template.c"
119
#undef FREG
120
#define FREG 23
121
#include "fop_template.c"
122
#undef FREG
123
#define FREG 24
124
#include "fop_template.c"
125
#undef FREG
126
#define FREG 25
127
#include "fop_template.c"
128
#undef FREG
129
#define FREG 26
130
#include "fop_template.c"
131
#undef FREG
132
#define FREG 27
133
#include "fop_template.c"
134
#undef FREG
135
#define FREG 28
136
#include "fop_template.c"
137
#undef FREG
138
#define FREG 29
139
#include "fop_template.c"
140
#undef FREG
141
#define FREG 30
142
#include "fop_template.c"
143
#undef FREG
144
#define FREG 31
145
#include "fop_template.c"
146
#undef FREG
147

  
148 51
/* Load and store */
149 52
#define MEMSUFFIX _raw
150 53
#include "op_mem.c"
......
467 370
# define DEBUG_FPU_STATE() do { } while(0)
468 371
#endif
469 372

  
470
void op_mfc1 (void)
471
{
472
    T0 = (int32_t)WT0;
473
    DEBUG_FPU_STATE();
474
    FORCE_RET();
475
}
476

  
477
void op_mtc1 (void)
478
{
479
    WT0 = T0;
480
    DEBUG_FPU_STATE();
481
    FORCE_RET();
482
}
483

  
484
void op_dmfc1 (void)
485
{
486
    T0 = DT0;
487
    DEBUG_FPU_STATE();
488
    FORCE_RET();
489
}
490

  
491
void op_dmtc1 (void)
492
{
493
    DT0 = T0;
494
    DEBUG_FPU_STATE();
495
    FORCE_RET();
496
}
497

  
498
void op_mfhc1 (void)
499
{
500
    T0 = (int32_t)WTH0;
501
    DEBUG_FPU_STATE();
502
    FORCE_RET();
503
}
504

  
505
void op_mthc1 (void)
506
{
507
    WTH0 = T0;
508
    DEBUG_FPU_STATE();
509
    FORCE_RET();
510
}
511

  
512 373
/* Float support.
513 374
   Single precition routines have a "s" suffix, double precision a
514 375
   "d" suffix, 32bit integer "w", 64bit integer "l", paired singe "ps",

Also available in: Unified diff