/[qemu]/qemu/hw/openpic.c
ViewVC logotype

Diff of /qemu/hw/openpic.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.7 by bellard, Sun Jun 5 14:50:39 2005 UTC revision 1.8 by bellard, Mon Nov 21 23:29:55 2005 UTC
# Line 265  static void IRQ_local_pipe (openpic_t *o Line 265  static void IRQ_local_pipe (openpic_t *o
265      if (priority > dst->raised.priority) {      if (priority > dst->raised.priority) {
266          IRQ_get_next(opp, &dst->raised);          IRQ_get_next(opp, &dst->raised);
267          DPRINTF("Raise CPU IRQ\n");          DPRINTF("Raise CPU IRQ\n");
268          cpu_interrupt(cpu_single_env, CPU_INTERRUPT_HARD);          /* XXX: choose the correct cpu */
269            cpu_interrupt(first_cpu, CPU_INTERRUPT_HARD);
270      }      }
271  }  }
272    
# Line 532  static void openpic_gbl_write (void *opa Line 533  static void openpic_gbl_write (void *opa
533          /* XXX: Should be able to reset any CPU */          /* XXX: Should be able to reset any CPU */
534          if (val & 1) {          if (val & 1) {
535              DPRINTF("Reset CPU IRQ\n");              DPRINTF("Reset CPU IRQ\n");
536              //            cpu_interrupt(cpu_single_env, CPU_INTERRUPT_RESET);              //            cpu_interrupt(first_cpu, CPU_INTERRUPT_RESET);
537          }          }
538          break;          break;
539  #if MAX_IPI > 0  #if MAX_IPI > 0
# Line 781  static void openpic_cpu_write (void *opa Line 782  static void openpic_cpu_write (void *opa
782              src = &opp->src[n_IRQ];              src = &opp->src[n_IRQ];
783              if (IPVP_PRIORITY(src->ipvp) > dst->servicing.priority) {              if (IPVP_PRIORITY(src->ipvp) > dst->servicing.priority) {
784                  DPRINTF("Raise CPU IRQ\n");                  DPRINTF("Raise CPU IRQ\n");
785                  cpu_interrupt(cpu_single_env, CPU_INTERRUPT_HARD);                  /* XXX: choose cpu */
786                    cpu_interrupt(first_cpu, CPU_INTERRUPT_HARD);
787              }              }
788          }          }
789          break;          break;

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26