summaryrefslogtreecommitdiffstats
path: root/src/include/usr/targeting/common/util.H
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/usr/targeting/common/util.H')
-rw-r--r--src/include/usr/targeting/common/util.H6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/include/usr/targeting/common/util.H b/src/include/usr/targeting/common/util.H
index 301e521d5..34b95784e 100644
--- a/src/include/usr/targeting/common/util.H
+++ b/src/include/usr/targeting/common/util.H
@@ -42,17 +42,21 @@ class Target;
*
* @par Detailed Description:
* If PPC platform (FSP or Hostboot), if 8 byte pointers then it's
- * Hostboot, so don't translate. If 4 byte pointers then it's FSP so
+ * Hostboot, so don't translate. If 4 byte pointers then it's FSP so
* translate. If !PPC (x86 32 or 64 bit), then always translate
*
* @note List of preprocessor macros defined can be determined by calling:
* ppc64-mcp6-gcc -dM -E - < /dev/null
*/
#ifdef __PPC__
+#ifndef __HOSTBOOT_RUNTIME
#define TARG_ADDR_TRANSLATION_REQUIRED (sizeof(void*)==4)
#else
#define TARG_ADDR_TRANSLATION_REQUIRED (1)
#endif
+#else
+#define TARG_ADDR_TRANSLATION_REQUIRED (1)
+#endif
namespace PLAT
{
OpenPOWER on IntegriCloud