Searched refs:or1k_timer (Results 1 – 1 of 1) sorted by relevance
36 static OR1KTimerState *or1k_timer; variable40 or1k_timer->ttcr = val; in cpu_openrisc_count_set()41 or1k_timer->ttcr_offset = val; in cpu_openrisc_count_set()42 or1k_timer->clk_offset = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL); in cpu_openrisc_count_set()47 return or1k_timer->ttcr; in cpu_openrisc_count_get()59 or1k_timer->ttcr = or1k_timer->ttcr_offset + in cpu_openrisc_count_update()60 DIV_ROUND_UP(now - or1k_timer->clk_offset, TIMER_PERIOD); in cpu_openrisc_count_update()76 if ((cpu->env.ttmr & TTMR_TP) <= (or1k_timer->ttcr & TTMR_TP)) { in cpu_openrisc_timer_update()77 wait = TTMR_TP - (or1k_timer->ttcr & TTMR_TP) + 1; in cpu_openrisc_timer_update()80 wait = (cpu->env.ttmr & TTMR_TP) - (or1k_timer->ttcr & TTMR_TP); in cpu_openrisc_timer_update()[all …]