Skip to contentSkip to conversation

tools/ia64: Cull more ia64 code

PATCH Superseded Andrew Cooper 2 participants 3 messages Aug 13, 2013 Arm/actions semi architecture

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools/ia64: Cull more ia64 code

CC Ian Campbell <[email protected]>
CC Ian Jackson <[email protected]>
---
 tools/libfsimage/common/fsimage_grub.c |   22 -------------
 tools/python/xen/lowlevel/xc/xc.c      |   53 --------------------------------
 2 files changed, 75 deletions(-)
tools/libfsimage/common/fsimage_grub.c +0 -22
index c58790d..42c5a02 100644
@@ -138,28 +138,6 @@ fsig_log2 (unsigned long word)
   return word;
 }
 
-#elif defined(__ia64__)
-
-#if __GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
-# define ia64_popcnt(x) __builtin_popcountl(x)
-#else
-# define ia64_popcnt(x)                                     \
-  ({                                                        \
-    uint64_t ia64_intri_res;                                \
-    asm ("popcnt %0=%1" : "=r" (ia64_intri_res) : "r" (x)); \
-    ia64_intri_res;                                         \
-  })
-#endif
-
-unsigned long
-fsig_log2 (unsigned long word)
-{
-  unsigned long result;
-
-  result = ia64_popcnt((word - 1) & ~word);
-  return result;
-}
-
 #elif defined(__powerpc__)
 
 #ifdef __powerpc64__
tools/python/xen/lowlevel/xc/xc.c +0 -53

91 lines not on this page · raw message

Signature · 1 line
1.7.10.4
#1 lore raw
Quoted 22 lines
Quoted 1 line
Quoted 1 line · Andrew Cooper
tools/libfsimage/common/fsimage_grub.c +0 -15
@@ -138,28 +138,6 @@ fsig_log2 (unsigned long word)
   return word;
 }
 
-#elif defined(__ia64__)
-
-#if __GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
-# define ia64_popcnt(x) __builtin_popcountl(x)
-#else
-# define ia64_popcnt(x)                                     \
-  ({                                                        \
-    uint64_t ia64_intri_res;                                \
-    asm ("popcnt %0=%1" : "=r" (ia64_intri_res) : "r" (x)); \
-    ia64_intri_res;                                         \
-  })
-#endif
-
-unsigned long
-fsig_log2 (unsigned long word)

tools/libfsimage/common/fsimage_grub.c fsig_log2 (unsigned long word) · line 143

Quoted 10 lines
tools/libfsimage/common/fsimage_grub.c +0 -7
-{
-  unsigned long result;
-
-  result = ia64_popcnt((word - 1) & ~word);
-  return result;
-}
-
 #elif defined(__powerpc__)
 
 #ifdef __powerpc64__

Why not rip out the PPC stuff here at once?

Jan

#2 lore raw
Quoted 31 lines · Jan Beulich
Quoted 31 lines
Quoted 1 line
Quoted 1 line · Andrew Cooper
tools/libfsimage/common/fsimage_grub.c +0 -22
@@ -138,28 +138,6 @@ fsig_log2 (unsigned long word)
   return word;
 }
 
-#elif defined(__ia64__)
-
-#if __GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
-# define ia64_popcnt(x) __builtin_popcountl(x)
-#else
-# define ia64_popcnt(x)                                     \
-  ({                                                        \
-    uint64_t ia64_intri_res;                                \
-    asm ("popcnt %0=%1" : "=r" (ia64_intri_res) : "r" (x)); \
-    ia64_intri_res;                                         \
-  })
-#endif
-
-unsigned long
-fsig_log2 (unsigned long word)
-{
-  unsigned long result;
-
-  result = ia64_popcnt((word - 1) & ~word);
-  return result;
-}
-
 #elif defined(__powerpc__)
 
Quoted 5 lines

tools/libfsimage/common/fsimage_grub.c fsig_log2 (unsigned long word) · line 143

Quoted 1 line
tools/libfsimage/common/fsimage_grub.c +0 -0
 #ifdef __powerpc64__

Why not rip out the PPC stuff here at once?

Jan

Can do - this appears to be the only ppc which can be ripped out. v2 on its way

~Andrew