File tree Expand file tree Collapse file tree
include/remill/Arch/MIPS/Runtime Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -260,6 +260,11 @@ struct alignas(8) COP0Registers final {
260260 Reg DESAVE ;
261261} __attribute__((packed ));
262262
263+ struct alignas (8 ) COP1Registers final {
264+ volatile uint64_t _0 ;
265+ Reg FCSR ;
266+ } __attribute__((packed ));
267+
263268struct alignas (8 ) MIPSState : public ArchState {
264269 GPR gpr ; // 528 bytes.
265270
@@ -276,6 +281,10 @@ struct alignas(8) MIPSState : public ArchState {
276281 COP0Registers cop0 ;
277282
278283 uint64_t _3 ;
284+
285+ COP1Registers cop1 ;
286+
287+ uint64_t _4 ;
279288} __attribute__((packed ));
280289
281290struct State : public MIPSState {};
Original file line number Diff line number Diff line change @@ -309,6 +309,10 @@ class SleighMIPSArch : public ArchBase {
309309 REG (TAGHI , cop0.TagHi .qword , u64 );
310310 REG (ERRORPC , cop0.ErrorEPC .qword , u64 );
311311 REG (DESAVE , cop0.DESAVE .qword , u64 );
312+
313+ // COP1
314+ // TODO: Maybe move fpr here?
315+ REG (FCSR , cop1.FCSR .dword , u32 );
312316 }
313317
314318 void
You can’t perform that action at this time.
0 commit comments