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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [or1ksim/] [cpu/] [or1k/] [sprs.c] - Diff between revs 430 and 432

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. */

powered by: WebSVN 2.1.0

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