Tom雷GQ 2019-09-02 10:10 采纳率: 0%
浏览 166

How to compile and run "hello world" program for ARM architectures on Gem5?

I have compile the "hello.c" file (in directory: tests/test-progs/hello/src) like this:

aarch64-linux-gun-gcc hello.c -o hello -static

and run gem5:

./build/ARM/gem5.debug configs/example/se.py -c tests/test-progs/hello/src/hello

then, I found this error:

panic: Attempted to execute unimplemented instructions 'mrs' (inst 0x4d5380000)

It shows that the mrs inst is not implemented in gem5.

Totally, I have three questions as follows:

Question 1: In order to run hello program for ARM architecture, how to compile the hello source file to avoid "mrs" insts ?

Question 2: How can I know whether the instruction A has been implemented in gem5 or not for ARM architecture ?

Question 3: If I choose armclang compiler, the error is:

    panic: Attempted to execute unimplemented instructions 'hlt' (inst 0x4d45e0000)

        So how to compile hello to avoid generating "hlt" ?
  • 写回答

0条回答

    报告相同问题?

    悬赏问题

    • ¥15 对于相关问题的求解与代码
    • ¥15 ubuntu子系统密码忘记
    • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
    • ¥15 保护模式-系统加载-段寄存器
    • ¥15 电脑桌面设定一个区域禁止鼠标操作
    • ¥15 求NPF226060磁芯的详细资料
    • ¥15 使用R语言marginaleffects包进行边际效应图绘制
    • ¥20 usb设备兼容性问题
    • ¥15 错误(10048): “调用exui内部功能”库命令的参数“参数4”不能接受空数据。怎么解决啊
    • ¥15 安装svn网络有问题怎么办