qemu-arm
[Top][All Lists]
Advanced

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

Re: [Qemu-arm] [Qemu-devel] [PATCH] target-arm: Bug fix in filling the c


From: Abdallah Bouassida
Subject: Re: [Qemu-arm] [Qemu-devel] [PATCH] target-arm: Bug fix in filling the cp_regs hashtable
Date: Fri, 16 Jun 2017 16:28:44 +0100
User-agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0

Oh, I see!
Thanks for the details!

Regards,
Abdallah

Le 6/16/2017 à 3:51 PM, Peter Maydell a écrit :
On 16 June 2017 at 15:42, Abdallah Bouassida
<address@hidden> wrote:
Check if the CPU supports AARCH64 before adding  the 64bit view of
the coprocessor's register to the cp_regs hashtable.

Signed-off-by: Abdallah Bouassida <address@hidden>
---
Bug description: if a register has the .state = ARM_CP_STATE_BOTH, its 64bit
view will be added to the hashtable even if the CPU is not 64bit.
This is deliberate and required. Where the AArch64 and AArch32
states both have a register which shares underlying architectural
state, QEMU chooses to implement migration of that state usually
via the AArch64 version's ARMCPRegInfo struct. If the AArch64
version is not included in the hashtable for an AArch32-only
CPU then the state of the 32-bit register won't be migrated.
The AArch64 register is of course invisible to the guest because
it is only accessible via 64-bit instructions, but it's used
during migration.

thanks
-- PMM




reply via email to

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