Il 28/05/2014 20:24, Andreas Färber ha scritto:
>>> +void alpha_cpu_do_unaligned_access(CPUState *cs, vaddr addr,
>>> +                                   int is_write, int is_user,
>>> uintptr_t retaddr)
>>>  {
>>> -    AlphaCPU *cpu = alpha_env_get_cpu(env);
>>> -    CPUState *cs = CPU(cpu);
>>> +    AlphaCPU *cpu = ALPHA_CPU(cs);
>
> What's the standard variable name for XyzCPU?
"cpu", no objections there. The assumption is that the specific type
will be used more often and should thus have the more natural name.

How do I make the argument "CPUState *cpu" if I then have to assign it to "AlphaCPU *cpu"? :)

Paolo

Reply via email to