URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 1550 |
Rev 1551 |
Line 57... |
Line 57... |
|
|
/* Benchmark multi issue execution */
|
/* Benchmark multi issue execution */
|
int multissue[20];
|
int multissue[20];
|
int issued_per_cycle = 4;
|
int issued_per_cycle = 4;
|
|
|
/* Previous program counter */
|
|
oraddr_t pcprev = 0;
|
|
|
|
/* Temporary program counter */
|
/* Temporary program counter */
|
oraddr_t pcnext;
|
oraddr_t pcnext;
|
|
|
/* Store buffer analysis - stores are accumulated and commited when IO is idle */
|
/* Store buffer analysis - stores are accumulated and commited when IO is idle */
|
static int sbuf_head = 0, sbuf_tail = 0, sbuf_count = 0;
|
static int sbuf_head = 0, sbuf_tail = 0, sbuf_count = 0;
|
Line 296... |
Line 293... |
|
|
/* This code actually updates the PC value. */
|
/* This code actually updates the PC value. */
|
static inline void update_pc (void)
|
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 */
|
cpu_state.sprs[SPR_PPC] = 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;
|
}
|
}
|
|
|
#if SIMPLE_EXECUTION
|
#if SIMPLE_EXECUTION
|
© copyright 1999-2025
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.