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

Subversion Repositories or1k

[/] [or1k/] [branches/] [stable_0_1_x/] [or1ksim/] [cpu/] [or1k/] [except.c] - Diff between revs 1308 and 1319

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

Rev 1308 Rev 1319
Line 58... Line 58...
    pending.address = ea;
    pending.address = ea;
    if (delay_insn)
    if (delay_insn)
      pending.saved = pc - 4;
      pending.saved = pc - 4;
    else
    else
      pending.saved = pc;
      pending.saved = pc;
    if (config.sim.verbose) PRINTF("Exception 0x%x (%s) at 0x%lx, EA: 0x%lx, ppc: 0x%lx, npc: 0x%lx, #%d\n",
    if (config.sim.verbose) PRINTF("Exception 0x%x (%s) at 0x%lx, EA: 0x%lx, ppc: 0x%lx, npc: 0x%lx, cycles %lld, #%lld\n",
                                   except, EXCEPT_NAME(except), iqueue[0].insn_addr, ea, pc, pcnext, runtime.cpu.instructions);
                                   except, EXCEPT_NAME(except), iqueue[0].insn_addr, ea, pc, pcnext, runtime.sim.cycles, runtime.cpu.instructions);
  }
  }
}
}
 
 
/* Actually handles exception */
/* Actually handles exception */
void except_handle_backend (int except, unsigned long ea, unsigned long pc_saved)
void except_handle_backend (int except, unsigned long ea, unsigned long pc_saved)

powered by: WebSVN 2.1.0

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