Skip to content

port to riscv  #130

@kirana1996

Description

@kirana1996

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions