Commit | Line | Data |
---|---|---|
1c0d3aa6 | 1 | /* score-datadep.h -- Score Instructions data dependency table |
82704155 | 2 | Copyright (C) 2006-2019 Free Software Foundation, Inc. |
1c0d3aa6 | 3 | Contributed by: |
c3b7224a | 4 | Brain.lin (brain.lin@sunplusct.com) |
1c0d3aa6 NC |
5 | Mei Ligang (ligang@sunnorth.com.cn) |
6 | Pei-Lin Tsai (pltsai@sunplus.com) | |
7 | ||
8 | This file is part of GAS, the GNU Assembler. | |
9 | ||
10 | GAS is free software; you can redistribute it and/or modify | |
11 | it under the terms of the GNU General Public License as published by | |
c3b7224a | 12 | the Free Software Foundation; either version 3, or (at your option) |
1c0d3aa6 NC |
13 | any later version. |
14 | ||
15 | GAS is distributed in the hope that it will be useful, | |
16 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
17 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
18 | GNU General Public License for more details. | |
19 | ||
20 | You should have received a copy of the GNU General Public License | |
e4e42b45 | 21 | along with GAS; see the file COPYING3. If not, write to the Free |
1c0d3aa6 NC |
22 | Software Foundation, Inc., 51 Franklin Street - Fifth Floor, |
23 | Boston, MA 02110-1301, USA. */ | |
24 | ||
25 | #ifndef SCORE_DATA_DEPENDENCY_H | |
26 | #define SCORE_DATA_DEPENDENCY_H | |
27 | ||
28 | #define INSN_NAME_LEN 16 | |
29 | ||
30 | enum insn_type_for_dependency | |
31 | { | |
1c0d3aa6 | 32 | D_mtcr, |
1c0d3aa6 NC |
33 | D_all_insn |
34 | }; | |
35 | ||
36 | struct insn_to_dependency | |
37 | { | |
38 | char *insn_name; | |
39 | enum insn_type_for_dependency type; | |
40 | }; | |
41 | ||
42 | struct data_dependency | |
43 | { | |
44 | enum insn_type_for_dependency pre_insn_type; | |
45 | char pre_reg[6]; | |
46 | enum insn_type_for_dependency cur_insn_type; | |
47 | char cur_reg[6]; | |
48 | int bubblenum_7; | |
c3b7224a | 49 | int bubblenum_3; |
1c0d3aa6 NC |
50 | int warn_or_error; /* warning - 0; error - 1 */ |
51 | }; | |
52 | ||
53 | static const struct insn_to_dependency insn_to_dependency_table[] = | |
54 | { | |
1c0d3aa6 NC |
55 | /* move spectial instruction. */ |
56 | {"mtcr", D_mtcr}, | |
1c0d3aa6 NC |
57 | }; |
58 | ||
59 | static const struct data_dependency data_dependency_table[] = | |
60 | { | |
1c0d3aa6 | 61 | /* Status regiser. */ |
c3b7224a | 62 | {D_mtcr, "cr0", D_all_insn, "", 5, 1, 0}, |
1c0d3aa6 NC |
63 | }; |
64 | ||
65 | #endif |