[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-arm] [Qemu-devel] [PATCH v6 3/4] tcg: Add type for vCPU pointe
Re: [Qemu-arm] [Qemu-devel] [PATCH v6 3/4] tcg: Add type for vCPU pointers
Wed, 10 Feb 2016 14:24:54 +1100
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0
On 02/10/2016 08:14 AM, Lluís Vilanova wrote:
Adds the 'TCGv_env' type for pointers to 'CPUArchState' objects. The
tracing infrastructure later needs to differentiate between regular
pointers and pointers to vCPUs.
Also changes all targets to use the new 'TCGv_cpu' type instead of the
generic 'TCGv_ptr'. As of now, the change is merely cosmetic ('TCGv_env'
translates into 'TCGv_ptr'), but that could change in the future to
enforce the difference.
We won't be able distinguish TCGv_env from TCGv_ptr until env can be
auto-converted to ptr. Which I can't imagine happening without switching to C++.
I see your motivation in 4/4, so I guess this is fine.
Acked-by: Richard Henderson <address@hidden>