Search
lxdream.org :: lxdream :: r412:d58e4d69de16
lxdream 0.9.1
released Jun 29
Download Now
changeset412:d58e4d69de16
parent411:5ae249d63c44
child413:bff683bc5228
authornkeynes
dateMon Oct 01 11:51:25 2007 +0000 (16 years ago)
Fix fr_bank on save file load
src/sh4/sh4.c
1.1 --- a/src/sh4/sh4.c Sun Sep 30 21:19:43 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 );
.