qemu-common: Declare qemu_irq earlier
PATCH 1/1 qemu-common: Declare qemu_irq earlier
This allows using qemu_irq in the target specific cpu.h.
--- qemu-common.h | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
qemu-common.h +2 -1
@@ -19,6 +19,8 @@ struct Monitor;typedef struct Monitor Monitor ;typedef struct MigrationParams MigrationParams ; +typedef struct IRQState *qemu_irq ; +/* we put basic includes here to avoid repeating them in device drivers */ #include <stdlib.h> #include <stdio.h>
@@ -276,7 +278,6 @@ typedef struct PCIEPort PCIEPort;typedef struct PCIESlot PCIESlot ;typedef struct MSIMessage MSIMessage ;typedef struct SerialState SerialState ; -typedef struct IRQState *qemu_irq ;typedef struct PCMCIACardState PCMCIACardState ;typedef struct MouseTransformInfo MouseTransformInfo ;typedef struct uWireSlave uWireSlave ;
Signature · 1 line
1.7.0.4
Stefan Hajnoczi
AppliedQuoted 6 lines · Stefan Weil
This allows using
qemu_irqin the target specificcpu.h.Signed-off-by Stefan Weil <[email protected]>--- qemu-common.h | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
I'm not sure if there's a reason why qemu_irq was previously hidden from cpu.h but the code change itself is fine and no one else has commented.
Thanks, applied to the trivial patches tree:
https://github.com/stefanha/qemu/commits/trivial-patches
Stefan
Quoted 8 lines · Stefan Hajnoczi
Quoted 6 lines · Stefan Weil
This allows using
qemu_irqin the target specificcpu.h.Signed-off-by Stefan Weil <[email protected]>--- qemu-common.h | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
Quoted 5 lines
I'm not sure if there's a reason why
qemu_irqwas previously hidden fromcpu.hbut the code change itself is fine and no one else has commented.Thanks, applied to the trivial patches tree:
https://github.com/stefanha/qemu/commits/trivial-patches
Consensus seemed to be that it was better to move qemu_irq into hw/irq.h, as discussed in this mail thread:
http://lists.gnu.org/archive/html/qemu-devel/2012-08/msg03463.html
rather than just doing a move of the typedef within this header.
-- PMM
Quoted 12 lines · Peter Maydell
Quoted 11 lines · Stefan Hajnoczi
Quoted 6 lines · Stefan Weil
This allows using
qemu_irqin the target specificcpu.h.Signed-off-by Stefan Weil <[email protected]>--- qemu-common.h | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)I'm not sure if there's a reason why
qemu_irqwas previously hidden fromcpu.hbut the code change itself is fine and no one else has commented.
Quoted 7 lines
Quoted 2 lines
Thanks, applied to the trivial patches tree:
https://github.com/stefanha/qemu/commits/trivial-patchesConsensus seemed to be that it was better to move
qemu_irqintohw/irq.h, as discussed in this mail thread:
http://lists.gnu.org/archive/html/qemu-devel/2012-08/msg03463.html
rather than just doing a move of the typedef within this header.
Fine by me. I won't send a pull request with this patch yet.
Stefan Weil: Are you happy to use the hw/irq.h patch instead of this?
Stefan
Am 24.08.2012 13:56, schrieb Stefan Hajnoczi:
Quoted 22 lines
Quoted 12 lines · Peter Maydell
Quoted 11 lines · Stefan Hajnoczi
Quoted 6 lines · Stefan Weil
This allows using
qemu_irqin the target specificcpu.h.Signed-off-by Stefan Weil<[email protected]>--- qemu-common.h | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)I'm not sure if there's a reason why
qemu_irqwas previously hidden fromcpu.hbut the code change itself is fine and no one else has commented.Quoted 7 lines
Quoted 2 lines
Thanks, applied to the trivial patches tree:
https://github.com/stefanha/qemu/commits/trivial-patchesConsensus seemed to be that it was better to move
qemu_irqintohw/irq.h, as discussed in this mail thread:
http://lists.gnu.org/archive/html/qemu-devel/2012-08/msg03463.html
rather than just doing a move of the typedef within this header.
Quoted 5 lines
Fine by me. I won't send a pull request with this patch yet.
Stefan Weil: Are you happy to use the
hw/irq.hpatch instead of this?Stefan
Stefan H., that's OK.
Cheers,
Stefan