qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH v3 08/21] s390x: move sclp_service_call() to scl


From: David Hildenbrand
Subject: Re: [Qemu-devel] [PATCH v3 08/21] s390x: move sclp_service_call() to sclp.h
Date: Mon, 11 Sep 2017 19:56:19 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0

>>>>
>>>>  #endif
>>>
>>> Why not use typedefs.h?
>>
>> See Markus's reply.  But, maybe it's even better to use S390CPU* and
>> include target/s390x/cpu-qom.h, which by design provides as little
>> definitions as needed.
> 
> I don't see an argument against moving typedef CPUS390XState to
> typedefs.h in Markus' reply.  I see one argument for it (reducing
> the need for non-cyclic includes).
> 
> cpu-qom.h includes cpu.h, so I don't know why using S390CPU*
> would solve any problem.  I don't disagree about changing the
> function to use S390CPU* eventually, but it would still require
> us make a choice between: a) including the header where the
> typedef name is declared (cpu.h or cpu-qom.h); or b) moving the
> typedef name declaration to typedefs.h.

It includes qom/cpu.h, not cpu.h. That's why using cpu-qom.h for such
typedefs works (see v4).

Thanks!

-- 

Thanks,

David



reply via email to

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