revision 412:d58e4d69de16
summary |
tree |
shortlog |
changelog |
graph |
changeset |
raw | bz2 | zip | gz changeset | 412:d58e4d69de16 |
parent | 411:5ae249d63c44 |
child | 413:bff683bc5228 |
author | nkeynes |
date | Mon Oct 01 11:51:25 2007 +0000 (16 years ago) |
Fix fr_bank on save file load
src/sh4/sh4.c | view | annotate | diff | log |
1.1 --- a/src/sh4/sh4.c Sun Sep 30 21:19:43 2007 +00001.2 +++ b/src/sh4/sh4.c Mon Oct 01 11:51:25 2007 +00001.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 peripheral1.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 pointer1.15 MMU_load_state( f );1.16 INTC_load_state( f );1.17 TMU_load_state( f );
.