• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

修订版20bca71d82598a015de0991196e45f0b5f7ead81 (tree)
时间2015-04-18 17:31:36
作者Mike Frysinger <vapier@gent...>
CommiterMike Frysinger

Log Message

sim: unify SIM_CPU definition

Since every target typedefs this the same way, move it to the common code.

We have to leave Blackfin behind here for now because of inter-dependencies
on types and headers: sim-base.h includes sim-model.h which needs types in
machs.h which needs types in bfim-sim.h which needs SIM_CPU.

更改概述

差异

--- a/sim/arm/ChangeLog
+++ b/sim/arm/ChangeLog
@@ -1,5 +1,9 @@
11 2015-04-18 Mike Frysinger <vapier@gentoo.org>
22
3+ * sim-main.h (SIM_CPU): Delete.
4+
5+2015-04-18 Mike Frysinger <vapier@gentoo.org>
6+
37 * sim-main.h (sim_cia): Delete.
48
59 2015-04-17 Mike Frysinger <vapier@gentoo.org>
--- a/sim/arm/sim-main.h
+++ b/sim/arm/sim-main.h
@@ -20,9 +20,6 @@
2020 #define SIM_MAIN_H
2121
2222 #include "sim-basics.h"
23-
24-typedef struct _sim_cpu SIM_CPU;
25-
2623 #include "sim-base.h"
2724 #include "bfd.h"
2825
--- a/sim/avr/ChangeLog
+++ b/sim/avr/ChangeLog
@@ -1,5 +1,9 @@
11 2015-04-18 Mike Frysinger <vapier@gentoo.org>
22
3+ * sim-main.h (SIM_CPU): Delete.
4+
5+2015-04-18 Mike Frysinger <vapier@gentoo.org>
6+
37 * sim-main.h (sim_cia): Delete.
48
59 2015-04-17 Mike Frysinger <vapier@gentoo.org>
--- a/sim/avr/sim-main.h
+++ b/sim/avr/sim-main.h
@@ -23,8 +23,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
2323
2424 extern unsigned int pc;
2525
26-typedef struct _sim_cpu SIM_CPU;
27-
2826 #include "sim-base.h"
2927
3028 struct _sim_cpu {
--- a/sim/bfin/ChangeLog
+++ b/sim/bfin/ChangeLog
@@ -1,5 +1,9 @@
11 2015-04-18 Mike Frysinger <vapier@gentoo.org>
22
3+ * sim-main.h (SIM_CPU): Add note to clean this up.
4+
5+2015-04-18 Mike Frysinger <vapier@gentoo.org>
6+
37 * sim-main.h (sim_cia): Delete.
48
59 2015-04-17 Mike Frysinger <vapier@gentoo.org>
--- a/sim/bfin/sim-main.h
+++ b/sim/bfin/sim-main.h
@@ -24,6 +24,8 @@
2424 #include "sim-basics.h"
2525 #include "sim-signal.h"
2626
27+/* TODO: Delete this. Need to convert bu32/etc... to common sim types
28+ and unwind the bfin-sim.h/machs.h include below first though. */
2729 typedef struct _sim_cpu SIM_CPU;
2830
2931 #include "bfin-sim.h"
--- a/sim/common/ChangeLog
+++ b/sim/common/ChangeLog
@@ -1,5 +1,9 @@
11 2015-04-18 Mike Frysinger <vapier@gentoo.org>
22
3+ * sim-base.h (SIM_CPU): New typedef.
4+
5+2015-04-18 Mike Frysinger <vapier@gentoo.org>
6+
37 * cgen-engine.h (CIA_ADDR): Delete.
48 * sim-base.h: Update sim_cia example.
59 [!CIA_ADDR] (sim_cia): New typedef.
--- a/sim/common/sim-base.h
+++ b/sim/common/sim-base.h
@@ -72,6 +72,8 @@ typedef address_word sim_cia;
7272 #define INVALID_INSTRUCTION_ADDRESS ((address_word)0 - 1)
7373 #endif
7474
75+/* TODO: Probably should just delete SIM_CPU. */
76+typedef struct _sim_cpu SIM_CPU;
7577 typedef struct _sim_cpu sim_cpu;
7678
7779 #include "sim-module.h"
--- a/sim/cr16/ChangeLog
+++ b/sim/cr16/ChangeLog
@@ -1,5 +1,9 @@
11 2015-04-18 Mike Frysinger <vapier@gentoo.org>
22
3+ * sim-main.h (SIM_CPU): Delete.
4+
5+2015-04-18 Mike Frysinger <vapier@gentoo.org>
6+
37 * sim-main.h (sim_cia): Delete.
48
59 2015-04-17 Mike Frysinger <vapier@gentoo.org>
--- a/sim/cr16/sim-main.h
+++ b/sim/cr16/sim-main.h
@@ -24,8 +24,6 @@
2424 typedef long int word;
2525 typedef unsigned long int uword;
2626
27-typedef struct _sim_cpu SIM_CPU;
28-
2927 #include "sim-base.h"
3028 #include "bfd.h"
3129
--- a/sim/cris/ChangeLog
+++ b/sim/cris/ChangeLog
@@ -1,5 +1,9 @@
11 2015-04-18 Mike Frysinger <vapier@gentoo.org>
22
3+ * sim-main.h (_sim_cpu, SIM_CPU): Delete.
4+
5+2015-04-18 Mike Frysinger <vapier@gentoo.org>
6+
37 * sim-main.h (sim_cia): Delete.
48
59 2015-04-17 Mike Frysinger <vapier@gentoo.org>
--- a/sim/cris/sim-main.h
+++ b/sim/cris/sim-main.h
@@ -26,9 +26,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
2626
2727 #define USING_SIM_BASE_H
2828
29-struct _sim_cpu;
30-typedef struct _sim_cpu SIM_CPU;
31-
3229 #include "symcat.h"
3330 #include "sim-basics.h"
3431 #include "cgen-types.h"
--- a/sim/d10v/ChangeLog
+++ b/sim/d10v/ChangeLog
@@ -1,5 +1,9 @@
11 2015-04-18 Mike Frysinger <vapier@gentoo.org>
22
3+ * sim-main.h (SIM_CPU): Delete.
4+
5+2015-04-18 Mike Frysinger <vapier@gentoo.org>
6+
37 * sim-main.h (sim_cia): Delete.
48
59 2015-04-17 Mike Frysinger <vapier@gentoo.org>
--- a/sim/d10v/sim-main.h
+++ b/sim/d10v/sim-main.h
@@ -24,8 +24,6 @@
2424 typedef long int word;
2525 typedef unsigned long int uword;
2626
27-typedef struct _sim_cpu SIM_CPU;
28-
2927 #include "sim-base.h"
3028 #include "bfd.h"
3129
--- a/sim/frv/ChangeLog
+++ b/sim/frv/ChangeLog
@@ -1,5 +1,9 @@
11 2015-04-18 Mike Frysinger <vapier@gentoo.org>
22
3+ * sim-main.h (_sim_cpu, SIM_CPU): Delete.
4+
5+2015-04-18 Mike Frysinger <vapier@gentoo.org>
6+
37 * sim-main.h (sim_cia): Delete.
48 (frv_sim_engine_halt_hook): Move below includes.
59
--- a/sim/frv/sim-main.h
+++ b/sim/frv/sim-main.h
@@ -21,9 +21,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
2121
2222 #define USING_SIM_BASE_H /* FIXME: quick hack */
2323
24-struct _sim_cpu; /* FIXME: should be in sim-basics.h */
25-typedef struct _sim_cpu SIM_CPU;
26-
2724 /* Set the mask of unsupported traces. */
2825 #define WITH_TRACE \
2926 (~(TRACE_alu | TRACE_decode | TRACE_memory | TRACE_model | TRACE_fpu \
--- a/sim/ft32/ChangeLog
+++ b/sim/ft32/ChangeLog
@@ -1,5 +1,9 @@
11 2015-04-18 Mike Frysinger <vapier@gentoo.org>
22
3+ * sim-main.h (SIM_CPU): Delete.
4+
5+2015-04-18 Mike Frysinger <vapier@gentoo.org>
6+
37 * sim-main.h (sim_cia): Delete.
48
59 2015-04-17 Mike Frysinger <vapier@gentoo.org>
--- a/sim/ft32/sim-main.h
+++ b/sim/ft32/sim-main.h
@@ -25,8 +25,6 @@
2525 #include "sim-base.h"
2626 #include "bfd.h"
2727
28-typedef struct _sim_cpu SIM_CPU;
29-
3028 #include "ft32-sim.h"
3129
3230 struct _sim_cpu {
--- a/sim/h8300/ChangeLog
+++ b/sim/h8300/ChangeLog
@@ -1,5 +1,9 @@
11 2015-04-18 Mike Frysinger <vapier@gentoo.org>
22
3+ * sim-main.h (SIM_CPU): Delete.
4+
5+2015-04-18 Mike Frysinger <vapier@gentoo.org>
6+
37 * sim-main.h (sim_cia): Delete.
48
59 2015-04-17 Mike Frysinger <vapier@gentoo.org>
--- a/sim/h8300/sim-main.h
+++ b/sim/h8300/sim-main.h
@@ -87,9 +87,6 @@ enum h8_typecodes {
8787 };
8888
8989 #include "sim-basics.h"
90-
91-typedef struct _sim_cpu SIM_CPU;
92-
9390 #include "sim-base.h"
9491
9592 /* Structure used to describe addressing */
--- a/sim/iq2000/ChangeLog
+++ b/sim/iq2000/ChangeLog
@@ -1,5 +1,9 @@
11 2015-04-18 Mike Frysinger <vapier@gentoo.org>
22
3+ * sim-main.h (_sim_cpu, SIM_CPU): Delete.
4+
5+2015-04-18 Mike Frysinger <vapier@gentoo.org>
6+
37 * sim-main.h (sim_cia): Delete.
48
59 2015-04-17 Mike Frysinger <vapier@gentoo.org>
--- a/sim/iq2000/sim-main.h
+++ b/sim/iq2000/sim-main.h
@@ -6,9 +6,6 @@
66
77 #define USING_SIM_BASE_H /* FIXME: quick hack */
88
9-struct _sim_cpu; /* FIXME: should be in sim-basics.h */
10-typedef struct _sim_cpu SIM_CPU;
11-
129 /* sim-basics.h includes config.h but cgen-types.h must be included before
1310 sim-basics.h and cgen-types.h needs config.h. */
1411 #include "config.h"
--- a/sim/lm32/ChangeLog
+++ b/sim/lm32/ChangeLog
@@ -1,5 +1,9 @@
11 2015-04-18 Mike Frysinger <vapier@gentoo.org>
22
3+ * sim-main.h (_sim_cpu, SIM_CPU): Delete.
4+
5+2015-04-18 Mike Frysinger <vapier@gentoo.org>
6+
37 * sim-main.h (sim_cia): Delete.
48
59 2015-04-17 Mike Frysinger <vapier@gentoo.org>
--- a/sim/lm32/sim-main.h
+++ b/sim/lm32/sim-main.h
@@ -25,9 +25,6 @@
2525
2626 #define USING_SIM_BASE_H /* FIXME: quick hack */
2727
28-struct _sim_cpu; /* FIXME: should be in sim-basics.h */
29-typedef struct _sim_cpu SIM_CPU;
30-
3128 #include "symcat.h"
3229 #include "sim-basics.h"
3330 #include "cgen-types.h"
--- a/sim/m32r/ChangeLog
+++ b/sim/m32r/ChangeLog
@@ -1,5 +1,9 @@
11 2015-04-18 Mike Frysinger <vapier@gentoo.org>
22
3+ * sim-main.h (_sim_cpu, SIM_CPU): Delete.
4+
5+2015-04-18 Mike Frysinger <vapier@gentoo.org>
6+
37 * sim-main.h (sim_cia): Delete.
48
59 2015-04-17 Mike Frysinger <vapier@gentoo.org>
--- a/sim/m32r/sim-main.h
+++ b/sim/m32r/sim-main.h
@@ -5,9 +5,6 @@
55
66 #define USING_SIM_BASE_H /* FIXME: quick hack */
77
8-struct _sim_cpu; /* FIXME: should be in sim-basics.h */
9-typedef struct _sim_cpu SIM_CPU;
10-
118 #include "symcat.h"
129 #include "sim-basics.h"
1310 #include "cgen-types.h"
--- a/sim/m68hc11/ChangeLog
+++ b/sim/m68hc11/ChangeLog
@@ -1,5 +1,9 @@
11 2015-04-18 Mike Frysinger <vapier@gentoo.org>
22
3+ * sim-main.h (SIM_CPU): Delete.
4+
5+2015-04-18 Mike Frysinger <vapier@gentoo.org>
6+
37 * sim-main.h (sim_cia): Delete.
48
59 2015-04-17 Mike Frysinger <vapier@gentoo.org>
--- a/sim/m68hc11/sim-main.h
+++ b/sim/m68hc11/sim-main.h
@@ -25,9 +25,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
2525 #define SIM_HANDLES_LMA 1
2626
2727 #include "sim-basics.h"
28-
29-typedef struct _sim_cpu SIM_CPU;
30-
3128 #include "sim-signal.h"
3229 #include "sim-base.h"
3330
--- a/sim/mcore/ChangeLog
+++ b/sim/mcore/ChangeLog
@@ -1,5 +1,9 @@
11 2015-04-18 Mike Frysinger <vapier@gentoo.org>
22
3+ * sim-main.h (SIM_CPU): Delete.
4+
5+2015-04-18 Mike Frysinger <vapier@gentoo.org>
6+
37 * sim-main.h (sim_cia): Delete.
48
59 2015-04-17 Mike Frysinger <vapier@gentoo.org>
--- a/sim/mcore/sim-main.h
+++ b/sim/mcore/sim-main.h
@@ -24,8 +24,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
2424 typedef long int word;
2525 typedef unsigned long int uword;
2626
27-typedef struct _sim_cpu SIM_CPU;
28-
2927 #include "sim-base.h"
3028 #include "bfd.h"
3129
--- a/sim/microblaze/ChangeLog
+++ b/sim/microblaze/ChangeLog
@@ -1,5 +1,9 @@
11 2015-04-18 Mike Frysinger <vapier@gentoo.org>
22
3+ * sim-main.h (SIM_CPU): Delete.
4+
5+2015-04-18 Mike Frysinger <vapier@gentoo.org>
6+
37 * sim-main.h (sim_cia): Delete.
48
59 2015-04-17 Mike Frysinger <vapier@gentoo.org>
--- a/sim/microblaze/sim-main.h
+++ b/sim/microblaze/sim-main.h
@@ -20,9 +20,6 @@
2020
2121 #include "microblaze.h"
2222 #include "sim-basics.h"
23-
24-typedef struct _sim_cpu SIM_CPU;
25-
2623 #include "sim-base.h"
2724
2825 /* The machine state.
--- a/sim/mips/ChangeLog
+++ b/sim/mips/ChangeLog
@@ -1,5 +1,9 @@
11 2015-04-18 Mike Frysinger <vapier@gentoo.org>
22
3+ * sim-main.h (SIM_CPU): Delete.
4+
5+2015-04-18 Mike Frysinger <vapier@gentoo.org>
6+
37 * sim-main.h (sim_cia): Delete.
48
59 2015-04-17 Mike Frysinger <vapier@gentoo.org>
--- a/sim/mips/sim-main.h
+++ b/sim/mips/sim-main.h
@@ -33,9 +33,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
3333 mips_core_signal ((SD), (CPU), (CIA), (MAP), (NR_BYTES), (ADDR), (TRANSFER), (ERROR))
3434
3535 #include "sim-basics.h"
36-
37-typedef struct _sim_cpu SIM_CPU;
38-
3936 #include "sim-base.h"
4037 #include "bfd.h"
4138
--- a/sim/mn10300/ChangeLog
+++ b/sim/mn10300/ChangeLog
@@ -1,5 +1,9 @@
11 2015-04-18 Mike Frysinger <vapier@gentoo.org>
22
3+ * sim-main.h (SIM_CPU): Delete.
4+
5+2015-04-18 Mike Frysinger <vapier@gentoo.org>
6+
37 * sim-main.h (sim_cia): Delete.
48 (SIM_ADDR): Delete comment.
59
--- a/sim/mn10300/sim-main.h
+++ b/sim/mn10300/sim-main.h
@@ -42,8 +42,6 @@
4242 #include "itable.h"
4343 #include "idecode.h"
4444
45-typedef struct _sim_cpu SIM_CPU;
46-
4745 #define WITH_WATCHPOINTS 1
4846
4947 #define SIM_CORE_SIGNAL(SD,CPU,CIA,MAP,NR_BYTES,ADDR,TRANSFER,ERROR) \
--- a/sim/moxie/ChangeLog
+++ b/sim/moxie/ChangeLog
@@ -1,5 +1,9 @@
11 2015-04-18 Mike Frysinger <vapier@gentoo.org>
22
3+ * sim-main.h (SIM_CPU): Delete.
4+
5+2015-04-18 Mike Frysinger <vapier@gentoo.org>
6+
37 * sim-main.h (sim_cia): Delete.
48
59 2015-04-17 Mike Frysinger <vapier@gentoo.org>
--- a/sim/moxie/sim-main.h
+++ b/sim/moxie/sim-main.h
@@ -21,9 +21,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
2121 #define SIM_MAIN_H
2222
2323 #include "sim-basics.h"
24-
25-typedef struct _sim_cpu SIM_CPU;
26-
2724 #include "sim-base.h"
2825 #include "bfd.h"
2926
--- a/sim/msp430/ChangeLog
+++ b/sim/msp430/ChangeLog
@@ -1,5 +1,9 @@
11 2015-04-18 Mike Frysinger <vapier@gentoo.org>
22
3+ * sim-main.h (SIM_CPU): Delete.
4+
5+2015-04-18 Mike Frysinger <vapier@gentoo.org>
6+
37 * sim-main.h (sim_cia): Delete.
48
59 2015-04-17 Mike Frysinger <vapier@gentoo.org>
--- a/sim/msp430/sim-main.h
+++ b/sim/msp430/sim-main.h
@@ -23,9 +23,6 @@
2323
2424 #include "sim-basics.h"
2525 #include "sim-signal.h"
26-
27-typedef struct _sim_cpu SIM_CPU;
28-
2926 #include "msp430-sim.h"
3027 #include "sim-base.h"
3128
--- a/sim/sh/ChangeLog
+++ b/sim/sh/ChangeLog
@@ -1,5 +1,9 @@
11 2015-04-18 Mike Frysinger <vapier@gentoo.org>
22
3+ * sim-main.h (SIM_CPU): Delete.
4+
5+2015-04-18 Mike Frysinger <vapier@gentoo.org>
6+
37 * sim-main.h (sim_cia): Delete.
48
59 2015-04-17 Mike Frysinger <vapier@gentoo.org>
--- a/sim/sh/sim-main.h
+++ b/sim/sh/sim-main.h
@@ -20,9 +20,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
2020 #define SIM_MAIN_H
2121
2222 #include "sim-basics.h"
23-
24-typedef struct _sim_cpu SIM_CPU;
25-
2623 #include "sim-base.h"
2724
2825 typedef struct
--- a/sim/sh64/ChangeLog
+++ b/sim/sh64/ChangeLog
@@ -1,5 +1,9 @@
11 2015-04-18 Mike Frysinger <vapier@gentoo.org>
22
3+ * sim-main.h (_sim_cpu, SIM_CPU): Delete.
4+
5+2015-04-18 Mike Frysinger <vapier@gentoo.org>
6+
37 * sim-main.h (CIA_ADDR): Define.
48
59 2015-04-17 Mike Frysinger <vapier@gentoo.org>
--- a/sim/sh64/sim-main.h
+++ b/sim/sh64/sim-main.h
@@ -5,9 +5,6 @@
55
66 #define USING_SIM_BASE_H /* FIXME: quick hack */
77
8-struct _sim_cpu; /* FIXME: should be in sim-basics.h */
9-typedef struct _sim_cpu SIM_CPU;
10-
118 /* sim-basics.h includes config.h but cgen-types.h must be included before
129 sim-basics.h and cgen-types.h needs config.h. */
1310 #include "config.h"
--- a/sim/v850/ChangeLog
+++ b/sim/v850/ChangeLog
@@ -1,5 +1,9 @@
11 2015-04-18 Mike Frysinger <vapier@gentoo.org>
22
3+ * sim-main.h (SIM_CPU): Delete.
4+
5+2015-04-18 Mike Frysinger <vapier@gentoo.org>
6+
37 * sim-main.h (sim_cia): Delete.
48
59 2015-04-17 Mike Frysinger <vapier@gentoo.org>
--- a/sim/v850/sim-main.h
+++ b/sim/v850/sim-main.h
@@ -16,9 +16,6 @@
1616 #include "sim-basics.h"
1717 #include "sim-signal.h"
1818 #include "sim-fpu.h"
19-
20-typedef struct _sim_cpu SIM_CPU;
21-
2219 #include "sim-base.h"
2320
2421 #include "simops.h"