Revision 8da3ff18 hw/realview_gic.c

b/hw/realview_gic.c
25 25
static uint32_t realview_gic_cpu_read(void *opaque, target_phys_addr_t offset)
26 26
{
27 27
    gic_state *s = (gic_state *)opaque;
28
    offset -= s->base;
29 28
    return gic_cpu_read(s, gic_get_current_cpu(), offset);
30 29
}
31 30

  
......
33 32
                          uint32_t value)
34 33
{
35 34
    gic_state *s = (gic_state *)opaque;
36
    offset -= s->base;
37 35
    gic_cpu_write(s, gic_get_current_cpu(), offset, value);
38 36
}
39 37

  
......
54 52
    gic_state *s;
55 53
    int iomemtype;
56 54

  
57
    s = gic_init(base, &parent_irq);
55
    s = gic_init(base + 0x1000, &parent_irq);
58 56
    if (!s)
59 57
        return NULL;
60 58
    iomemtype = cpu_register_io_memory(0, realview_gic_cpu_readfn,

Also available in: Unified diff