Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-14571

Implement the equivalent to RDTSC for power8

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Not specified
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.0.0
    • Component/s: JLib
    • Labels:
      None

      Description

      Currently the power8 will be falling back to the default get_cycles_now implementation.

      I think something the following can be used in 64bit:

      #if defined(ARCH_PPC64EL)
      inline volatile __int64 getTSC()

      { uint64 cycles; __asm__ volatile ("mfspr %0, 268" : "=r" (cycles)); return cycles; }

      #endif

      Should ask a power8 expert

        Attachments

          Activity

            People

            • Assignee:
              ghalliday Gavin Halliday
              Reporter:
              ghalliday Gavin Halliday
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: