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

Subversion Repositories or1k

[/] [or1k/] [tags/] [rel-0-3-0-rc3/] [or1ksim/] [cpu/] [common/] [execute.h] - Diff between revs 1748 and 1751

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 1748 Rev 1751
Line 31... Line 31...
#include "opcode/or32.h"
#include "opcode/or32.h"
#include "abstract.h"
#include "abstract.h"
 
 
#if DYNAMIC_EXECUTION
#if DYNAMIC_EXECUTION
#include "setjmp.h"
#include "setjmp.h"
#include "dyn_rec.h"
#include "dyn-rec.h"
#endif
#endif
 
 
 
 
#define CURINSN(INSN) (strcmp(cur->insn, (INSN)) == 0)
#define CURINSN(INSN) (strcmp(cur->insn, (INSN)) == 0)
 
 
 
/*! Sets a new SPR_SR_OV value, based on next register value */
 
#if SET_OV_FLAG
 
#define SET_OV_FLAG_FN(value) \
 
  if((value) & 0x80000000) \
 
    cpu_state.sprs[SPR_SR] |= SPR_SR_OV; \
 
  else \
 
    cpu_state.sprs[SPR_SR] &= ~SPR_SR_OV
 
#else
 
#define SET_OV_FLAG_FN(value)
 
#endif
 
 
/*!The main structure holding the current execution state of the CPU
/*!The main structure holding the current execution state of the CPU
 
 
   Not to be confused with @c runtime, which holds the state of the
   Not to be confused with @c runtime, which holds the state of the
   simulation.
   simulation.
 
 
Line 101... Line 112...
extern void      cpu_reset ();
extern void      cpu_reset ();
extern int       cpu_clock ();
extern int       cpu_clock ();
extern void      exec_main ();
extern void      exec_main ();
extern int       depend_operands (struct iqueue_entry *prev,
extern int       depend_operands (struct iqueue_entry *prev,
                                  struct iqueue_entry *next);
                                  struct iqueue_entry *next);
 
 
#endif  /* EXECUTE__H */
#endif  /* EXECUTE__H */
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

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