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

Subversion Repositories or1k

[/] [or1k/] [tags/] [stable_0_2_0_rc2/] [or1ksim/] [cpu/] [or32/] [dyn32_defs.h] - Blame information for rev 1549

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

Line No. Rev Author Line
1 1549 nogj
/* dyn32_defs.h -- Definitions for the dynamic execution model
2 1452 nogj
   Copyright (C) 2005 György `nog' Jeney, nog@sdf.lonestar.org
3
 
4
This file is part of OpenRISC 1000 Architectural Simulator.
5
 
6
This program is free software; you can redistribute it and/or modify
7
it under the terms of the GNU General Public License as published by
8
the Free Software Foundation; either version 2 of the License, or
9
(at your option) any later version.
10
 
11
This program is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
GNU General Public License for more details.
15
 
16
You should have received a copy of the GNU General Public License
17
along with this program; if not, write to the Free Software
18
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
19
 
20
 
21
struct op_queue {
22
  unsigned int num_ops;
23
  unsigned int ops_len;
24
  unsigned int *ops;
25
  unsigned int num_ops_param;
26
  unsigned int ops_param_len;
27
  unsigned int *ops_param;
28 1481 nogj
  unsigned int jump_local; /* Parameter index that holds the location of the jump */
29
  oraddr_t jump_local_loc; /* Location to jump to (relative to start of page */
30
  unsigned int not_jump_loc; /* Location to jump if not jumping (l.bf/l.bnf) */
31
  int xref; /* Is this location cross referenced? */
32 1452 nogj
  oraddr_t insn_addr; /* Physical address of the instruction */
33 1481 nogj
  unsigned int reg_t[3]; /* Which registers are in the temporaries (before the instruction)? */
34
  unsigned int reg_t_d[3]; /* Which registers are in the temporaries (after the instruction? */
35 1452 nogj
  struct op_queue *prev;
36
  struct op_queue *next;
37
};
38
 
39
void gen_l_add PARAMS((struct op_queue *, int *, orreg_t *, int));
40
void gen_l_addc PARAMS((struct op_queue *, int *, orreg_t *, int));
41
void gen_l_and PARAMS((struct op_queue *, int *, orreg_t *, int));
42
void gen_l_bf PARAMS((struct op_queue *, int *, orreg_t *, int));
43
void gen_l_bnf PARAMS((struct op_queue *, int *, orreg_t *, int));
44
void gen_l_cmov PARAMS((struct op_queue *, int *, orreg_t *, int));
45
void gen_l_cust1 PARAMS((struct op_queue *, int *, orreg_t *, int));
46
void gen_l_cust2 PARAMS((struct op_queue *, int *, orreg_t *, int));
47
void gen_l_cust3 PARAMS((struct op_queue *, int *, orreg_t *, int));
48
void gen_l_cust4 PARAMS((struct op_queue *, int *, orreg_t *, int));
49
void gen_l_div PARAMS((struct op_queue *, int *, orreg_t *, int));
50
void gen_l_divu PARAMS((struct op_queue *, int *, orreg_t *, int));
51
void gen_l_extbs PARAMS((struct op_queue *, int *, orreg_t *, int));
52
void gen_l_extbz PARAMS((struct op_queue *, int *, orreg_t *, int));
53
void gen_l_exths PARAMS((struct op_queue *, int *, orreg_t *, int));
54
void gen_l_exthz PARAMS((struct op_queue *, int *, orreg_t *, int));
55
void gen_l_extws PARAMS((struct op_queue *, int *, orreg_t *, int));
56
void gen_l_extwz PARAMS((struct op_queue *, int *, orreg_t *, int));
57
void gen_l_ff1 PARAMS((struct op_queue *, int *, orreg_t *, int));
58
void gen_l_j PARAMS((struct op_queue *, int *, orreg_t *, int));
59
void gen_l_jal PARAMS((struct op_queue *, int *, orreg_t *, int));
60
void gen_l_jr PARAMS((struct op_queue *, int *, orreg_t *, int));
61
void gen_l_jalr PARAMS((struct op_queue *, int *, orreg_t *, int));
62
void gen_l_lbs PARAMS((struct op_queue *, int *, orreg_t *, int));
63
void gen_l_lbz PARAMS((struct op_queue *, int *, orreg_t *, int));
64
void gen_l_lhs PARAMS((struct op_queue *, int *, orreg_t *, int));
65
void gen_l_lhz PARAMS((struct op_queue *, int *, orreg_t *, int));
66
void gen_l_lws PARAMS((struct op_queue *, int *, orreg_t *, int));
67
void gen_l_lwz PARAMS((struct op_queue *, int *, orreg_t *, int));
68
void gen_l_mac PARAMS((struct op_queue *, int *, orreg_t *, int));
69
void gen_l_macrc PARAMS((struct op_queue *, int *, orreg_t *, int));
70
void gen_l_mfspr PARAMS((struct op_queue *, int *, orreg_t *, int));
71
void gen_l_movhi PARAMS((struct op_queue *, int *, orreg_t *, int));
72
void gen_l_msb PARAMS((struct op_queue *, int *, orreg_t *, int));
73
void gen_l_mtspr PARAMS((struct op_queue *, int *, orreg_t *, int));
74
void gen_l_mul PARAMS((struct op_queue *, int *, orreg_t *, int));
75
void gen_l_mulu PARAMS((struct op_queue *, int *, orreg_t *, int));
76
void gen_l_nop PARAMS((struct op_queue *, int *, orreg_t *, int));
77
void gen_l_or PARAMS((struct op_queue *, int *, orreg_t *, int));
78
void gen_l_rfe PARAMS((struct op_queue *, int *, orreg_t *, int));
79
void gen_l_sb PARAMS((struct op_queue *, int *, orreg_t *, int));
80
void gen_l_sh PARAMS((struct op_queue *, int *, orreg_t *, int));
81
void gen_l_sw PARAMS((struct op_queue *, int *, orreg_t *, int));
82
void gen_l_sfeq PARAMS((struct op_queue *, int *, orreg_t *, int));
83
void gen_l_sfges PARAMS((struct op_queue *, int *, orreg_t *, int));
84
void gen_l_sfgeu PARAMS((struct op_queue *, int *, orreg_t *, int));
85
void gen_l_sfgts PARAMS((struct op_queue *, int *, orreg_t *, int));
86
void gen_l_sfgtu PARAMS((struct op_queue *, int *, orreg_t *, int));
87
void gen_l_sfles PARAMS((struct op_queue *, int *, orreg_t *, int));
88
void gen_l_sfleu PARAMS((struct op_queue *, int *, orreg_t *, int));
89
void gen_l_sflts PARAMS((struct op_queue *, int *, orreg_t *, int));
90
void gen_l_sfltu PARAMS((struct op_queue *, int *, orreg_t *, int));
91
void gen_l_sfne PARAMS((struct op_queue *, int *, orreg_t *, int));
92
void gen_l_sll PARAMS((struct op_queue *, int *, orreg_t *, int));
93
void gen_l_sra PARAMS((struct op_queue *, int *, orreg_t *, int));
94
void gen_l_srl PARAMS((struct op_queue *, int *, orreg_t *, int));
95
void gen_l_sub PARAMS((struct op_queue *, int *, orreg_t *, int));
96
void gen_l_sys PARAMS((struct op_queue *, int *, orreg_t *, int));
97
void gen_l_trap PARAMS((struct op_queue *, int *, orreg_t *, int));
98
void gen_l_xor PARAMS((struct op_queue *, int *, orreg_t *, int));
99
void gen_l_invalid PARAMS((struct op_queue *, int *, orreg_t *, int));
100
 
101
void gen_lf_add_s PARAMS((struct op_queue *, int *, orreg_t *, int));
102
void gen_lf_div_s PARAMS((struct op_queue *, int *, orreg_t *, int));
103
void gen_lf_ftoi_s PARAMS((struct op_queue *, int *, orreg_t *, int));
104
void gen_lf_itof_s PARAMS((struct op_queue *, int *, orreg_t *, int));
105
void gen_lf_madd_s PARAMS((struct op_queue *, int *, orreg_t *, int));
106
void gen_lf_mul_s PARAMS((struct op_queue *, int *, orreg_t *, int));
107
void gen_lf_rem_s PARAMS((struct op_queue *, int *, orreg_t *, int));
108
void gen_lf_sfeq_s PARAMS((struct op_queue *, int *, orreg_t *, int));
109
void gen_lf_sfge_s PARAMS((struct op_queue *, int *, orreg_t *, int));
110
void gen_lf_sfgt_s PARAMS((struct op_queue *, int *, orreg_t *, int));
111
void gen_lf_sfle_s PARAMS((struct op_queue *, int *, orreg_t *, int));
112
void gen_lf_sflt_s PARAMS((struct op_queue *, int *, orreg_t *, int));
113
void gen_lf_sfne_s PARAMS((struct op_queue *, int *, orreg_t *, int));
114
void gen_lf_sub_s PARAMS((struct op_queue *, int *, orreg_t *, int));
115
void l_none(struct op_queue *opq, int *param_t, orreg_t *param, int delay_slot);
116
 

powered by: WebSVN 2.1.0

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