From 0af5f7d7e417327f279b2e0c39805df2245cb728 Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Tue, 17 Sep 2002 03:51:50 +0000 Subject: handle fpu exceptions properly, might use a regress, i guess --- sys/arch/hppa/include/cpu.h | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'sys/arch/hppa/include/cpu.h') 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 /* ??? */ /* -- cgit v1.2.3