URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 479 |
Rev 535 |
Line 32... |
Line 32... |
extern unsigned long pcnext;
|
extern unsigned long pcnext;
|
extern unsigned long pc_phy;
|
extern unsigned long pc_phy;
|
extern struct iqueue_entry iqueue[];
|
extern struct iqueue_entry iqueue[];
|
|
|
extern int delay_insn;
|
extern int delay_insn;
|
int cycle_delay = 0; /* Added by CZ 27/05/01 */
|
|
|
|
struct _pending pending;
|
struct _pending pending;
|
|
|
/* Discards all pending exceptions */
|
/* Discards all pending exceptions */
|
void clear_pending_exception()
|
void clear_pending_exception()
|
Line 61... |
Line 60... |
else
|
else
|
pending.saved = pc;
|
pending.saved = pc;
|
printf("Exception 0x%x (%s): insn_addr 0x%x, EA 0x%x, pc: 0x%x, pcnext: 0x%x\n",
|
printf("Exception 0x%x (%s): insn_addr 0x%x, EA 0x%x, pc: 0x%x, pcnext: 0x%x\n",
|
except, EXCEPT_NAME(except), iqueue[0].insn_addr, ea, pc, pcnext);
|
except, EXCEPT_NAME(except), iqueue[0].insn_addr, ea, pc, pcnext);
|
}
|
}
|
|
|
cycle_delay = 0; /* An exception stalls the CPU 0 clock cycles */
|
|
}
|
}
|
|
|
/* 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)
|
{
|
{
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.