diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2002-09-17 03:51:50 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2002-09-17 03:51:50 +0000 |
commit | 0af5f7d7e417327f279b2e0c39805df2245cb728 (patch) | |
tree | c484672697515b8c7087c7e26a0b0a7fac0e0510 /sys/arch/hppa/include/cpu.h | |
parent | 5ca251874f77e1a0a603d0d99e23ac447553efe6 (diff) |
handle fpu exceptions properly, might use a regress, i guess
Diffstat (limited to 'sys/arch/hppa/include/cpu.h')
-rw-r--r-- | sys/arch/hppa/include/cpu.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/sys/arch/hppa/include/cpu.h b/sys/arch/hppa/include/cpu.h index 9c037f18be1..7de30854e37 100644 --- a/sys/arch/hppa/include/cpu.h +++ b/sys/arch/hppa/include/cpu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.h,v 1.31 2002/08/03 20:56:42 mickey Exp $ */ +/* $OpenBSD: cpu.h,v 1.32 2002/09/17 03:51:49 mickey Exp $ */ /* * Copyright (c) 2000-2001 Michael Shalayeff @@ -81,6 +81,19 @@ extern const char *cpu_typename; */ #define HPPA_FPUS 0xc0 #define HPPA_FPUVER(w) (((w) & 0x003ff800) >> 11) +#define HPPA_FPU_OP(w) ((w) >> 26) +#define HPPA_FPU_I 0x01 +#define HPPA_FPU_U 0x02 +#define HPPA_FPU_O 0x04 +#define HPPA_FPU_Z 0x08 +#define HPPA_FPU_V 0x10 +#define HPPA_FPU_D 0x20 +#define HPPA_FPU_T 0x40 +#define HPPA_FPU_RM 0x00000600 +#define HPPA_FPU_CQ 0x00fff800 +#define HPPA_FPU_C 0x04000000 +#define HPPA_FPU_FLSH 27 +#define HPPA_FPU_INIT (HPPA_FPU_I | HPPA_FPU_U | HPPA_FPU_O | HPPA_FPU_Z | HPPA_FPU_V) #define HPPA_PMSFUS 0x20 /* ??? */ /* |