Skip to contentSkip to conversation

qemu-common: Declare qemu_irq earlier

PATCH Applied Stefan Weil 3 participants 5 messages Aug 20, 2012 – Aug 24, 2012

lore
Share & tools
lore
#0 lore raw

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
index 74a99d3..88a515e 100644
@@ -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
#1 lore raw
Quoted 6 lines · Stefan Weil

This allows using qemu_irq in the target specific cpu.h.

---
 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

#2 lore raw
Quoted 8 lines · Stefan Hajnoczi
Quoted 6 lines · Stefan Weil

This allows using qemu_irq in the target specific cpu.h.

---
 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_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

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

#3 lore raw
Quoted 12 lines · Peter Maydell
Quoted 11 lines · Stefan Hajnoczi
Quoted 6 lines · Stefan Weil

This allows using qemu_irq in the target specific cpu.h.

---
 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.

Quoted 7 lines
Quoted 2 lines

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.

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

#4 lore raw

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_irq in the target specific cpu.h.

---
  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.

Quoted 7 lines
Quoted 2 lines

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.

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.h patch instead of this?

Stefan

Stefan H., that's OK.

Cheers,
Stefan