Search
lxdream.org :: lxdream/src/sh4/sh4.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/sh4.c
changeset 412:d58e4d69de16
prev401:f79327f39818
next418:b9b14afa0959
author nkeynes
date Mon Oct 01 11:51:25 2007 +0000 (14 years ago)
permissions -rw-r--r--
last change Fix fr_bank on save file load
file annotate diff log raw
1.1 --- a/src/sh4/sh4.c Thu Sep 20 08:37:19 2007 +0000
1.2 +++ b/src/sh4/sh4.c Mon Oct 01 11:51:25 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: sh4.c,v 1.2 2007-09-20 08:37:19 nkeynes Exp $
1.6 + * $Id: sh4.c,v 1.3 2007-10-01 11:51:25 nkeynes Exp $
1.7 *
1.8 * SH4 parent module for all CPU modes and SH4 peripheral
1.9 * modules.
1.10 @@ -117,6 +117,7 @@
1.11 int sh4_load_state( FILE * f )
1.12 {
1.13 fread( &sh4r, sizeof(sh4r), 1, f );
1.14 + sh4r.fr_bank = &sh4r.fr[(sh4r.fpscr&FPSCR_FR)>>21][0]; // Fixup internal FR pointer
1.15 MMU_load_state( f );
1.16 INTC_load_state( f );
1.17 TMU_load_state( f );
.