hw/mcf5206: Reduce size of lookup table
This typically reduces the size from 512 bytes to 128 bytes. Signed-off-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
		
							parent
							
								
									c242222c97
								
							
						
					
					
						commit
						715857cbba
					
				@ -359,7 +359,7 @@ static void m5206_mbar_write(m5206_mbar_state *s, uint32_t offset,
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
/* Internal peripherals use a variety of register widths.
 | 
					/* Internal peripherals use a variety of register widths.
 | 
				
			||||||
   This lookup table allows a single routine to handle all of them.  */
 | 
					   This lookup table allows a single routine to handle all of them.  */
 | 
				
			||||||
static const int m5206_mbar_width[] =
 | 
					static const uint8_t m5206_mbar_width[] =
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
  /* 000-040 */ 1, 1, 1, 1,  1, 1, 1, 1,  1, 1, 1, 1,  2, 2, 2, 2,
 | 
					  /* 000-040 */ 1, 1, 1, 1,  1, 1, 1, 1,  1, 1, 1, 1,  2, 2, 2, 2,
 | 
				
			||||||
  /* 040-080 */ 1, 2, 2, 2,  4, 1, 2, 4,  1, 2, 4, 2,  2, 4, 2, 2,
 | 
					  /* 040-080 */ 1, 2, 2, 2,  4, 1, 2, 4,  1, 2, 4, 2,  2, 4, 2, 2,
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user