Imported Upstream version 1.2
[platform/upstream/libunwind.git] / include / tdep-ppc64 / dwarf-config.h
index e2676a8..6d8ef0a 100644 (file)
@@ -33,22 +33,22 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.  */
 #define dwarf_config_h
 
 /* For PPC64, 48 GPRs + 33 FPRs + 33 AltiVec + 1 SPE  */
-#define DWARF_NUM_PRESERVED_REGS       115
+#define DWARF_NUM_PRESERVED_REGS        115
 
-#define DWARF_REGNUM_MAP_LENGTH                115
+#define DWARF_REGNUM_MAP_LENGTH         115
 
 /* Return TRUE if the ADDR_SPACE uses big-endian byte-order.  */
-#define dwarf_is_big_endian(addr_space) 1
+#define dwarf_is_big_endian(addr_space) ((addr_space)->big_endian)
 
 /* Convert a pointer to a dwarf_cursor structure to a pointer to
    unw_cursor_t.  */
-#define dwarf_to_cursor(c)     ((unw_cursor_t *) (c))
+#define dwarf_to_cursor(c)      ((unw_cursor_t *) (c))
 
 typedef struct dwarf_loc
   {
     unw_word_t val;
 #ifndef UNW_LOCAL_ONLY
-    unw_word_t type;           /* see X86_LOC_TYPE_* macros.  */
+    unw_word_t type;            /* see X86_LOC_TYPE_* macros.  */
 #endif
   }
 dwarf_loc_t;