Preaload Image
  • I am trying to measure performance of my app. Starting with a modified hello_world demo, I try to read the rdcycle counter as defined in RISC-V specification:

    unsigned long read_cycles(void)
    unsigned long cycles
    asm volatile ("rdcycle %0" : "=r" (cycles));
    return cycles;

    However, the value is always zero. Looking at the CSR…[Read more]