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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [or1ksim/] [cpu/] [or32/] [dyn32-defs.h] - Blame information for rev 294

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 19 jeremybenn
/* dyn32-defs.h -- Definitions for the dynamic execution model
2
 
3
   Copyright (C) 2005 György `nog' Jeney, nog@sdf.lonestar.org
4
   Copyright (C) 2008 Embecosm Limited
5
 
6
   Contributor Jeremy Bennett <jeremy.bennett@embecosm.com>
7
 
8
   This file is part of OpenRISC 1000 Architectural Simulator.
9
 
10
   This program is free software; you can redistribute it and/or modify it
11
   under the terms of the GNU General Public License as published by the Free
12
   Software Foundation; either version 3 of the License, or (at your option)
13
   any later version.
14
 
15
   This program is distributed in the hope that it will be useful, but WITHOUT
16
   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
17
   FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
18
   more details.
19
 
20
   You should have received a copy of the GNU General Public License along
21
   with this program.  If not, see <http://www.gnu.org/licenses/>. */
22
 
23
/* This program is commented throughout in a fashion suitable for processing
24
   with Doxygen. */
25
 
26
 
27
#ifndef DYN32_DEFS__H
28
#define DYN32_DEFS__H
29
 
30
 
31
/* Package includes */
32
#include "arch.h"
33
 
34
 
35
struct op_queue {
36
  unsigned int num_ops;
37
  unsigned int ops_len;
38
  unsigned int *ops;
39
  unsigned int num_ops_param;
40
  unsigned int ops_param_len;
41
  unsigned int *ops_param;
42
  unsigned int jump_local; /* Parameter index that holds the location of the jump */
43
  oraddr_t jump_local_loc; /* Location to jump to (relative to start of page */
44
  unsigned int not_jump_loc; /* Location to jump if not jumping (l.bf/l.bnf) */
45
  int xref; /* Is this location cross referenced? */
46
  oraddr_t insn_addr; /* Physical address of the instruction */
47
  unsigned int reg_t[3]; /* Which registers are in the temporaries (after the instruction)? */
48
  unsigned int tflags[3];
49
 
50
  int insn_index;
51
  unsigned int param_type[5]; /* opd->type */
52
  orreg_t param[5]; /* Value of operand */
53
  unsigned int param_num; /* Number of operands */
54
  uint32_t insn; /* Instruction word */
55
 
56
  struct op_queue *prev;
57
  struct op_queue *next;
58
};
59
 
60
void gen_l_add PARAMS((struct op_queue *, int *, int));
61
void gen_l_addc PARAMS((struct op_queue *, int *, int));
62
void gen_l_and PARAMS((struct op_queue *, int *, int));
63
void gen_l_bf PARAMS((struct op_queue *, int *, int));
64
void gen_l_bnf PARAMS((struct op_queue *, int *, int));
65
void gen_l_cmov PARAMS((struct op_queue *, int *, int));
66
void gen_l_cust1 PARAMS((struct op_queue *, int *, int));
67
void gen_l_cust2 PARAMS((struct op_queue *, int *, int));
68
void gen_l_cust3 PARAMS((struct op_queue *, int *, int));
69
void gen_l_cust4 PARAMS((struct op_queue *, int *, int));
70
void gen_l_div PARAMS((struct op_queue *, int *, int));
71
void gen_l_divu PARAMS((struct op_queue *, int *, int));
72
void gen_l_extbs PARAMS((struct op_queue *, int *, int));
73
void gen_l_extbz PARAMS((struct op_queue *, int *, int));
74
void gen_l_exths PARAMS((struct op_queue *, int *, int));
75
void gen_l_exthz PARAMS((struct op_queue *, int *, int));
76
void gen_l_extws PARAMS((struct op_queue *, int *, int));
77
void gen_l_extwz PARAMS((struct op_queue *, int *, int));
78
void gen_l_ff1 PARAMS((struct op_queue *, int *, int));
79
void gen_l_j PARAMS((struct op_queue *, int *, int));
80
void gen_l_jal PARAMS((struct op_queue *, int *, int));
81
void gen_l_jr PARAMS((struct op_queue *, int *, int));
82
void gen_l_jalr PARAMS((struct op_queue *, int *, int));
83
void gen_l_lbs PARAMS((struct op_queue *, int *, int));
84
void gen_l_lbz PARAMS((struct op_queue *, int *, int));
85
void gen_l_lhs PARAMS((struct op_queue *, int *, int));
86
void gen_l_lhz PARAMS((struct op_queue *, int *, int));
87
void gen_l_lws PARAMS((struct op_queue *, int *, int));
88
void gen_l_lwz PARAMS((struct op_queue *, int *, int));
89
void gen_l_mac PARAMS((struct op_queue *, int *, int));
90
void gen_l_macrc PARAMS((struct op_queue *, int *, int));
91
void gen_l_mfspr PARAMS((struct op_queue *, int *, int));
92
void gen_l_movhi PARAMS((struct op_queue *, int *, int));
93
void gen_l_msb PARAMS((struct op_queue *, int *, int));
94
void gen_l_mtspr PARAMS((struct op_queue *, int *, int));
95
void gen_l_mul PARAMS((struct op_queue *, int *, int));
96
void gen_l_mulu PARAMS((struct op_queue *, int *, int));
97
void gen_l_nop PARAMS((struct op_queue *, int *, int));
98
void gen_l_or PARAMS((struct op_queue *, int *, int));
99
void gen_l_rfe PARAMS((struct op_queue *, int *, int));
100
void gen_l_sb PARAMS((struct op_queue *, int *, int));
101
void gen_l_sh PARAMS((struct op_queue *, int *, int));
102
void gen_l_sw PARAMS((struct op_queue *, int *, int));
103
void gen_l_sfeq PARAMS((struct op_queue *, int *, int));
104
void gen_l_sfges PARAMS((struct op_queue *, int *, int));
105
void gen_l_sfgeu PARAMS((struct op_queue *, int *, int));
106
void gen_l_sfgts PARAMS((struct op_queue *, int *, int));
107
void gen_l_sfgtu PARAMS((struct op_queue *, int *, int));
108
void gen_l_sfles PARAMS((struct op_queue *, int *, int));
109
void gen_l_sfleu PARAMS((struct op_queue *, int *, int));
110
void gen_l_sflts PARAMS((struct op_queue *, int *, int));
111
void gen_l_sfltu PARAMS((struct op_queue *, int *, int));
112
void gen_l_sfne PARAMS((struct op_queue *, int *, int));
113
void gen_l_sll PARAMS((struct op_queue *, int *, int));
114
void gen_l_sra PARAMS((struct op_queue *, int *, int));
115
void gen_l_srl PARAMS((struct op_queue *, int *, int));
116
void gen_l_sub PARAMS((struct op_queue *, int *, int));
117
void gen_l_sys PARAMS((struct op_queue *, int *, int));
118
void gen_l_trap PARAMS((struct op_queue *, int *, int));
119
void gen_l_xor PARAMS((struct op_queue *, int *, int));
120
void gen_l_invalid PARAMS((struct op_queue *, int *, int));
121
 
122
void gen_lf_add_s PARAMS((struct op_queue *, int *, int));
123
void gen_lf_div_s PARAMS((struct op_queue *, int *, int));
124
void gen_lf_ftoi_s PARAMS((struct op_queue *, int *, int));
125
void gen_lf_itof_s PARAMS((struct op_queue *, int *, int));
126
void gen_lf_madd_s PARAMS((struct op_queue *, int *, int));
127
void gen_lf_mul_s PARAMS((struct op_queue *, int *, int));
128
void gen_lf_rem_s PARAMS((struct op_queue *, int *, int));
129
void gen_lf_sfeq_s PARAMS((struct op_queue *, int *, int));
130
void gen_lf_sfge_s PARAMS((struct op_queue *, int *, int));
131
void gen_lf_sfgt_s PARAMS((struct op_queue *, int *, int));
132
void gen_lf_sfle_s PARAMS((struct op_queue *, int *, int));
133
void gen_lf_sflt_s PARAMS((struct op_queue *, int *, int));
134
void gen_lf_sfne_s PARAMS((struct op_queue *, int *, int));
135
void gen_lf_sub_s PARAMS((struct op_queue *, int *, int));
136
void l_none(struct op_queue *opq, int *param_t, int delay_slot);
137
 
138
#endif  /*  DYN32_DEFS__H */
139
 

powered by: WebSVN 2.1.0

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