URL
https://opencores.org/ocsvn/or1k/or1k/trunk
[/] [or1k/] [trunk/] [or1ksim/] [cpu/] [or32/] [execute.c] - Diff between revs 1514 and 1550
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 1514 |
Rev 1550 |
Line 293... |
Line 293... |
|
|
return 0;
|
return 0;
|
}
|
}
|
|
|
/* This code actually updates the PC value. */
|
/* This code actually updates the PC value. */
|
static inline void update_pc ()
|
static inline void update_pc (void)
|
{
|
{
|
cpu_state.delay_insn = next_delay_insn;
|
cpu_state.delay_insn = next_delay_insn;
|
pcprev = cpu_state.pc; /* Store value for later */
|
pcprev = cpu_state.pc; /* Store value for later */
|
cpu_state.pc = pcnext;
|
cpu_state.pc = pcnext;
|
pcnext = cpu_state.delay_insn ? cpu_state.pc_delay : pcnext + 4;
|
pcnext = cpu_state.delay_insn ? cpu_state.pc_delay : pcnext + 4;
|
Line 603... |
Line 603... |
if(breakpoint)
|
if(breakpoint)
|
except_handle(EXCEPT_TRAP, cpu_state.sprs[SPR_EEAR_BASE]);
|
except_handle(EXCEPT_TRAP, cpu_state.sprs[SPR_EEAR_BASE]);
|
}
|
}
|
|
|
/* Reset the CPU */
|
/* Reset the CPU */
|
void cpu_reset()
|
void cpu_reset(void)
|
{
|
{
|
int i;
|
int i;
|
struct hist_exec *hist_exec_head = NULL;
|
struct hist_exec *hist_exec_head = NULL;
|
struct hist_exec *hist_exec_new;
|
struct hist_exec *hist_exec_new;
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.