qemu/target-sh4 cpu.h exec.h op.c op_mem.c tran...
CVSROOT: /sources/qemu
Module name: qemu
Changes by: Fabrice Bellard <bellard> 06/06/14 15:02:06
Modified files:
target-sh4 : cpu.h exec.h op.c op_mem.c translate.c
Log message:
sh4 fmov et al instructions (amatus)
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/target-sh4/cpu.h?cvsroot=qemu&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/qemu/target-sh4/exec.h?cvsroot=qemu&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/qemu/target-sh4/op.c?cvsroot=qemu&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/qemu/target-sh4/op_mem.c?cvsroot=qemu&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/qemu/target-sh4/translate.c?cvsroot=qemu&r1=1.1&r2=1.2
Patches:
Index: cpu.h
===================================================================
RCS file: /sources/qemu/qemu/target-sh4/cpu.h,v
retrieving revision 1.1
retrieving revision 1.2
cpu.h +6 -0
@@ -27,6 +27,8 @@#include "cpu-defs.h" +#include "softfloat.h" +#define TARGET_PAGE_BITS 12/* 4k XXXXX */ #define SR_MD (1 << 30)
@@ -90,6 +92,10 @@uint32_t fpscr;/* floating point status/control register */ uint32_t fpul;/* floating point communication register */ +/* temporary float registers */ +float32 ft0, ft1; +float64 dt0, dt1; +/* Those belong to the specific unit (SH7750) but are handled here */ uint32_t mmucr;/* MMU control register */ uint32_t pteh;/* page table entry high register */
Index: exec.h
===================================================================
RCS file: /sources/qemu/qemu/target-sh4/exec.h,v
retrieving revision 1.1
retrieving revision 1.2
exec.h +5 -0
@@ -28,6 +28,11 @@ register uint32_t T1 asm(AREG2); register uint32_t T2 asm(AREG3); +#define FT0 (env->ft0) +#define FT1 (env->ft1) +#define DT0 (env->dt0) +#define DT1 (env->dt1) +#include "cpu.h" #include "exec-all.h"
Index: op.c
===================================================================
RCS file: /sources/qemu/qemu/target-sh4/op.c,v
retrieving revision 1.1
retrieving revision 1.2
op.c +85 -1
134 lines not on this page · raw message
Index: op_mem.c
===================================================================
RCS file: /sources/qemu/qemu/target-sh4/op_mem.c,v retrieving revision 1.1
retrieving revision 1.2
op_mem.c +20 -0
@@ -56,3 +56,23 @@glue (stl,MEMSUFFIX ) (T1 ,T0 );RETURN (); } + +void glue (op_ldfl_T0_FT0 ,MEMSUFFIX ) (void ) { +FT0 =glue (ldfl,MEMSUFFIX ) (T0 ); +RETURN (); +} + +void glue (op_stfl_FT0_T1 ,MEMSUFFIX ) (void ) { +glue (stfl,MEMSUFFIX ) (T1 ,FT0 ); +RETURN (); +} + +void glue (op_ldfq_T0_DT0 ,MEMSUFFIX ) (void ) { +DT0 =glue (ldfq,MEMSUFFIX ) (T0 ); +RETURN (); +} + +void glue (op_stfq_DT0_T1 ,MEMSUFFIX ) (void ) { +glue (stfq,MEMSUFFIX ) (T1 ,DT0 ); +RETURN (); +}
Index: translate.c
===================================================================
RCS file: /sources/qemu/qemu/target-sh4/translate.c,v retrieving revision 1.1
retrieving revision 1.2
translate.c +181 -31
288 lines not on this page · raw message