|
From: | Richard Henderson |
Subject: | Re: [Qemu-ppc] [PATCH qom-cpu-next 6/6] cpu: Add CPUArchState pointer to CPUState |
Date: | Fri, 01 Feb 2013 08:09:19 -0800 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 |
On 02/01/2013 04:38 AM, Andreas Färber wrote:
The target-specific ENV_GET_CPU() macros have allowed us to navigate from CPUArchState to CPUState. The reverse direction was not supported. Avoid introducing CPU_GET_ENV() macros by initializing an untyped pointer that is initialized in derived instance_init functions. The field may not be called "env" due to it being poisoned. Signed-off-by: Andreas Färber<address@hidden>
Acked-by: Richard Henderson <address@hidden> r~
[Prev in Thread] | Current Thread | [Next in Thread] |