diff options
author | Nilay Vaish <nilay@cs.wisc.edu> | 2015-04-29 22:35:22 -0500 |
---|---|---|
committer | Nilay Vaish <nilay@cs.wisc.edu> | 2015-04-29 22:35:22 -0500 |
commit | ee06fed656d404c19c68c838df1dc8dbba37ec80 (patch) | |
tree | 4bca05681a3e4939994200c6974afea72370bc8f /src/arch/x86/faults.hh | |
parent | 179787f31faf12f7f4a31506db40236e82873675 (diff) | |
download | gem5-ee06fed656d404c19c68c838df1dc8dbba37ec80.tar.xz |
x86: change divide-by-zero fault to divide-error
Same exception is raised whether division with zero is performed or the
quotient is greater than the maximum value that the provided space can hold.
Divide-by-Zero is the AMD terminology, while Divide-Error is Intel's.
Diffstat (limited to 'src/arch/x86/faults.hh')
-rw-r--r-- | src/arch/x86/faults.hh | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/arch/x86/faults.hh b/src/arch/x86/faults.hh index b9eb85e21..f8715ded2 100644 --- a/src/arch/x86/faults.hh +++ b/src/arch/x86/faults.hh @@ -167,7 +167,7 @@ namespace X86ISA // Class | Type | vector | Cause | mnem //------------------------------------------------------------------------ - //Contrib Fault 0 Divide-by-Zero-Error #DE + //Contrib Fault 0 Divide Error #DE //Benign Either 1 Debug #DB //Benign Interrupt 2 Non-Maskable-Interrupt #NMI //Benign Trap 3 Breakpoint #BP @@ -193,11 +193,12 @@ namespace X86ISA //Benign Interrupt 0-255 External Interrupts #INTR //Benign Interrupt 0-255 Software Interrupts INTn - class DivideByZero : public X86Fault + // Note that + class DivideError : public X86Fault { public: - DivideByZero() : - X86Fault("Divide-by-Zero-Error", "#DE", 0) + DivideError() : + X86Fault("Divide-Error", "#DE", 0) {} }; |