File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed
include/remill/Arch/MIPS/Runtime Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -260,6 +260,11 @@ struct alignas(8) COP0Registers final {
260
260
Reg DESAVE ;
261
261
} __attribute__((packed ));
262
262
263
+ struct alignas (8 ) COP1Registers final {
264
+ volatile uint64_t _0 ;
265
+ Reg FCSR ;
266
+ } __attribute__((packed ));
267
+
263
268
struct alignas (8 ) MIPSState : public ArchState {
264
269
GPR gpr ; // 528 bytes.
265
270
@@ -276,6 +281,10 @@ struct alignas(8) MIPSState : public ArchState {
276
281
COP0Registers cop0 ;
277
282
278
283
uint64_t _3 ;
284
+
285
+ COP1Registers cop1 ;
286
+
287
+ uint64_t _4 ;
279
288
} __attribute__((packed ));
280
289
281
290
struct State : public MIPSState {};
Original file line number Diff line number Diff line change @@ -309,6 +309,10 @@ class SleighMIPSArch : public ArchBase {
309
309
REG (TAGHI, cop0.TagHi .qword , u64 );
310
310
REG (ERRORPC, cop0.ErrorEPC .qword , u64 );
311
311
REG (DESAVE, cop0.DESAVE .qword , u64 );
312
+
313
+ // COP1
314
+ // TODO: Maybe move fpr here?
315
+ REG (FCSR, cop1.FCSR .dword , u32 );
312
316
}
313
317
314
318
void
You can’t perform that action at this time.
0 commit comments