Skip to contentSkip to conversation

hw/intc/xics: Include missing 'cpu.h' header

PATCH In review Philippe Mathieu-Daudé 2 participants 2 messages Jan 29, 2024 – Jan 30, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hw/intc/xics: Include missing 'cpu.h' header

Include missing headers in order to avoid when refactoring unrelated headers:

hw/intc/xics.c: In function 'icp_realize':
hw/intc/xics.c:304:5: error: unknown type name 'PowerPCCPU'

    304 |     PowerPCCPU *cpu;
        |     ^~~~~~~~~~
---
 hw/intc/xics.c | 1 +
 1 file changed, 1 insertion(+)
hw/intc/xics.c +1 -0
index 8b25787227..700abfa7a6 100644
@@ -40,6 +40,7 @@
 #include "hw/irq.h"
 #include "sysemu/kvm.h"
 #include "sysemu/reset.h"
+#include "target/ppc/cpu.h"
 
 void icp_pic_print_info(ICPState *icp, Monitor *mon)
 {
Signature · 1 line
2.41.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 18 lines · Philippe Mathieu-Daudé

Include missing headers in order to avoid when refactoring unrelated headers:

hw/intc/xics.c: In function 'icp_realize':

   hw/intc/xics.c:304:5: error: unknown type name 'PowerPCCPU'
     304 |     PowerPCCPU *cpu;
         |     ^~~~~~~~~~
---
  hw/intc/xics.c | 1 +
  1 file changed, 1 insertion(+)
hw/intc/xics.c +0 -0
index 8b25787227..700abfa7a6 100644

hw/intc/xics.c line 46

Quoted 7 lines
hw/intc/xics.c +1 -0
@@ -40,6 +40,7 @@
  #include "hw/irq.h"
  #include "sysemu/kvm.h"
  #include "sysemu/reset.h"
+#include "target/ppc/cpu.h"
 
  void icp_pic_print_info(ICPState *icp, Monitor *mon)
  {