Fix segfault of qemu-system-arm with PXA target
qemu-system-arm (0.10.5) segfaults when invoked with a PXA machine target, e.g. -M tosa. The reason is fairly obvious: Signed-off-by: Torsten Duwe <duwe@lst.de> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Andrzej Zaborowski <balrogg@gmail.com>
This commit is contained in:
		
							parent
							
								
									699960b272
								
							
						
					
					
						commit
						8d30b794ce
					
				@ -155,7 +155,7 @@ static CPUWriteMemoryFunc *scoop_writefn[] = {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
void scoop_gpio_set(void *opaque, int line, int level)
 | 
					void scoop_gpio_set(void *opaque, int line, int level)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    ScoopInfo *s = (ScoopInfo *) s;
 | 
					    ScoopInfo *s = (ScoopInfo *) opaque;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (level)
 | 
					    if (level)
 | 
				
			||||||
        s->gpio_level |= (1 << line);
 | 
					        s->gpio_level |= (1 << line);
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user