From 32c229215aa438bf5a087c2e9a97462fd26208ad Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Thu, 29 Sep 2022 11:24:42 +0200 Subject: Improved signal handling and x87 flags (with tests backported from box86) --- src/include/regs.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/include') diff --git a/src/include/regs.h b/src/include/regs.h index d7ae0250..d66e8065 100755 --- a/src/include/regs.h +++ b/src/include/regs.h @@ -241,6 +241,23 @@ typedef union { uint16_t x16; } x87flags_t; +typedef union { + struct __attribute__ ((__packed__)) { + unsigned int C87_IM:1; // interupt masks + unsigned int C87_DM:1; + unsigned int C87_ZM:1; + unsigned int C87_OM:1; + unsigned int C87_UM:1; + unsigned int C87_PM:1; + unsigned int C87_R1:2; // reserved + unsigned int C87_PC:2; // precision control (24bits, reserved, 53bits, 64bits) + unsigned int C87_RD:2; // Rounds + unsigned int C87_IC:1; + unsigned int C87_R2:3; // reserved + } f; + uint16_t x16; +} x87control_t; + typedef union { uint64_t q; int64_t sq; -- cgit 1.4.1