URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 729 |
Rev 805 |
Line 45... |
Line 45... |
It does internal functional PIC simulation. */
|
It does internal functional PIC simulation. */
|
inline void pic_clock()
|
inline void pic_clock()
|
{
|
{
|
/* Don't do anything if interrupts not currently enabled or
|
/* Don't do anything if interrupts not currently enabled or
|
higher priority exception was allready reported */
|
higher priority exception was allready reported */
|
if(testsprbits (SPR_SR, SPR_SR_IEE) && mfspr(SPR_PICSR) && !pending.valid)
|
if(mfspr(SPR_PICSR) && testsprbits (SPR_SR, SPR_SR_IEE) && !pending.valid)
|
except_handle(EXCEPT_INT, mfspr(SPR_EEAR_BASE));
|
except_handle(EXCEPT_INT, mfspr(SPR_EEAR_BASE));
|
}
|
}
|
|
|
/* Asserts interrupt to the PIC. */
|
/* Asserts interrupt to the PIC. */
|
void report_interrupt(int line)
|
void report_interrupt(int line)
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.