Searched refs:inst_before (Results 1 – 2 of 2) sorted by relevance
17 register unsigned long inst_before, inst_count; in supervisor_thread_function() local25 inst_before = csr_read(0xB02); in supervisor_thread_function()37 if (inst_count > inst_before) { in supervisor_thread_function()38 inst_count -= inst_before; in supervisor_thread_function()40 inst_count += 0xFFFFFFFF - inst_before; in supervisor_thread_function()
17 register unsigned long inst_before, inst_count; in user_thread_function() local25 inst_before = csr_read(0xC02); in user_thread_function()37 if (inst_count > inst_before) { in user_thread_function()38 inst_count -= inst_before; in user_thread_function()40 inst_count += 0xFFFFFFFF - inst_before; in user_thread_function()