sim: include stdarg.h when used
authorMike Frysinger <vapier@gentoo.org>
Sun, 5 Dec 2021 02:04:41 +0000 (21:04 -0500)
committerMike Frysinger <vapier@gentoo.org>
Sun, 5 Dec 2021 03:09:42 +0000 (22:09 -0500)
Avoid implicit include deps with this to help untangle sim headers
so we can get rid of arch-specific sim-main.h.

20 files changed:
sim/common/cgen-trace.c
sim/common/hw-device.c
sim/common/hw-device.h
sim/common/hw-events.c
sim/common/hw-events.h
sim/common/hw-tree.c
sim/common/hw-tree.h
sim/common/sim-abort.c
sim/common/sim-engine.c
sim/common/sim-engine.h
sim/common/sim-events.c
sim/common/sim-events.h
sim/common/sim-hw.c
sim/common/sim-hw.h
sim/common/sim-io.c
sim/common/sim-io.h
sim/common/sim-profile.c
sim/common/sim-trace.c
sim/common/sim-trace.h
sim/common/sim-utils.c

index f372c471d34d2526b90a9408a148e3096a68d080..f8f872794727a7ee414af5903a9b46a182110ebd 100644 (file)
@@ -21,6 +21,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 #include "defs.h"
 
 #include <errno.h>
+#include <stdarg.h>
 #include <stdlib.h>
 
 #include "bfd.h"
index b30eede5e3b762f0ce9a85927eee00f1f013823b..28450fad211a26573e8938f54779814ce8376d0a 100644 (file)
@@ -22,6 +22,7 @@
 /* This must come before any other includes.  */
 #include "defs.h"
 
+#include <stdarg.h>
 #include <stdlib.h>
 #include <string.h>
 
index ffd627a441f08ce1f25048218f3aea6725992bb7..a7e598bb40e9b910a5f09ad7136f13adb81fe084 100644 (file)
@@ -23,6 +23,7 @@
 #ifndef HW_DEVICE_H
 #define HW_DEVICE_H
 
+#include <stdarg.h>
 
 /* Introduction:
 
index 301f868ce2ee2049d188cb37d99d0a541d0583b5..3337416eab7cf762b565c69f0e59142bec53476f 100644 (file)
@@ -20,6 +20,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 /* This must come before any other includes.  */
 #include "defs.h"
 
+#include <stdarg.h>
 #include <string.h>
 
 #include "hw-main.h"
index 51ca5bdb2f0441a097d17c91a4fa2a7bc70531a6..7d750007c0950e7094e7ddbd92597fc6a6c64d5f 100644 (file)
@@ -20,6 +20,8 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 #ifndef HW_EVENTS_H
 #define HW_EVENTS_H
 
+#include <stdarg.h>
+
 /* Event manager customized for hardware models.
 
    This interface is discussed further in sim-events.h. */
index 2e441cec98b18299654666ecdaf4879186fffc65..c5fa1bc2806fda6890d23e9876c93d0276507b4f 100644 (file)
@@ -23,6 +23,7 @@
 #include "defs.h"
 
 #include <ctype.h>
+#include <stdarg.h>
 #include <stdlib.h>
 #include <string.h>
 
index 85c91ad96521d50b1bf2ccfa3ab3dfec57389793..2f717ec8d9f453c0ffdb7d50670ff3c1ccec8a69 100644 (file)
@@ -23,6 +23,7 @@
 #ifndef HW_TREE
 #define HW_TREE
 
+#include <stdarg.h>
 
 struct hw *hw_tree_create
 (SIM_DESC sd,
index 06df127c19c0f14c1f9ac5821c5da85b19fa767b..d30b9a46d68369b866afcc0a4f794a6a6a8494c5 100644 (file)
@@ -20,6 +20,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 /* This must come before any other includes.  */
 #include "defs.h"
 
+#include <stdarg.h>
 #include <stdio.h>
 #include <stdlib.h>
 
index 0e06b55bfa1280922f64ae53be588a5e9f4609d7..5eeef51e34563ac50863275a5407dc4ac9f47ae7 100644 (file)
@@ -20,6 +20,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 /* This must come before any other includes.  */
 #include "defs.h"
 
+#include <stdarg.h>
 #include <stdio.h>
 #include <stdlib.h>
 
index 1feb8a6d40bb91de2418b268c1f1b5544be13308..159d96bf119e710c7345e7c4044df64fa2599ecc 100644 (file)
@@ -20,6 +20,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 #ifndef SIM_ENGINE_H
 #define SIM_ENGINE_H
 
+#include <stdarg.h>
 
 typedef struct _sim_engine sim_engine;
 struct _sim_engine
index a5ec32d05c8012701d467b59dc9ceefea7377e0f..50c8cffce9108f0c967849b16d2c8c1a5e7f32cc 100644 (file)
@@ -27,6 +27,7 @@
 #include "defs.h"
 
 #include <signal.h> /* For SIGPROCMASK et al. */
+#include <stdarg.h>
 #include <stdlib.h>
 #include <string.h>
 
index 3f1501ea67cd96534f8b4e1c30d6350cfd0cb61d..3c30d6489f8d586d5dee1308ad8904ec862cb02d 100644 (file)
@@ -23,6 +23,7 @@
 #ifndef SIM_EVENTS_H
 #define SIM_EVENTS_H
 
+#include <stdarg.h>
 
 /* Notes:
 
index 1b086433e7846959538c5d449b91d4ba5337db2c..0c2309c5f761867367aa50109f2fd718e4bc8ee1 100644 (file)
@@ -22,6 +22,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
 #include <ctype.h>
 #include <errno.h>
+#include <stdarg.h>
 #include <stdlib.h>
 #include <string.h>
 
index 82c404a0d6d34b75c9918e27ea2e94481b8931c6..71dc8378b1d47b51190d2c99b75b6b8389187775 100644 (file)
@@ -20,6 +20,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 #ifndef SIM_HW_H
 #define SIM_HW_H
 
+#include <stdarg.h>
 
 /* Parse a hardware definition */
 
index 5a47f65d8e5ae9c4f8abf92b41759a8982682e6d..a278d6ec127d7e00b0df8bfb17c71923fbb834dd 100644 (file)
@@ -26,6 +26,7 @@
 #if HAVE_FCNTL_H
 #include <fcntl.h>
 #endif
+#include <stdarg.h>
 #include <stdlib.h>
 #if HAVE_UNISTD_H
 #include <unistd.h>
index f9fd1978ee29e49705f84adf220e9864791a3540..c88adcde0f7dca34103977f14bd336446a36b176 100644 (file)
@@ -23,6 +23,7 @@
 #ifndef SIM_IO_H
 #define SIM_IO_H
 
+#include <stdarg.h>
 #include <sys/stat.h>
 #include <sys/types.h>
 
index adde403186cce3befcf7543cce8161f4bd41319f..393a0b733ed2b369ab8d37c985abca9db1f8bd33 100644 (file)
@@ -21,6 +21,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 #include "defs.h"
 
 #include <ctype.h>
+#include <stdarg.h>
 #include <stdlib.h>
 #include <string.h>
 
index f4712aae78b9c853e61130af2e44723dc784716a..fbfa27fac6f43760657fa38447f9503caa24e482 100644 (file)
@@ -20,6 +20,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 /* This must come before any other includes.  */
 #include "defs.h"
 
+#include <stdarg.h>
 #include <stdlib.h>
 #include <string.h>
 
index c73dc6d367dab0c36d2ba939dba89088c426ca34..f17bbc6342093a37f962997e4a3961aaf70456f2 100644 (file)
@@ -22,6 +22,8 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 #ifndef SIM_TRACE_H
 #define SIM_TRACE_H
 
+#include <stdarg.h>
+
 #include "dis-asm.h"
 
 /* Standard traceable entities.  */
index e30627b88b309d0a97348aa64f8cf5b8a112bb23..2e4edb2ca3d27b817c6f5f48aa858c7aa45aa314 100644 (file)
@@ -20,6 +20,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 /* This must come before any other includes.  */
 #include "defs.h"
 
+#include <stdarg.h>
 #include <stdlib.h>
 #include <string.h>
 #include <time.h>