qemu configure target-sparc/cpu.h target-sparc/...
CVSROOT: /sources/qemu
Module name: qemu
Changes by: Fabrice Bellard <bellard> 06/06/21 18:37:05
Modified files:
. : configure
target-sparc : cpu.h op.c op_helper.c
Log message:
soft floats for SPARC (Blue Swirl)
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/configure?cvsroot=qemu&r1=1.108&r2=1.109
http://cvs.savannah.gnu.org/viewcvs/qemu/target-sparc/cpu.h?cvsroot=qemu&r1=1.21&r2=1.22
http://cvs.savannah.gnu.org/viewcvs/qemu/target-sparc/op.c?cvsroot=qemu&r1=1.19&r2=1.20
http://cvs.savannah.gnu.org/viewcvs/qemu/target-sparc/op_helper.c?cvsroot=qemu&r1=1.19&r2=1.20
Patches:
Index: configure
===================================================================
RCS file: /sources/qemu/qemu/configure,v
retrieving revision 1.108
retrieving revision 1.109
configure +1 -1
@@ -850,7 +850,7 @@ echo "#define CONFIG_USER_ONLY 1" >> $config_h fi -if test "$target_cpu" = "arm" -o "$target_cpu" = "armeb" ; then +if test "$target_cpu" = "arm" -o "$target_cpu" = "armeb" -o "$target_cpu" = "sparc" -o "$target_cpu" = "sparc64"; then echo "CONFIG_SOFTFLOAT=yes" >> $config_mak echo "#define CONFIG_SOFTFLOAT 1" >> $config_h fi
Index: target-sparc/cpu.h
===================================================================
RCS file: /sources/qemu/qemu/target-sparc/cpu.h,v
retrieving revision 1.21
retrieving revision 1.22
cpu.h +4 -6
@@ -12,7 +12,7 @@#define TARGET_FPREGS 64#define TARGET_PAGE_BITS 12/* XXX */ #endif -#define TARGET_FPREG_T float +#define TARGET_FPREG_T float32#include "cpu-defs.h"
@@ -146,7 +146,7 @@ typedef struct CPUSPARCState { target_ulong gregs[8]; /* general registers */ target_ulong *regwptr; /* pointer to current register window */ - TARGET_FPREG_T fpr[TARGET_FPREGS]; /* floating point registers */ + float32 fpr[TARGET_FPREGS]; /* floating point registers */ target_ulong pc; /* program counter */ target_ulong npc; /* next program counter */ target_ulong y; /* multiply/divide register */
@@ -187,8 +187,8 @@uint32_t mmuregs[16 ];#endif /* temporary float registers */ -float ft0, ft1; -double dt0, dt1; +float32 ft0, ft1; +float64 dt0, dt1;float_status fp_status;#if defined(TARGET_SPARC64 )#define MAXTL 4
@@ -236,8 +236,6 @@CPUSPARCState *cpu_sparc_init (void );int cpu_sparc_exec (CPUSPARCState *s);int cpu_sparc_close (CPUSPARCState *s); -void cpu_get_fp64 (uint64_t *pmant,uint16_t *pexp,double f); -double cpu_put_fp64 (uint64_t mant,uint16_t exp);/* Fake impl 0, version 4 */ #define GET_PSR (env) ((0 << 28) | (4 << 24) | (env->psr & PSR_ICC) | \
Index: target-sparc/op.c
===================================================================
RCS file: /sources/qemu/qemu/target-sparc/op.c,v
retrieving revision 1.19
retrieving revision 1.20
op.c +57 -89
220 lines not on this page · raw message
Index: target-sparc/op_helper.c
===================================================================
RCS file: /sources/qemu/qemu/target-sparc/op_helper.c,v retrieving revision 1.19
retrieving revision 1.20
op_helper.c +35 -185
248 lines not on this page · raw message