-
Notifications
You must be signed in to change notification settings - Fork 122
Open
Description
hi,
when porting this to riscv we got error rdtsc not supported and we replaced that using rdcycle but here itś taking more time to build compare arm but it is not giving any error....can any one clear me why it takes more time...
code:
arm
register uint32_t upper_32, lower_32;
asm volatile("rdtsc" : "=a"(lower_32), "=d"(upper_32));
return (((ticks_t)upper_32) << 32) | lower_32;
riscv:
uint64_t cycles;
asm("rdcycle %0" : "=r"(cycles));
return cycles;
Metadata
Metadata
Assignees
Labels
No labels