Search
lxdream.org :: lxdream/src/sh4/sh4.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/sh4.c
changeset 502:c4ecae2b1b5e
prev472:8a3ae91eb215
next526:ba3da45b5754
author nkeynes
date Thu Nov 08 11:54:16 2007 +0000 (16 years ago)
permissions -rw-r--r--
last change Add sh4ptr_t type, start converting bare pointer refs to it
file annotate diff log raw
1.1 --- a/src/sh4/sh4.c Wed Oct 31 09:02:18 2007 +0000
1.2 +++ b/src/sh4/sh4.c Thu Nov 08 11:54:16 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: sh4.c,v 1.6 2007-10-31 09:02:18 nkeynes Exp $
1.6 + * $Id: sh4.c,v 1.7 2007-11-08 11:54:16 nkeynes Exp $
1.7 *
1.8 * SH4 parent module for all CPU modes and SH4 peripheral
1.9 * modules.
1.10 @@ -52,7 +52,7 @@
1.11 struct sh4_registers sh4r;
1.12 struct breakpoint_struct sh4_breakpoints[MAX_BREAKPOINTS];
1.13 int sh4_breakpoint_count = 0;
1.14 -extern char *sh4_main_ram;
1.15 +extern sh4ptr_t sh4_main_ram;
1.16
1.17 void sh4_set_use_xlat( gboolean use )
1.18 {
1.19 @@ -106,6 +106,11 @@
1.20
1.21 void sh4_stop(void)
1.22 {
1.23 + if( sh4_module.run_time_slice == sh4_xlat_run_slice ) {
1.24 + /* If we were running with the translator, update new_pc and in_delay_slot */
1.25 + sh4r.new_pc = sh4r.pc+2;
1.26 + sh4r.in_delay_slot = FALSE;
1.27 + }
1.28
1.29 }
1.30
.