Search
lxdream.org :: lxdream/src/sh4/sh4trans.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/sh4trans.c
changeset 1014:f5914b2fd0db
prev1003:7b2688cbbca3
next1065:bc1cc0c54917
author nkeynes
date Sun May 24 08:30:35 2009 +0000 (13 years ago)
permissions -rw-r--r--
last change 000068: Handle sh4_finalize_instruction being called from a syscall (assertion failure)
(Also introduce IS_SYSCALL() macro to tidy up slightly)
file annotate diff log raw
1.1 --- a/src/sh4/sh4trans.c Fri Mar 27 06:13:34 2009 +0000
1.2 +++ b/src/sh4/sh4trans.c Sun May 24 08:30:35 2009 +0000
1.3 @@ -46,7 +46,7 @@
1.4 }
1.5
1.6 if( code == NULL ) {
1.7 - if( sh4r.pc > 0xFFFFFF00 ) {
1.8 + if( IS_SYSCALL(sh4r.pc) ) {
1.9 syscall_invoke( sh4r.pc );
1.10 sh4r.in_delay_slot = 0;
1.11 sh4r.pc = sh4r.pr;
1.12 @@ -220,7 +220,7 @@
1.13 return xlat_get_code( GET_ICACHE_PHYS(vma) );
1.14 }
1.15
1.16 - if( vma > 0xFFFFFF00 ) {
1.17 + if( IS_SYSCALL(vma) ) {
1.18 // lxdream hook
1.19 return NULL;
1.20 }
.