FPU code simplification
This commit is contained in:
parent
b091e00899
commit
40184c9187
@ -9,5 +9,3 @@ symbol BIG_ENDIAN.
|
||||
|
||||
Some of the code in fpu_entry.c and get_address.c is still in a
|
||||
non-portable form and these two files still contain assembler code.
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
/*---------------------------------------------------------------------------+
|
||||
| exception.h |
|
||||
| $Id: exception.h,v 1.5 2003-10-04 12:32:55 sshwarts Exp $
|
||||
| $Id: exception.h,v 1.6 2003-10-04 12:52:29 sshwarts Exp $
|
||||
| |
|
||||
| Copyright (C) 1992 W. Metzenthen, 22 Parker St, Ormond, Vic 3163, |
|
||||
| Australia. E-mail billm@vaxc.cc.monash.edu.au |
|
||||
@ -14,7 +14,6 @@
|
||||
#include "fpu_emu.h"
|
||||
#endif /* SW_C1 */
|
||||
|
||||
#define FPU_BUSY (0x8000) /* FPU busy bit (8087 compatibility) */
|
||||
#define EX_ErrorSummary (0x0080) /* Error summary status */
|
||||
/* Special exceptions: */
|
||||
#define EX_StackOver (0x0041|SW_C1) /* stack overflow */
|
||||
|
@ -1,6 +1,6 @@
|
||||
/*---------------------------------------------------------------------------+
|
||||
| fpu_emu.h |
|
||||
| $Id: fpu_emu.h,v 1.16 2003-10-04 12:32:56 sshwarts Exp $
|
||||
| $Id: fpu_emu.h,v 1.17 2003-10-04 12:52:29 sshwarts Exp $
|
||||
| |
|
||||
| Copyright (C) 1992,1993,1994,1997 |
|
||||
| W. Metzenthen, 22 Parker St, Ormond, Vic 3163, |
|
||||
@ -38,7 +38,6 @@
|
||||
#define SIGN_Positive (0)
|
||||
#define SIGN_Negative (0x8000)
|
||||
|
||||
|
||||
/* Keep the order TAG_Valid, TAG_Zero, TW_Denormal */
|
||||
/* The following fold to 2 (Special) in the Tag Word */
|
||||
#define TW_Denormal 4 /* De-normal */
|
||||
|
@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// $Id: fpu_proto.h,v 1.11 2003-10-04 12:32:56 sshwarts Exp $
|
||||
// $Id: fpu_proto.h,v 1.12 2003-10-04 12:52:29 sshwarts Exp $
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (C) 2001 MandrakeSoft S.A.
|
||||
@ -35,7 +35,6 @@
|
||||
#define _FPU_PROTO_H
|
||||
|
||||
/* errors.c */
|
||||
extern void Un_impl(void);
|
||||
extern void FPU_illegal(void);
|
||||
asmlinkage void FPU_exception(int n);
|
||||
asmlinkage void FPU_internal(int n);
|
||||
|
@ -1,6 +1,6 @@
|
||||
/*---------------------------------------------------------------------------+
|
||||
| fpu_system.h |
|
||||
| $Id: fpu_system.h,v 1.16 2003-09-27 20:58:46 sshwarts Exp $
|
||||
| $Id: fpu_system.h,v 1.17 2003-10-04 12:52:29 sshwarts Exp $
|
||||
| |
|
||||
| Copyright (C) 1992,1994,1997 |
|
||||
| W. Metzenthen, 22 Parker St, Ormond, Vic 3163, |
|
||||
@ -52,10 +52,8 @@ typedef Bit8u u_char;
|
||||
#endif
|
||||
|
||||
extern unsigned fpu_get_user(bx_address ptr, unsigned len) BX_CPP_AttrRegparmN(2);
|
||||
extern void fpu_put_user(unsigned val, bx_address ptr, unsigned len) BX_CPP_AttrRegparmN(2);
|
||||
|
||||
extern void fpu_put_user(unsigned val, bx_address ptr, unsigned len) BX_CPP_AttrRegparmN(3);
|
||||
extern void fpu_verify_area(unsigned what, bx_address ptr, unsigned n) BX_CPP_AttrRegparmN(3);
|
||||
extern void math_emulate_init(void);
|
||||
extern unsigned fpu_get_ds(void);
|
||||
extern void fpu_set_ax(u16);
|
||||
|
||||
|
@ -211,7 +211,7 @@ fpu_get_user(bx_address ptr, unsigned len)
|
||||
return(val32);
|
||||
}
|
||||
|
||||
void BX_CPP_AttrRegparmN(2)
|
||||
void BX_CPP_AttrRegparmN(3)
|
||||
fpu_put_user(unsigned val, bx_address ptr, unsigned len)
|
||||
{
|
||||
Bit32u val32;
|
||||
|
Loading…
Reference in New Issue
Block a user