diff --git a/hw/tricore/tricore_testboard.c b/hw/tricore/tricore_testboard.c
index 4ff5e7b685..9392571f1f 100644
--- a/hw/tricore/tricore_testboard.c
+++ b/hw/tricore/tricore_testboard.c
@@ -18,6 +18,7 @@
*/
+#include "qemu/osdep.h"
#include "hw/hw.h"
#include "hw/devices.h"
#include "net/net.h"
diff --git a/target-tricore/cpu.c b/target-tricore/cpu.c
index ed8b030ef5..f8b8518558 100644
--- a/target-tricore/cpu.c
+++ b/target-tricore/cpu.c
@@ -17,6 +17,7 @@
* License along with this library; if not, see .
*/
+#include "qemu/osdep.h"
#include "cpu.h"
#include "qemu-common.h"
diff --git a/target-tricore/helper.c b/target-tricore/helper.c
index 1b70429f3a..a8fd418b42 100644
--- a/target-tricore/helper.c
+++ b/target-tricore/helper.c
@@ -15,11 +15,7 @@
* License along with this library; if not, see .
*/
-#include
-#include
-#include
-#include
-#include
+#include "qemu/osdep.h"
#include "cpu.h"
diff --git a/target-tricore/op_helper.c b/target-tricore/op_helper.c
index 53edbdae18..3aa6326edd 100644
--- a/target-tricore/op_helper.c
+++ b/target-tricore/op_helper.c
@@ -14,7 +14,7 @@
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, see .
*/
-#include
+#include "qemu/osdep.h"
#include "cpu.h"
#include "qemu/host-utils.h"
#include "exec/helper-proto.h"
diff --git a/target-tricore/translate.c b/target-tricore/translate.c
index 135c58347a..2b07b86694 100644
--- a/target-tricore/translate.c
+++ b/target-tricore/translate.c
@@ -18,6 +18,7 @@
*/
+#include "qemu/osdep.h"
#include "cpu.h"
#include "disas/disas.h"
#include "tcg-op.h"