thermosphere: rework fpu register handling

This commit is contained in:
TuxSH
2020-01-25 20:16:10 +00:00
parent 5b545f89f5
commit 97c4595a3a
5 changed files with 45 additions and 21 deletions

View File

@@ -18,13 +18,17 @@
#include "utils.h"
typedef struct FpuRegisterStorage {
typedef struct FpuRegisterCache {
u128 q[32];
u64 fpsr;
u64 fpcr;
} FpuRegisterStorage;
bool valid;
bool dirty;
} FpuRegisterCache;
extern FpuRegisterStorage g_fpuRegisterStorage[4];
// Only for the current core:
void fpuDumpRegisters(u32 coreList);
void fpuRestoreRegisters(u32 coreList);
FpuRegisterCache *fpuGetRegisterCache(void);
FpuRegisterCache *fpuReadRegisters(void);
void fpuCommitRegisters(void);
void fpuCleanInvalidateRegisterCache(void);