Revision f54b3f92 cpu-all.h

b/cpu-all.h
20 20
#ifndef CPU_ALL_H
21 21
#define CPU_ALL_H
22 22

  
23
#if defined(__arm__) || defined(__sparc__) || defined(__mips__)
23
#if defined(__arm__) || defined(__sparc__) || defined(__mips__) || defined(__hppa__)
24 24
#define WORDS_ALIGNED
25 25
#endif
26 26

  
......
952 952
    return val;
953 953
}
954 954

  
955
#elif defined(__hppa__)
956

  
957
static inline int64_t cpu_get_real_ticks(void)
958
{
959
    int val;
960
    asm volatile ("mfctl %%cr16, %0" : "=r"(val));
961
    return val;
962
}
963

  
955 964
#elif defined(__ia64)
956 965

  
957 966
static inline int64_t cpu_get_real_ticks(void)

Also available in: Unified diff