Hi ikram,

On 01/02/2023 10:19, IKRAM via gem5-users wrote:
Hi

Below are commands and log info of the error mentioned in the subject line.

Info of workload is:
file demo.elf
demo.elf: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), statically 
linked, with debug_info, not stripped

build/ARM/gem5.opt configs/learning_gem5/part1/two_level.py
command line: build/ARM/gem5.opt configs/learning_gem5/part1/two_level.py
build/ARM/base/loader/elf_object.cc:355: warn: Ignoring empty loadable segment 8
build/ARM/base/loader/elf_object.cc:355: warn: Ignoring empty loadable segment 9
Global frequency set at 1000000000000 ticks per second
warn: No dot file generated. Please install pydot to generate the dot file and 
pdf.
build/ARM/mem/dram_interface.cc:690: warn: DRAM device capacity (8192 Mbytes) 
does not match the address range assigned (512 Mbytes)
build/ARM/base/loader/elf_object.cc:355: warn: Ignoring empty loadable segment 8
build/ARM/base/loader/elf_object.cc:355: warn: Ignoring empty loadable segment 9
build/ARM/arch/arm/linux/se_workload.cc:73: warn: Unknown operating system; 
assuming Linux.
0: system.remote_gdb: listening for remote gdb on port 7000
Beginning simulation!
build/ARM/sim/simulate.cc:192: info: Entering event queue @ 0.  Starting 
simulation...
build/ARM/arch/arm/faults.cc:822: panic: Attempted to execute unimplemented 
instruction 'msr' (inst 0xd51e4100)


As you can see here you are hitting a panic as you encountered a MSR 
instruction. This is a privileged instruction and usually you cannot execute it 
in SE mode (which runs in userspace). This is why simulation is throwing an 
undefined instruction exception.

You need to figure out why your binary is producing a privileged instruction. 
My bet is that you cross-compiled the application with a baremetal toolchain. 
You need to use a GNU/Linux one to produce a linux application.


See https://developer.arm.com/downloads/-/arm-gnu-toolchain-downloads


Kind Regards


Giacomo

IMPORTANT NOTICE: The contents of this email and any attachments are 
confidential and may also be privileged. If you are not the intended recipient, 
please notify the sender immediately and do not disclose the contents to any 
other person, use it for any purpose, or store or copy the information in any 
medium. Thank you.
_______________________________________________
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org

Reply via email to