Hi Jeageun, you should take a look at util/m5/README.md for an explanation
of how the m5 utility works and how it should be used in different
environments. It looks like it's trying to use the instruction based
mechanism to call into gem5, and that won't work in KVM. In KVM, you have
to use the magic address based mechanism. That's all spelled out in that
README. There are also instructions there for building the utility if your
version is too old and doesn't have the updates reflected in that document.
The older m5 utility would have to be recompiled to use a different
mechanism, where with the new version you can select what mechanism to use
from the command line.

Gabe

On Wed, Mar 31, 2021 at 7:11 PM JeaGeun Jung via gem5-users <
gem5-users@gem5.org> wrote:

> Hi all,
>
> I'm trying to use m5 exit on the ARM image using
> http://dist.gem5.org/dist/current/arm/aarch-system-201901106.tar.bz2.
>
> I boot this image using the following instruction
>
> ./build/ARM/gem5.opt configs/example/fs.py --kernel
> /data/gem5_image/vmlinux --disk-image
> /data/gem5_image/ubuntu-18.04-arm64-docker.img --mem-size=16GB
> --cpu-type=ArmV8KvmCPU -n4 --cpu-clock=3.2GHz
>
> In short, kvm cpu boot for ARM full system.
>
> In the gem5 image, I tried m5 exit, and it prints an error message.
> I use most updated gem5 develop branch.
>
> root@aarch64-gem5:~# m5 exit
>
> [  125.384290] m5[737]: undefined instruction: pc=0000000000409290
>
> [  125.386245] Code: ff070110 d65f03c0 ff090110 d65f03c0 (ff210110)
>
> Illegal instruction
>
> I tried to compile m5 binary in gem5 image, but it doesn't work. How could
> I fix this bug?
>
> Thanks,
> Jeageun
>
> ᐧ
> _______________________________________________
> gem5-users mailing list -- gem5-users@gem5.org
> To unsubscribe send an email to gem5-users-le...@gem5.org
> %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
_______________________________________________
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to