aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2024-01-03 02:10:52 -0500
committerMike Frysinger <vapier@gentoo.org>2024-01-03 02:10:52 -0500
commit34cacf7d970c6e2506e2c8eba9b7cb77accd53a4 (patch)
treea1826072fdd60dc6aabd1784dcc2537c4aae7d31 /sim/ppc
parent50399b3d9dd2e7765cdd9a20c651d7c5b1e73b1e (diff)
downloadfsf-binutils-gdb-34cacf7d970c6e2506e2c8eba9b7cb77accd53a4.zip
fsf-binutils-gdb-34cacf7d970c6e2506e2c8eba9b7cb77accd53a4.tar.gz
fsf-binutils-gdb-34cacf7d970c6e2506e2c8eba9b7cb77accd53a4.tar.bz2
sim: ppc: sync WITH_TARGET_{ADDRESS,CELL}_BITSIZE with common/
This will make it easier to share common/ code that rely on these additional defines.
Diffstat (limited to 'sim/ppc')
-rw-r--r--sim/ppc/std-config.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/sim/ppc/std-config.h b/sim/ppc/std-config.h
index d317826..de68cf2 100644
--- a/sim/ppc/std-config.h
+++ b/sim/ppc/std-config.h
@@ -90,6 +90,14 @@ extern enum bfd_endian current_target_byte_order;
#define WITH_TARGET_WORD_BITSIZE 32 /* compiled only */
#endif
+#ifndef WITH_TARGET_ADDRESS_BITSIZE
+#define WITH_TARGET_ADDRESS_BITSIZE WITH_TARGET_WORD_BITSIZE
+#endif
+
+#ifndef WITH_TARGET_CELL_BITSIZE
+#define WITH_TARGET_CELL_BITSIZE WITH_TARGET_WORD_BITSIZE
+#endif
+
/* Program environment: