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 关于#hadoop#的问题
    • ¥15 (标签-Python|关键词-socket)
    • ¥15 keil里为什么main.c定义的函数在it.c调用不了
    • ¥50 切换TabTip键盘的输入法
    • ¥15 可否在不同线程中调用封装数据库操作的类
    • ¥15 微带串馈天线阵列每个阵元宽度计算
    • ¥15 keil的map文件中Image component sizes各项意思
    • ¥20 求个正点原子stm32f407开发版的贪吃蛇游戏
    • ¥15 划分vlan后,链路不通了?
    • ¥20 求各位懂行的人,注册表能不能看到usb使用得具体信息,干了什么,传输了什么数据