OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 1558 to Rev 1559
    Reverse comparison

Rev 1558 → Rev 1559

/trunk/or1ksim/tick/tick.c
69,13 → 69,14
void tick_raise_except(void *dat)
{
cpu_state.sprs[SPR_TTMR] |= SPR_TTMR_IP;
/* be sure not to issue a timer exception if an exception occured before it */
if(cpu_state.sprs[SPR_SR] & SPR_SR_TEE)
except_handle(EXCEPT_TICK, cpu_state.sprs[SPR_EEAR_BASE]);
 
/* Reschedule unconditionally, since we have to raise the exception until
* TTMR_IP has been cleared */
sched_next_insn(tick_raise_except, NULL);
 
/* be sure not to issue a timer exception if an exception occured before it */
if(cpu_state.sprs[SPR_SR] & SPR_SR_TEE)
except_handle(EXCEPT_TICK, cpu_state.sprs[SPR_EEAR_BASE]);
}
 
/* Restarts the tick timer */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.