/[dynamips]/upstream/dynamips-0.2.7-RC3/ppc32_exec.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/ppc32_exec.c

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

upstream/dynamips-0.2.7-RC2/ppc32_exec.c revision 8 by dpavlin, Sat Oct 6 16:24:54 2007 UTC upstream/dynamips-0.2.7-RC3/ppc32_exec.c revision 9 by dpavlin, Sat Oct 6 16:26:06 2007 UTC
# Line 145  fastcall int ppc32_exec_single_insn_ext( Line 145  fastcall int ppc32_exec_single_insn_ext(
145     return(res);     return(res);
146  }  }
147    
148    /* Execute a page */
149    fastcall int ppc32_exec_page(cpu_ppc_t *cpu)
150    {
151       m_uint32_t exec_page,offset;
152       ppc_insn_t insn;
153       int res;
154    
155       exec_page = cpu->ia & ~PPC32_MIN_PAGE_IMASK;
156       cpu->njm_exec_page = exec_page;
157       cpu->njm_exec_ptr  = cpu->mem_op_lookup(cpu,exec_page,PPC32_MTS_ICACHE);
158    
159       do {
160          offset = (cpu->ia & PPC32_MIN_PAGE_IMASK) >> 2;
161          insn = vmtoh32(cpu->njm_exec_ptr[offset]);
162    
163          res = ppc32_exec_single_instruction(cpu,insn);
164          if (likely(!res)) cpu->ia += sizeof(ppc_insn_t);
165       }while((cpu->ia & ~PPC32_MIN_PAGE_IMASK) == exec_page);
166    
167       return(0);
168    }
169    
170  /* Run PowerPC code in step-by-step mode */  /* Run PowerPC code in step-by-step mode */
171  void *ppc32_exec_run_cpu(cpu_gen_t *gen)  void *ppc32_exec_run_cpu(cpu_gen_t *gen)
172  {    {  

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

  ViewVC Help
Powered by ViewVC 1.1.26