mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
target-alpha: Clean up arithmetic traps.
Replace the EXCP_ARITH_OVERFLOW placeholder with the complete set of bits from the EXC_SUM IPR. Use them in the existing places where we raise arithmetic exceptions. Signed-off-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
parent
dad081ee69
commit
866be65dfd
2 changed files with 14 additions and 10 deletions
|
@ -450,9 +450,13 @@ enum {
|
|||
};
|
||||
|
||||
/* Arithmetic exception */
|
||||
enum {
|
||||
EXCP_ARITH_OVERFLOW,
|
||||
};
|
||||
#define EXC_M_IOV (1<<16) /* Integer Overflow */
|
||||
#define EXC_M_INE (1<<15) /* Inexact result */
|
||||
#define EXC_M_UNF (1<<14) /* Underflow */
|
||||
#define EXC_M_FOV (1<<13) /* Overflow */
|
||||
#define EXC_M_DZE (1<<12) /* Division by zero */
|
||||
#define EXC_M_INV (1<<11) /* Invalid operation */
|
||||
#define EXC_M_SWC (1<<10) /* Software completion */
|
||||
|
||||
enum {
|
||||
IR_V0 = 0,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue