• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

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

GNU Binutils with patches for OS216


Commit MetaInfo

修訂d320201dbe5a3677e96008738cb6cc754147e3bd (tree)
時間2015-11-22 14:53:23
作者Mike Frysinger <vapier@gent...>
CommiterMike Frysinger

Log Message

sim: mn10300: drop global callback handle

It's used in one place and can easily be replaced by using the sim state.

Change Summary

差異

--- a/sim/mn10300/ChangeLog
+++ b/sim/mn10300/ChangeLog
@@ -1,3 +1,10 @@
1+2015-11-21 Mike Frysinger <vapier@gentoo.org>
2+
3+ * interp.c (mn10300_callback): Delete.
4+ (sim_open): Delete mn10300_callback assignment.
5+ (program_interrupt): Call sim_io_printf.
6+ * mn10300_sim.h (mn10300_callback): Delete.
7+
18 2015-11-17 Mike Frysinger <vapier@gentoo.org>
29
310 * sim-main.h (WITH_CORE): Delete.
--- a/sim/mn10300/interp.c
+++ b/sim/mn10300/interp.c
@@ -24,7 +24,6 @@
2424 #include "bfd.h"
2525
2626
27-host_callback *mn10300_callback;
2827 struct _state State;
2928
3029
@@ -97,7 +96,6 @@ sim_open (SIM_OPEN_KIND kind,
9796 {
9897 int i;
9998 SIM_DESC sd = sim_state_alloc (kind, cb);
100- mn10300_callback = cb;
10199
102100 SIM_ASSERT (STATE_MAGIC (sd) == SIM_MAGIC_NUMBER);
103101
@@ -418,10 +416,7 @@ program_interrupt (SIM_DESC sd,
418416
419417 /* avoid infinite recursion */
420418 if (in_interrupt)
421- {
422- (*mn10300_callback->printf_filtered) (mn10300_callback,
423- "ERROR: recursion in program_interrupt during software exception dispatch.");
424- }
419+ sim_io_printf (sd, "ERROR: recursion in program_interrupt during software exception dispatch.");
425420 else
426421 {
427422 in_interrupt = 1;
--- a/sim/mn10300/mn10300_sim.h
+++ b/sim/mn10300/mn10300_sim.h
@@ -8,7 +8,6 @@
88 #include "bfd.h"
99 #include "sim-fpu.h"
1010
11-extern host_callback *mn10300_callback;
1211 extern SIM_DESC simulator;
1312
1413 typedef unsigned8 uint8;