aboutsummaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2024-01-03 02:15:54 -0500
committerMike Frysinger <vapier@gentoo.org>2024-01-03 02:15:54 -0500
commitd4edfa1e2e0d56b9e06b2d884866f0c46f4d81d3 (patch)
treeafe8b9e07aee64c8e58a735d95f013c3e988e98a /sim
parent9c81c318f6c78500e1022ba759ba659482cbe5c4 (diff)
downloadgdb-d4edfa1e2e0d56b9e06b2d884866f0c46f4d81d3.zip
gdb-d4edfa1e2e0d56b9e06b2d884866f0c46f4d81d3.tar.gz
gdb-d4edfa1e2e0d56b9e06b2d884866f0c46f4d81d3.tar.bz2
sim: common: include sim-types.h in the endian header directly
This is a bit redundant for most ports as they go through sim-basics.h which always includes sim-types.h before including sim-endian.h, but in order to unify ppc's sim-endian code, we need this include here. Plus, it's the directly we generally want to go to get away from one header that defines all APIs and causes hard to untangle dependencies.
Diffstat (limited to 'sim')
-rw-r--r--sim/common/sim-endian.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sim/common/sim-endian.h b/sim/common/sim-endian.h
index 589169e..93a6d0d 100644
--- a/sim/common/sim-endian.h
+++ b/sim/common/sim-endian.h
@@ -23,6 +23,8 @@
#ifndef SIM_ENDIAN_H
#define SIM_ENDIAN_H
+#include "sim-types.h"
+
/* C byte conversion functions */
INLINE_SIM_ENDIAN(unsigned_1) endian_h2t_1(unsigned_1 x);