Search
lxdream.org :: lxdream/src/sh4/sh4core.in :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/sh4core.in
changeset 1103:de9ad2c0cf56
prev1083:34895c8bab20
next1125:9dd5dee45db9
author nkeynes
date Sun Feb 21 11:19:59 2010 +1000 (10 years ago)
permissions -rw-r--r--
last change Update sh4r.pc before doing the syscall - mainly so that debugging etc
statements come out with a useful PC value rather than the syscall id
file annotate diff log raw
1.1 --- a/src/sh4/sh4core.in Wed Dec 02 10:36:49 2009 +1000
1.2 +++ b/src/sh4/sh4core.in Sun Feb 21 11:19:59 2010 +1000
1.3 @@ -364,10 +364,10 @@
1.4 pc = sh4r.pc;
1.5 if( pc > 0xFFFFFF00 ) {
1.6 /* SYSCALL Magic */
1.7 + sh4r.in_delay_slot = 0;
1.8 + sh4r.pc = sh4r.pr;
1.9 + sh4r.new_pc = sh4r.pc + 2;
1.10 syscall_invoke( pc );
1.11 - sh4r.in_delay_slot = 0;
1.12 - pc = sh4r.pc = sh4r.pr;
1.13 - sh4r.new_pc = sh4r.pc + 2;
1.14 return TRUE;
1.15 }
1.16 CHECKRALIGN16(pc);
.