Revision a8170e5e hw/xilinx_timer.c

b/hw/xilinx_timer.c
72 72
    return 2 - t->one_timer_only;
73 73
}
74 74

  
75
static inline unsigned int timer_from_addr(target_phys_addr_t addr)
75
static inline unsigned int timer_from_addr(hwaddr addr)
76 76
{
77 77
    /* Timers get a 4x32bit control reg area each.  */
78 78
    return addr >> 2;
......
93 93
}
94 94

  
95 95
static uint64_t
96
timer_read(void *opaque, target_phys_addr_t addr, unsigned int size)
96
timer_read(void *opaque, hwaddr addr, unsigned int size)
97 97
{
98 98
    struct timerblock *t = opaque;
99 99
    struct xlx_timer *xt;
......
142 142
}
143 143

  
144 144
static void
145
timer_write(void *opaque, target_phys_addr_t addr,
145
timer_write(void *opaque, hwaddr addr,
146 146
            uint64_t val64, unsigned int size)
147 147
{
148 148
    struct timerblock *t = opaque;

Also available in: Unified diff