Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

port to riscv #130

Open
kirana1996 opened this issue Jan 22, 2020 · 2 comments
Open

port to riscv #130

kirana1996 opened this issue Jan 22, 2020 · 2 comments

Comments

@kirana1996
Copy link

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;

@igor-ivanov
Copy link
Collaborator

Hello @kirana1996. Time compilation of sockperf mostly depends on amount of RAM and compiler version.

@kirana1996
Copy link
Author

i am ok with that..but here three is a file client.cpp is it depents on rdtsc because after porting to riscv i was getting teststart is greater than testend so ¨for¨ loop is not at all executing in that file...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants