admin管理员组文章数量:1320661
I use qemu to emulate a Raspberry Pi 4b , then I found when I load elf image , the exception level is EL3 , but when I load bin file , the exception level is EL2 .
Why do different image file formats result in different exception levels?
qemu-system-aarch64 -nographic -kernel benos.bin -S -s
.section ".text.boot"
.globl _start
_start:
mrs x0, mpidr_el1
and x0, x0,#0xFF
cbz x0, master
b proc_hang
proc_hang:
b proc_hang
master:
bl getel
.globl getel
getel:
mrs x0, currentel
lsr x0, x0, 2
and x0, x0, 0x3
ret
本文标签:
版权声明:本文标题:Why does Qemu enter different exception levels when loading image files of different formats (elf vs. bin)? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742065838a2418828.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论