You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am working on instruction profile (frequency of instruction) of typical programs and required your program to simulate and make histograms of dynamic instructions that are run on a processor using RiscV executable file. I successfully installed rv8 and riscv-tools but was not able to run a typical hello world program and got the following error,
TRAP :breakpoint pc:0x112c badaddr:0x112c
when I tried running using the command, rv-sys --instruction-usage-histogram helloworld.
I tried to remove printf and scanf in the possibility of rv-sys not supporting system calls but got the same error. I also tried to include -static option to the cross-compiler but with no success.
I tried to get the total instruction count of helloworld using spike pk -s and was able to run the program and get the total dynamic instruction counts. (helloworld seems to be cross-compiled correctly).
I compiled using the tool, riscv64-unknown-elf-gcc
Contents of the file:
#include <stdio.h>
int main(void)
{
printf("Hello Riscv Word!");
return 0;
}
Details:
Ubuntu 16.04 LTS 64-bit
i7-6700 HQ
16 GB DDR4 RAM
UEFI System
GPT Partitioning
Asus ROG GL552VW-CN230T
PS.
I even tried to use the tool rv-sim --instruction-usage-histogram but was not able to get the required histograms. I got only the output specified in the program hello.c.
I tried to run the testing program provided bbl by using the tool rv-sys, but was not able to run it (Terminal gave no output and seemed to be stuck (not frozen)).
I tried on a virtual and a native host machine both, getting the same result.
The text was updated successfully, but these errors were encountered:
I am working on instruction profile (frequency of instruction) of typical programs and required your program to simulate and make histograms of dynamic instructions that are run on a processor using RiscV executable file. I successfully installed rv8 and riscv-tools but was not able to run a typical hello world program and got the following error,
TRAP :breakpoint pc:0x112c badaddr:0x112c
when I tried running using the command, rv-sys --instruction-usage-histogram helloworld.
I tried to remove printf and scanf in the possibility of rv-sys not supporting system calls but got the same error. I also tried to include -static option to the cross-compiler but with no success.
I tried to get the total instruction count of helloworld using spike pk -s and was able to run the program and get the total dynamic instruction counts. (helloworld seems to be cross-compiled correctly).
I compiled using the tool, riscv64-unknown-elf-gcc
Contents of the file:
#include <stdio.h>
int main(void)
{
printf("Hello Riscv Word!");
return 0;
}
Details:
Ubuntu 16.04 LTS 64-bit
i7-6700 HQ
16 GB DDR4 RAM
UEFI System
GPT Partitioning
Asus ROG GL552VW-CN230T
PS.
The text was updated successfully, but these errors were encountered: