URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 430 |
Rev 432 |
Line 157... |
Line 157... |
/* When configured with level triggered interrupts we clear PICSR in PIC
|
/* When configured with level triggered interrupts we clear PICSR in PIC
|
when IRQ goes low */
|
when IRQ goes low */
|
cpu_state.sprs[SPR_PICSR] = prev_val;
|
cpu_state.sprs[SPR_PICSR] = prev_val;
|
break;
|
break;
|
case SPR_PICMR:
|
case SPR_PICMR:
|
|
/* If we have non-maskable interrupts, then the bottom two bits are always
|
|
one. */
|
|
if (config.pic.use_nmi)
|
|
{
|
|
cpu_state.sprs[SPR_SR] |= 0x00000003;
|
|
}
|
|
|
if(cpu_state.sprs[SPR_SR] & SPR_SR_IEE)
|
if(cpu_state.sprs[SPR_SR] & SPR_SR_IEE)
|
pic_ints_en();
|
pic_ints_en();
|
break;
|
break;
|
case SPR_PMR:
|
case SPR_PMR:
|
/* PMR[SDF] and PMR[DCGE] are ignored completely. */
|
/* PMR[SDF] and PMR[DCGE] are ignored completely. */
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.