URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
Compare Revisions
- This comparison shows the changes necessary to convert path
/openrisc/trunk/or1ksim/cpu/common
- from Rev 538 to Rev 552
- ↔ Reverse comparison
Rev 538 → Rev 552
/abstract.c
48,11 → 48,6
#include "immu.h" |
#include "execute.h" |
|
#if DYNAMIC_EXECUTION |
#include "dyn-rec.h" |
#endif |
|
|
/*! Global temporary variable to increase speed. */ |
struct dev_memarea *cur_area; |
|
561,12 → 556,10
mprofile (memaddr, MPROF_32 | MPROF_FETCH); |
|
phys_memaddr = memaddr; |
#if !(DYNAMIC_EXECUTION) |
phys_memaddr = immu_translate (memaddr); |
|
if (except_pending) |
return 0; |
#endif |
|
if (config.debug.enabled) |
*breakpoint += check_debug_unit (DebugInstructionFetch, memaddr); |
731,9 → 724,6
runtime.sim.mem_cycles += mem->ops.delayw; |
mem->ops.writefunc32 (memaddr & mem->size_mask, value, |
mem->ops.write_dat32); |
#if DYNAMIC_EXECUTION |
dyn_checkwrite (memaddr); |
#endif |
} |
else |
{ |
763,9 → 753,6
runtime.sim.mem_cycles += mem->ops.delayw; |
mem->ops.writefunc16 (memaddr & mem->size_mask, value, |
mem->ops.write_dat16); |
#if DYNAMIC_EXECUTION |
dyn_checkwrite (memaddr); |
#endif |
} |
else |
{ |
795,9 → 782,6
runtime.sim.mem_cycles += mem->ops.delayw; |
mem->ops.writefunc8 (memaddr & mem->size_mask, value, |
mem->ops.write_dat8); |
#if DYNAMIC_EXECUTION |
dyn_checkwrite (memaddr); |
#endif |
} |
else |
{ |
/execute.h
31,12 → 31,6
#include "opcode/or32.h" |
#include "abstract.h" |
|
#if DYNAMIC_EXECUTION |
#include "setjmp.h" |
#include "dyn-rec.h" |
#endif |
|
|
#define CURINSN(INSN) (strcmp(cur->insn, (INSN)) == 0) |
|
/*!The main structure holding the current execution state of the CPU |
61,13 → 55,6
struct iqueue_entry iqueue; /*!< Decode of just executed instr */ |
struct iqueue_entry icomplet; /*!< Decode of instr before this */ |
|
#if DYNAMIC_EXECUTION |
jmp_buf excpt_loc; /*!< Longjump here for exception */ |
struct dyn_page *curr_page; /*!< Current page in execution */ |
struct dyn_page **dyn_pages; /*!< Pointers to recompiled pages */ |
int32_t cycles_dec; |
struct op_queue *opqs; /*!< Micro-operation queue */ |
#endif |
}; |
|
/*! History of execution */ |