qemu-arm
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AArch64 code running on QEMU ...


From: Peter Maydell
Subject: Re: AArch64 code running on QEMU ...
Date: Wed, 5 May 2021 11:46:09 +0100

On Tue, 4 May 2021 at 23:25, ovidiu nastai <ovidiu.s.nastai@gmail.com> wrote:
> Please help me with this, I am new to QEMU: I need to run some AArch64 code, 
> to verify functional correctness, and code generation. The code sources will 
> be mainly high-level syntax (C/C++), then I'll disassemble and inspect.
> Question: can I run AArch64 sources on QEMU, that's it, on a x86-64 host 
> machine, or, I need an AArch64 host for QEMU, to start with.

Yes, you can emulate AArch64 guest code on an x86 host.

> I saw this "For example, the aarch64 CPU feature, which, when disabled, 
> enables the optional AArch32 CPU feature, is only supported when using the 
> KVM accelerator and when running on a host CPU type that supports the 
> feature. " at 
> "https://qemu-project.gitlab.io/qemu/system/arm/cpu-features.html";, and need 
> to understand that, before deciding about the tools I will use.

The feature which is not supported here for TCG is
"create an AArch64 CPU but then run an AArch32 guest kernel on it".
For TCG, if you want to run an AArch32 guest kernel you need to
create an AArch32 CPU.

thanks
-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]