Diff for /qemu/hw/realview_gic.c between versions 1.1.1.1 and 1.1.1.2

version 1.1.1.1, 2018/04/24 16:48:28 version 1.1.1.2, 2018/04/24 16:52:42
Line 25  gic_get_current_cpu(void) Line 25  gic_get_current_cpu(void)
 static uint32_t realview_gic_cpu_read(void *opaque, target_phys_addr_t offset)  static uint32_t realview_gic_cpu_read(void *opaque, target_phys_addr_t offset)
 {  {
     gic_state *s = (gic_state *)opaque;      gic_state *s = (gic_state *)opaque;
     offset -= s->base;  
     return gic_cpu_read(s, gic_get_current_cpu(), offset);      return gic_cpu_read(s, gic_get_current_cpu(), offset);
 }  }
   
Line 33  static void realview_gic_cpu_write(void  Line 32  static void realview_gic_cpu_write(void 
                           uint32_t value)                            uint32_t value)
 {  {
     gic_state *s = (gic_state *)opaque;      gic_state *s = (gic_state *)opaque;
     offset -= s->base;  
     gic_cpu_write(s, gic_get_current_cpu(), offset, value);      gic_cpu_write(s, gic_get_current_cpu(), offset, value);
 }  }
   
Line 54  qemu_irq *realview_gic_init(uint32_t bas Line 52  qemu_irq *realview_gic_init(uint32_t bas
     gic_state *s;      gic_state *s;
     int iomemtype;      int iomemtype;
   
     s = gic_init(base, &parent_irq);      s = gic_init(base + 0x1000, &parent_irq);
     if (!s)      if (!s)
         return NULL;          return NULL;
     iomemtype = cpu_register_io_memory(0, realview_gic_cpu_readfn,      iomemtype = cpu_register_io_memory(0, realview_gic_cpu_readfn,

Removed from v.1.1.1.1  
changed lines
  Added in v.1.1.1.2


unix.superglobalmegacorp.com