qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 07/13] softmmu: make do_unaligned_access a metho


From: Andreas Färber
Subject: Re: [Qemu-devel] [PATCH 07/13] softmmu: make do_unaligned_access a method of CPU
Date: Wed, 28 May 2014 20:24:02 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0

Am 28.05.2014 20:17, schrieb Paolo Bonzini:
> Il 28/05/2014 19:20, 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.

Andreas

-- 
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg



reply via email to

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