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 1350 and 1432

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

Rev 1350 Rev 1432
Line 15... Line 15...
 
 
You should have received a copy of the GNU General Public License
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
 
 
 
struct cpu_state {
 
  /* General purpose registers. */
 
  uorreg_t reg[MAX_GPRS];
 
 
 
  /* Sprs */
 
  uorreg_t sprs[MAX_SPRS];
 
 
 
  /* Effective address of instructions that have an effective address.  This is
 
   * only used to get dump_exe_log correct */
 
  oraddr_t insn_ea;
 
 
 
  /* Is current instruction in execution in a delay slot? */
 
  int delay_insn;
 
 
 
  /* Program counter (and translated PC) */
 
  oraddr_t pc;
 
 
 
  /* Delay instruction effective address register */
 
  oraddr_t pc_delay;
 
 
 
  /* Decoding of the just executed instruction.  Only used in analysis(). */
 
  struct iqueue_entry iqueue;
 
 
 
  /* decoding of the instruction that was executed before this one.  Only used
 
   * in analysis(). */
 
  struct iqueue_entry icomplet;
 
};
 
 
 
extern struct cpu_state cpu_state;
 
 
#define CURINSN(INSN) (strcmp(cur->insn, (INSN)) == 0)
#define CURINSN(INSN) (strcmp(cur->insn, (INSN)) == 0)
 
 
/*extern machword eval_operand(char *srcoperand,int* breakpoint);
/*extern machword eval_operand(char *srcoperand,int* breakpoint);
extern void set_operand(char *dstoperand, unsigned long value,int* breakpoint);*/
extern void set_operand(char *dstoperand, unsigned long value,int* breakpoint);*/
void dumpreg();
void dumpreg();

powered by: WebSVN 2.1.0

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