summaryrefslogtreecommitdiff
path: root/sim/d10v/endian.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2022-12-22 22:39:55 -0500
committerMike Frysinger <vapier@gentoo.org>2022-12-23 08:32:58 -0500
commit6960600787fe66de47dc102f8ffaddb05295cfc3 (patch)
tree26ce6b1111ed6225e0ad6d1cd62c651afba1da29 /sim/d10v/endian.c
parente79b75a3cfcccdd7d6f6ee548f855ca6c109d97e (diff)
downloadbinutils-gdb-6960600787fe66de47dc102f8ffaddb05295cfc3.tar.gz
sim: d10v: move arch-specific settings to internal header
There's no need for these settings to be in sim-main.h which is shared with common/ sim code, so drop the d10v_sim.h include and move it to the few files that actually need it. Also rename the file to standardize it a bit better with other ports.
Diffstat (limited to 'sim/d10v/endian.c')
-rw-r--r--sim/d10v/endian.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sim/d10v/endian.c b/sim/d10v/endian.c
index 44e80e6d653..e6212babdaa 100644
--- a/sim/d10v/endian.c
+++ b/sim/d10v/endian.c
@@ -1,5 +1,5 @@
/* If we're being compiled as a .c file, rather than being included in
- d10v_sim.h, then ENDIAN_INLINE won't be defined yet. */
+ d10v-sim.h, then ENDIAN_INLINE won't be defined yet. */
/* This must come before any other includes. */
#include "defs.h"
@@ -10,6 +10,8 @@
#define ENDIAN_INLINE
#endif
+#include "d10v-sim.h"
+
ENDIAN_INLINE uint16_t
get_word (const uint8_t *x)
{