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();
|