Revision a702b353 hw/slavio_timer.c
b/hw/slavio_timer.c | ||
---|---|---|
125 | 125 |
// of counter (user mode) |
126 | 126 |
slavio_timer_get_out(s); |
127 | 127 |
if (slavio_timer_is_user(s)) // read user timer LSW |
128 |
ret = s->count & 0xffffffe00;
|
|
128 |
ret = s->count & 0xfffffe00; |
|
129 | 129 |
else // read limit |
130 | 130 |
ret = (s->count & 0x7ffffe00) | s->reached; |
131 | 131 |
break; |
Also available in: Unified diff