/[dynamips]/upstream/dynamips-0.2.7-RC3/mips_mts.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /upstream/dynamips-0.2.7-RC3/mips_mts.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

upstream/dynamips-0.2.7-RC2/mips_mts.c revision 8 by dpavlin, Sat Oct 6 16:24:54 2007 UTC upstream/dynamips-0.2.7-RC3/mips_mts.c revision 9 by dpavlin, Sat Oct 6 16:26:06 2007 UTC
# Line 580  fastcall u_int MTS_PROTO(cache)(cpu_mips Line 580  fastcall u_int MTS_PROTO(cache)(cpu_mips
580  #endif  #endif
581    
582     if (cpu->exec_blk_map) {     if (cpu->exec_blk_map) {
583        pc_hash = mips64_jit_get_pc_hash(cpu->pc);        pc_hash = mips64_jit_get_pc_hash(vaddr);
584        block = cpu->exec_blk_map[pc_hash];        block = cpu->exec_blk_map[pc_hash];
585    
586        if (block && mips64_jit_tcb_match(cpu,block)) {        if (block && (block->start_pc == (vaddr & MIPS_MIN_PAGE_MASK))) {
587  #if DEBUG_CACHE  #if DEBUG_CACHE
588           cpu_log(cpu->gen,"MTS",           cpu_log(cpu->gen,"MTS",
589                   "CACHE: removing compiled page at 0x%llx, pc=0x%llx\n",                   "CACHE: removing compiled page at 0x%llx, pc=0x%llx\n",
# Line 597  fastcall u_int MTS_PROTO(cache)(cpu_mips Line 597  fastcall u_int MTS_PROTO(cache)(cpu_mips
597  #if DEBUG_CACHE  #if DEBUG_CACHE
598           cpu_log(cpu->gen,"MTS",           cpu_log(cpu->gen,"MTS",
599                   "CACHE: trying to remove page 0x%llx with pc=0x%llx\n",                   "CACHE: trying to remove page 0x%llx with pc=0x%llx\n",
600                   block->start_pc,cpu->pc);                   vaddr, cpu->pc);
601  #endif  #endif
602            
603        }        }
604     }     }
605    

Legend:
Removed from v.8  
changed lines
  Added in v.9

  ViewVC Help
Powered by ViewVC 1.1.26