OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [tags/] [nog_patch_47/] [or1ksim/] [cpu/] [common/] [abstract.c] - Diff between revs 1240 and 1244

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 1240 Rev 1244
Line 360... Line 360...
 
 
  if (config.sim.mprofile)
  if (config.sim.mprofile)
    mprofile (memaddr, MPROF_32 | MPROF_FETCH);
    mprofile (memaddr, MPROF_32 | MPROF_FETCH);
//  memaddr = simulate_ic_mmu_fetch(memaddr);
//  memaddr = simulate_ic_mmu_fetch(memaddr);
  cur_vadd = pc;
  cur_vadd = pc;
  if (config.debug.enabled)
 
    *breakpoint += CheckDebugUnit(DebugLoadAddress,memaddr); /* 28/05/01 CZ */
  // I think this does not belong into eval_insn() 2004-01-30 HP
 
//  if (config.debug.enabled)
 
//    *breakpoint += CheckDebugUnit(DebugLoadAddress,memaddr); /* 28/05/01 CZ */
 
 
 
  // We could place the CheckDebugUnit(DebugInstructionFetch) here, but it is currently done
 
  // in decode_execute_wrapper, so I leave it like this. 2004-01-30 HP
 
 
  if (config.ic.enabled)
  if (config.ic.enabled)
    temp = ic_simulate_fetch(memaddr);
    temp = ic_simulate_fetch(memaddr);
  else {
  else {
    temp = evalsim_mem32(memaddr);
    temp = evalsim_mem32(memaddr);
    if (!cur_area) {
    if (!cur_area) {
Line 373... Line 379...
      except_handle(EXCEPT_BUSERR, cur_vadd);
      except_handle(EXCEPT_BUSERR, cur_vadd);
      temp = 0;
      temp = 0;
    }
    }
  }
  }
 
 
  if (config.debug.enabled)
  // I think this does not belong into eval_insn() 2004-01-30 HP
    *breakpoint += CheckDebugUnit(DebugLoadData,temp);  /* MM170901 */
//  if (config.debug.enabled)
 
//    *breakpoint += CheckDebugUnit(DebugLoadData,temp);  /* MM170901 */
  return temp;
  return temp;
}
}
 
 
/* Returns 16-bit values from mem array. Big endian version. */
/* Returns 16-bit values from mem array. Big endian version. */
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.