Search
lxdream.org :: lxdream/src/sh4/sh4trans.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/sh4trans.c
changeset 1103:de9ad2c0cf56
prev1094:d2324eb67223
next1112:4cac5e474d4c
author nkeynes
date Sun Feb 21 11:19:59 2010 +1000 (12 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/sh4trans.c Mon Dec 21 08:23:54 2009 +1000
1.2 +++ b/src/sh4/sh4trans.c Sun Feb 21 11:19:59 2010 +1000
1.3 @@ -47,9 +47,10 @@
1.4
1.5 if( code == NULL ) {
1.6 if( IS_SYSCALL(sh4r.pc) ) {
1.7 - syscall_invoke( sh4r.pc );
1.8 + uint32_t pc = sh4r.pc;
1.9 + sh4r.pc = sh4r.pr;
1.10 sh4r.in_delay_slot = 0;
1.11 - sh4r.pc = sh4r.pr;
1.12 + syscall_invoke( pc );
1.13 }
1.14
1.15 code = xlat_get_code_by_vma( sh4r.pc );
.