Search
lxdream.org :: lxdream/src/sh4/sh4trans.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/sh4trans.c
changeset 569:a1c49e1e8776
prev561:533f6b478071
next571:9bc09948d0f2
author nkeynes
date Fri Jan 04 11:54:17 2008 +0000 (16 years ago)
branchlxdream-mmu
permissions -rw-r--r--
last change Bring icache partially into line with the mmu, a little less slow with AT off
now.
file annotate diff log raw
1.1 --- a/src/sh4/sh4trans.c Tue Jan 01 05:08:38 2008 +0000
1.2 +++ b/src/sh4/sh4trans.c Fri Jan 04 11:54:17 2008 +0000
1.3 @@ -61,19 +61,8 @@
1.4 sh4r.pc = sh4r.pr;
1.5 }
1.6
1.7 - code = xlat_get_code(sh4r.pc);
1.8 + code = xlat_get_code_by_vma( sh4r.pc );
1.9 if( code == NULL ) {
1.10 - uint64_t ppa = mmu_vma_to_phys_exec( sh4r.pc );
1.11 - if( ppa>>32 ) {
1.12 - // not found, exception
1.13 - ppa = mmu_vma_to_phys_exec( sh4r.pc );
1.14 - if( ppa>>32 ) {
1.15 - // double fault - halt
1.16 - dreamcast_stop();
1.17 - ERROR( "Double fault - halting" );
1.18 - return nanosecs;
1.19 - }
1.20 - }
1.21 code = sh4_translate_basic_block( sh4r.pc );
1.22 }
1.23 }
.