From 91b00d98a5973d47b831495f5c668bbb185c7a15 Mon Sep 17 00:00:00 2001 From: Nilay Vaish Date: Tue, 15 Jan 2013 07:43:19 -0600 Subject: x86: implement fabs, fchs instructions --- src/arch/x86/regs/misc.hh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'src/arch/x86/regs') diff --git a/src/arch/x86/regs/misc.hh b/src/arch/x86/regs/misc.hh index 697c81fc9..5887e7486 100644 --- a/src/arch/x86/regs/misc.hh +++ b/src/arch/x86/regs/misc.hh @@ -79,6 +79,25 @@ namespace X86ISA IDBit = 1 << 21 }; + enum X87StatusBit { + // Exception Flags + IEBit = 1 << 0, + DEBit = 1 << 1, + ZEBit = 1 << 2, + OEBit = 1 << 3, + UEBit = 1 << 4, + PEBit = 1 << 5, + + // !Exception Flags + StackFaultBit = 1 << 6, + ErrSummaryBit = 1 << 7, + CC0Bit = 1 << 8, + CC1Bit = 1 << 9, + CC2Bit = 1 << 10, + CC3Bit = 1 << 14, + BusyBit = 1 << 15, + }; + enum MiscRegIndex { // Control registers -- cgit v1.2.3