unsigned long riscv_read_cycles(void)
{
? ? unsigned long cycles;
? ? asm volatile ("rdcycle %0" : "=r" (cycles));
? ? return cycles;
}
函數(shù)返回的一直是0
熱門產(chǎn)品 :
CH592: RISC-V內(nèi)核BLE5.4無線MCU