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

Subversion Repositories or1k

[/] [or1k/] [tags/] [nog_patch_47/] [or1ksim/] [cpu/] [or1k/] [except.c] - Diff between revs 167 and 182

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

Rev 167 Rev 182
Line 63... Line 63...
   later on. */
   later on. */
static unsigned long delayed_pc = 0;
static unsigned long delayed_pc = 0;
static unsigned long delayed_pcnext = 0;
static unsigned long delayed_pcnext = 0;
static int delayed_pc_valid = 0;
static int delayed_pc_valid = 0;
 
 
 
void ClearPreparedPCState()
 
{
 
  delayed_pc_valid = 0;
 
}
 
 
 
/* This routine is never called if the cpu is not stalled...
 
   i.e. cpu_stalled == 0. _execute_update_pc is called
 
   directly in that case. This routine exists to sort out
 
   the difference between a single step break and a full
 
   software break. */
void PrepareExceptionPC(unsigned long t_pc,unsigned long t_pcnext)
void PrepareExceptionPC(unsigned long t_pc,unsigned long t_pcnext)
{
{
  /* If a real exception occurred which has stalled
  /* If a real exception occurred which has stalled
     the CPU, we are expecting to halt before the end
     the CPU, we are expecting to halt before the end
     of the instruction. Otherwise, if it is a single
     of the instruction. Otherwise, if it is a single

powered by: WebSVN 2.1.0

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