ppc/xics: add a XICSState backlink in ICPState
The link will be used to change the API of the icp_* routines which are still using an XICSState as an argument. Signed-off-by: Cédric Le Goater <clg@kaod.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
		
							parent
							
								
									2bb0d10aeb
								
							
						
					
					
						commit
						d49c603b37
					
				@ -198,6 +198,7 @@ void xics_set_nr_servers(XICSState *xics, uint32_t nr_servers,
 | 
				
			|||||||
        object_initialize(icp, sizeof(*icp), typename);
 | 
					        object_initialize(icp, sizeof(*icp), typename);
 | 
				
			||||||
        snprintf(name, sizeof(name), "icp[%d]", i);
 | 
					        snprintf(name, sizeof(name), "icp[%d]", i);
 | 
				
			||||||
        object_property_add_child(OBJECT(xics), name, OBJECT(icp), errp);
 | 
					        object_property_add_child(OBJECT(xics), name, OBJECT(icp), errp);
 | 
				
			||||||
 | 
					        icp->xics = xics;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -117,6 +117,8 @@ struct ICPState {
 | 
				
			|||||||
    uint8_t mfrr;
 | 
					    uint8_t mfrr;
 | 
				
			||||||
    qemu_irq output;
 | 
					    qemu_irq output;
 | 
				
			||||||
    bool cap_irq_xics_enabled;
 | 
					    bool cap_irq_xics_enabled;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    XICSState *xics;
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define TYPE_ICS_BASE "ics-base"
 | 
					#define TYPE_ICS_BASE "ics-base"
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user