aboutsummaryrefslogtreecommitdiff
path: root/pk/fp.h
diff options
context:
space:
mode:
Diffstat (limited to 'pk/fp.h')
-rw-r--r--pk/fp.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/pk/fp.h b/pk/fp.h
index 94862b1..4cfb167 100644
--- a/pk/fp.h
+++ b/pk/fp.h
@@ -3,16 +3,18 @@
#ifndef _FP_H
#define _FP_H
+typedef union {
+ struct {
+ uint8_t flags : 5;
+ uint8_t rm : 3;
+ } fcsr;
+ uint8_t bits;
+} fcsr_t;
+
typedef struct
{
uint64_t fpr[32];
- union {
- struct {
- uint8_t flags : 5;
- uint8_t rm : 3;
- } fsr;
- uint8_t bits;
- } fsr;
+ fcsr_t fcsr;
} fp_state_t;
void put_fp_state(const void* fp_regs, uint8_t fsr);