|
From: | Richard Henderson |
Subject: | Re: [Qemu-devel] [PATCH v2 1/6] Pass generic CPUState to gen_intermediate_code() |
Date: | Fri, 16 Sep 2016 16:01:04 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 |
On 09/09/2016 06:03 AM, Lluís Vilanova wrote:
-void gen_intermediate_code(CPUAlphaState *env, struct TranslationBlock *tb) +void gen_intermediate_code(CPUState *cpu, struct TranslationBlock *tb) { - AlphaCPU *cpu = alpha_env_get_cpu(env); - CPUState *cs = CPU(cpu); + CPUAlphaState *env = cpu->env_ptr;
Why the variable renames? I.e. why CPUState *cpu instead of CPUState *cs? r~
[Prev in Thread] | Current Thread | [Next in Thread] |