Many of these should be cleaned up with proper qdev-/QOM-ification. Right now there are many catch-all headers in include/hw/ARCH depending on cpu.h, and this makes it necessary to compile these files per-target. However, fixing this does not belong in these patches. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
		
			
				
	
	
		
			10 lines
		
	
	
		
			158 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			158 B
		
	
	
	
		
			C
		
	
	
	
	
	
#ifndef PPCE500_PCI_H
 | 
						|
#define PPCE500_PCI_H
 | 
						|
 | 
						|
static inline int ppce500_pci_map_irq_slot(int devno, int irq_num)
 | 
						|
{
 | 
						|
    return (devno + irq_num) % 4;
 | 
						|
}
 | 
						|
 | 
						|
#endif
 |