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" ?
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问

相似问题

2
npm install python报错
1
clion配置的错误原因?
1
python 3 报错 urllib.error.URLError: <urlopen error unknown url type: "http>
0
IntelliJ IDE 中运行web,网页显示Message Unable to compile class for JSP,请大神帮忙解答下
1
python的compile内置函数问题
7
关于Python3.7中安装pip install Scrapy出现的问题
0
pycharm运行mnist_show.py出现如下问题,
1
运行Vue项目时,报错npm ERR! errno 1 npm ERR! Failed at the single@1.0.0 dev script.
2
pycharm上面简单的python代码运行报错怎么解决?貌似是pycharm的环境没有配置好,跪求大神指点!
0
Python爬取出现Internal Server Error问题
1
关于 spring boot 用gradle打包 war后运行的问题
2
用Python爬取豆瓣电影链接,为何爬下来的链接总是重复出现两次
0
Rap2页面运行失败,Rap2-dolores本地运行报错了
3
运行报错,大佬们帮忙看看什么原因java.util.concurrent.ExecutionException
3
爬取需要登录的网站,登陆之后跳转到下载页面,获取下载链接并下载,现在问题是登录了但是下载不了
1
react"^16.8.6" creacte-react-app@3.0.1脚手架npm run eject 问题?
1
利用conda install TensorFlow-gpu在win7上conda3.7版本上安装tensorflow后,测试时出现下面的问题
3
IDEA做SSM框架整合时,出现无法加载mapper,导致无法注入。
4
正则大神们求助,小弟在Java代码中获取到了一串数据,想要用正则表达式匹配所需要文字,还望大佬们施加援手
1
昨天晚上电脑更新了一下,今天打开vue文件,执行cnpm install后执行npm run serve报错,为什么?