This commit is contained in:
Stanislav Shwartsman 2003-08-07 18:54:04 +00:00
parent 911484b161
commit 10653c2a6a
8 changed files with 19 additions and 48 deletions

View File

@ -1,6 +1,6 @@
/*---------------------------------------------------------------------------+
| errors.c |
| $Id: errors.c,v 1.9 2003-08-01 09:32:33 sshwarts Exp $
| $Id: errors.c,v 1.10 2003-08-07 18:54:03 sshwarts Exp $
| |
| The error handling functions for wm-FPU-emu |
| |
@ -720,3 +720,8 @@ void FPU_stack_underflow_pop(int i)
EXCEPTION(EX_StackUnder);
}
int printk(const char * fmt, ...)
{
return(0); // for now
}

View File

@ -1,6 +1,6 @@
/*---------------------------------------------------------------------------+
| fpu_emu.h |
| $Id: fpu_emu.h,v 1.13 2003-07-31 21:07:38 sshwarts Exp $
| $Id: fpu_emu.h,v 1.14 2003-08-07 18:54:03 sshwarts Exp $
| |
| Copyright (C) 1992,1993,1994,1997 |
| W. Metzenthen, 22 Parker St, Ormond, Vic 3163, |
@ -24,8 +24,8 @@
#define EXP_BIAS (0)
#define EXP_OVER (0x4000) /* smallest invalid large exponent */
#define EXP_UNDER (-0x3fff) /* largest invalid small exponent */
#define EXP_WAY_UNDER (-0x6000) /* Below the smallest denormal, but
still a 16 bit nr. */
#define EXP_WAY_UNDER (-0x6000) /* Below the smallest denormal, but still a 16 bit nr */
#define EXP_Infinity EXP_OVER
#define EXP_NaN EXP_OVER
@ -48,12 +48,11 @@
#define TAG_Valid 0 /* valid */
#define TAG_Zero 1 /* zero */
#define TAG_Special 2 /* De-normal, + or - infinity,
or Not a Number */
#define TAG_Special 2 /* De-normal, + or - infinity, or NaN */
#define TAG_Empty 3 /* empty */
#define LOADED_DATA (10101) /* Special st() number to identify
loaded data (not on stack). */
/* Special st() number to identify loaded data (not on stack). */
#define LOADED_DATA (10101)
/* A few flags (must be >= 0x10). */
#define REV 0x10
@ -104,11 +103,11 @@ struct address {
*
* Legend: F - fraction/mmx
* E - exponent
* A - aligment
* A - alignment
*/
#ifdef EMU_BIG_ENDIAN
struct fpu__reg {
struct fpu_reg_t {
u16 aligment1, aligment2, aligment3;
s16 exp; /* Signed quantity used in internal arithmetic. */
u32 sigh;
@ -122,7 +121,7 @@ struct fpu__reg {
#else
struct fpu__reg {
struct fpu_reg_t {
u32 sigl;
u32 sigh;
s16 exp; /* Signed quantity used in internal arithmetic. */
@ -137,7 +136,7 @@ struct fpu__reg {
#endif
typedef void (*FUNC)(void);
typedef struct fpu__reg FPU_REG;
typedef struct fpu_reg_t FPU_REG;
typedef void (*FUNC_ST0)(FPU_REG *st0_ptr, u_char st0_tag);
typedef struct { u_char address_size, operand_size, segment; }

View File

@ -1,6 +1,6 @@
/*---------------------------------------------------------------------------+
| fpu_system.h |
| $Id: fpu_system.h,v 1.14 2003-07-31 21:07:38 sshwarts Exp $
| $Id: fpu_system.h,v 1.15 2003-08-07 18:54:03 sshwarts Exp $
| |
| Copyright (C) 1992,1994,1997 |
| W. Metzenthen, 22 Parker St, Ormond, Vic 3163, |
@ -32,7 +32,6 @@ typedef Bit64s s64;
#include <cpu/i387.h>
/* bbd: include ported linux headers after config.h for GCC_ATTRIBUTE macro */
#include <linux/kernel.h>
#include <linux/mm.h>
#include <linux/types.h>

View File

@ -1,6 +1,6 @@
/*---------------------------------------------------------------------------+
| fpu_tags.c |
| $Id: fpu_tags.c,v 1.5 2003-07-31 21:07:38 sshwarts Exp $
| $Id: fpu_tags.c,v 1.6 2003-08-07 18:54:03 sshwarts Exp $
| |
| Set FPU register tags. |
| |
@ -129,11 +129,6 @@ FPU_copy_to_reg1(FPU_REG const *r, u_char tag)
void BX_CPP_AttrRegparmN(2)
FPU_copy_to_reg0(FPU_REG const *r, u_char tag)
{
int regnr = FPU_tos;
regnr &= 7;
reg_copy(r, &st(0));
FPU_tag_word &= ~(3 << (regnr*2));
FPU_tag_word |= (tag & 3) << (regnr*2);
FPU_settagi(0, tag);
}

View File

@ -1,7 +0,0 @@
#ifndef _LINUX_KERNEL_H
#define _LINUX_KERNEL_H
int printk(const char * fmt, ...)
GCC_ATTRIBUTE((format (printf, 1, 2)));
#endif

View File

@ -39,16 +39,4 @@
#endif /* __mc68000__ */
#endif /* __arm__ */
#ifdef __ASSEMBLY__
#define ALIGN __ALIGN
#define ALIGN_STR __ALIGN_STR
#define ENTRY(name) \
.globl SYMBOL_NAME(name); \
ALIGN; \
SYMBOL_NAME_LABEL(name)
#endif
#endif

View File

@ -1,7 +1,6 @@
#ifndef _LINUX_MM_H
#define _LINUX_MM_H
#define VERIFY_READ 0
#define VERIFY_WRITE 1

View File

@ -272,11 +272,4 @@ math_abort(void *info, unsigned int signal)
UNUSED(signal);
BX_INFO(("math_abort: CPU<4 not supported yet"));
#endif
}
int
printk(const char * fmt, ...)
{
BX_INFO(("printk not complete: %s", fmt));
return(0); // for now
}