Hi

> -----Original Message-----
> From: Đức Anh via gem5-users <gem5-users@gem5.org>
> Sent: 11 May 2021 13:34
> To: gem5 users mailing list <gem5-users@gem5.org>
> Cc: Đức Anh <daut...@gmail.com>
> Subject: [gem5-users] Qemu equivalent command/simulation to Gem5
>
> Dear all,
>
> I have a Linux kernel v5.10.27 build for arm64 architecture that is runnable 
> on
> Gem5. Now I want to run it on Qemu-system-aarch64, but I haven't figure
> out the proper command and parameters yet. Here is the few things I have
> tried:
> - qemu-system-aarch64 -M vexpress-a15 --cpu cortex-a15 -m 2048 --kernel
> output/vmlinux From the Gem5 source code, I know Gem5 implements Arm
> CoreTile Express A15x2 (V2P-CA15) (from the comment in
> src/dev/arm/RealView.py). It has Cortex-A15. So I chose the parameters like
> above. However, it showed the following error:

That is actually  the name of the daughterboard. It is named after the A15 as 
it should contain the dual core A15 cluster in a *test chip* (Cortex-A15_A7 
MPCore [1])  we don't emulate in gem5.
That doesn't mean your application processor will be an A15.

>
> qemu-system-aarch64: Trying to execute code outside RAM or ROM at
> 0x0000000004000000
>
>
> The reason I think is vexpress-a15 and cortex-a15 are arm architecture, not
> arm64. I tried a few other parameters like cortex-a53, cortex-a57, 
> versatileab,
> versatilepb, but all of them do not work.

I am not a QEMU expert, but I have successfully used the virt platform in the 
past.

>
> So how can I run the kernel on Qemu?
>
> And besides, I wonder how Gem5 implements Arm CoreTile Express A15x2
> (ARM arch) and supports ARMv8 (arm64 arch) at the same time?

As I mentioned earlier, we don't simulate any A15 processor within the Arm 
CoreTile Express A15x2 daughterboard.
So the execution mode of your gem5 simulation will automatically be 
arm64/aarch64 (it will be automatically detected by the workload object) 
regardless of the CPU model (microarchitecture) being modelled.

>
> Best regards,
> Duc Anh

Kind Regards

Giacomo

[1]: 
https://developer.arm.com/documentation/ddi0503/i/hardware-description/coretile-express-a15-2-a7-3-daughterboard-architecture
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
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to