[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 41/50] s390x: move stuff out of cpu.h
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH 41/50] s390x: move stuff out of cpu.h |
Date: |
Thu, 19 May 2016 12:32:05 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.0 |
On 19/05/2016 12:17, Cornelia Huck wrote:
> On Mon, 16 May 2016 17:36:13 +0200
> Paolo Bonzini <address@hidden> wrote:
>
> Maybe mention which stuff was moved why ;)
Right:
----
Move cpu_inject_* to the only C file where they are used.
Move ioinst.h declarations that need S390CPU to cpu.h, to make
ioinst.h independent of cpu.h.
Move channel declarations that only need SubchDev from cpu.h
to css.h, to make more channel users independent of cpu.h.
----
>> -#include "css.h"
>> +#include <hw/s390x/s390_flic.h>
>
> Wonder why we didn't need that one before?
It's not needed, hw/s390x/css.h includes it. But this file uses
AdapterRoutes, so I added it explicitly.
>> +#include <hw/s390x/css.h>
>>
>> #define VIRTUAL_CSSID 0xfe
>>
>> diff --git a/hw/s390x/css.h b/include/hw/s390x/css.h
>> similarity index 76%
>> rename from hw/s390x/css.h
>> rename to include/hw/s390x/css.h
>> index a320eea..98b2e2c 100644
>> --- a/hw/s390x/css.h
>> +++ b/include/hw/s390x/css.h
>> @@ -14,7 +14,7 @@
>>
>> #include "hw/s390x/adapter.h"
>> #include "hw/s390x/s390_flic.h"
>> -#include "ioinst.h"
>> +#include "hw/s390x/ioinst.h"
>>
>> /* Channel subsystem constants. */
>> #define MAX_SCHID 65535
>> @@ -67,6 +67,7 @@ typedef struct CMBE {
>> uint32_t reserved[7];
>> } QEMU_PACKED CMBE;
>>
>> +typedef struct SubchDev SubchDev;
>> struct SubchDev {
>
> Maybe do typedef and declaration all in one, to match the other
> structures in this file?
Ok, will do.
Paolo
>> /* channel-subsystem related things: */
>> uint8_t cssid;
>
> In any case:
>
> Acked-by: Cornelia Huck <address@hidden>
>
- [Qemu-devel] [PATCH 47/50] exec: extract exec/tb-context.h, (continued)
- [Qemu-devel] [PATCH 47/50] exec: extract exec/tb-context.h, Paolo Bonzini, 2016/05/16
- [Qemu-devel] [PATCH 44/50] arm: move arm_log_exception into .c file, Paolo Bonzini, 2016/05/16
- [Qemu-devel] [PATCH 38/50] qemu-common: stop including qemu/host-utils.h from qemu-common.h, Paolo Bonzini, 2016/05/16
- [Qemu-devel] [PATCH 34/50] hw: move CPU state serialization to migration/cpu.h, Paolo Bonzini, 2016/05/16
- [Qemu-devel] [PATCH 43/50] qemu-common: push cpu.h inclusion out of qemu-common.h, Paolo Bonzini, 2016/05/16
- [Qemu-devel] [PATCH 46/50] hw: explicitly include qemu/log.h, Paolo Bonzini, 2016/05/16
- [Qemu-devel] [PATCH 35/50] hw: cannot include hw/hw.h from user emulation, Paolo Bonzini, 2016/05/16
- [Qemu-devel] [PATCH 41/50] s390x: move stuff out of cpu.h, Paolo Bonzini, 2016/05/16
- [Qemu-devel] [PATCH 49/50] hw: remove pio_addr_t, Paolo Bonzini, 2016/05/16
- [Qemu-devel] [PATCH 48/50] cpu: move exec-all.h inclusion out of cpu.h, Paolo Bonzini, 2016/05/16
- [Qemu-devel] [PATCH 50/50] hw: clean up hw/hw.h includes, Paolo Bonzini, 2016/05/16
- [Qemu-devel] [PATCH 32/50] include: poison symbols in osdep.h, Paolo Bonzini, 2016/05/16
- Re: [Qemu-devel] [PATCH CFT v3 00/50] NEED_CPU_H / cpu.h / hw/hw.h cleanups, Peter Maydell, 2016/05/16
Re: [Qemu-devel] [PATCH CFT v3 00/50] NEED_CPU_H / cpu.h / hw/hw.h cleanups, Cornelia Huck, 2016/05/18