tci: Fix type of tci_read_label
Fixes the pointer truncation that was occurring for branches. Cc: Stefan Weil <sw@weilnetz.de> Cc: Blue Swirl <blauwirbel@gmail.com> Signed-off-by: Richard Henderson <rth@twiddle.net> Reviewed-by: Stefan Weil <sw@weilnetz.de> Tested-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
		
							parent
							
								
									31abf92447
								
							
						
					
					
						commit
						c6c5063c7a
					
				
							
								
								
									
										4
									
								
								tci.c
								
								
								
								
							
							
						
						
									
										4
									
								
								tci.c
								
								
								
								
							| 
						 | 
				
			
			@ -338,9 +338,9 @@ static uint64_t tci_read_ri64(uint8_t **tb_ptr)
 | 
			
		|||
}
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
static target_ulong tci_read_label(uint8_t **tb_ptr)
 | 
			
		||||
static tcg_target_ulong tci_read_label(uint8_t **tb_ptr)
 | 
			
		||||
{
 | 
			
		||||
    target_ulong label = tci_read_i(tb_ptr);
 | 
			
		||||
    tcg_target_ulong label = tci_read_i(tb_ptr);
 | 
			
		||||
    assert(label != 0);
 | 
			
		||||
    return label;
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue