qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH v3 07/13] target-sh4: Make increment_urc() take


From: Andreas Färber
Subject: Re: [Qemu-devel] [PATCH v3 07/13] target-sh4: Make increment_urc() take SuperHCPU
Date: Mon, 16 Apr 2012 17:13:38 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120312 Thunderbird/11.0

Am 16.04.2012 16:53, schrieb Peter Maydell:
> On 14 April 2012 23:12, Andreas Färber <address@hidden> wrote:
>> Signed-off-by: Andreas Färber <address@hidden>
> 
> Is this really an improvement?

Yes, these patches are propagating the use of QOM *CPU throughout code
so that we can gradually drop *_env_get_cpu() calls and at some point
remove it completely. Expect to see more of such incremental cleanups in
the followup series - having CPUState be QOM in 03/13 is not the end
goal, it's having the code actually use it instead of CPU*State. General
idea is CPUArchState -> CPUState (therefore the automated CPUState ->
CPU*State refactorings) and CPU*State -> *CPU except for TCG (Richard's
pointer-to-middle concept, therefore "first member of" in the various
conversions).

Looking at this particular patch again, adding a local env variable
would avoid some of the cpu->env.* accesses. That should be better.

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]