[PATCH/committed,1/4] sim: ppc: sync WITH_TARGET_{ADDRESS, CELL}_BITSIZE with common/

Message ID 20240103071928.26550-1-vapier@gentoo.org
State New
Headers
Series [PATCH/committed,1/4] sim: ppc: sync WITH_TARGET_{ADDRESS, CELL}_BITSIZE with common/ |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gdb_build--master-arm warning Patch is already merged
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 warning Patch is already merged

Commit Message

Mike Frysinger Jan. 3, 2024, 7:19 a.m. UTC
  This will make it easier to share common/ code that rely on these
additional defines.
---
 sim/ppc/std-config.h | 8 ++++++++
 1 file changed, 8 insertions(+)
  

Patch

diff --git a/sim/ppc/std-config.h b/sim/ppc/std-config.h
index d317826ba1d4..de68cf261816 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: