macio: add trace-events to timer device
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
		
							parent
							
								
									681431893e
								
							
						
					
					
						commit
						56e7404bc1
					
				@ -32,6 +32,7 @@
 | 
				
			|||||||
#include "hw/char/escc.h"
 | 
					#include "hw/char/escc.h"
 | 
				
			||||||
#include "hw/misc/macio/macio.h"
 | 
					#include "hw/misc/macio/macio.h"
 | 
				
			||||||
#include "hw/intc/heathrow_pic.h"
 | 
					#include "hw/intc/heathrow_pic.h"
 | 
				
			||||||
 | 
					#include "trace.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* Note: this code is strongly inspirated from the corresponding code
 | 
					/* Note: this code is strongly inspirated from the corresponding code
 | 
				
			||||||
 * in PearPC */
 | 
					 * in PearPC */
 | 
				
			||||||
@ -246,6 +247,7 @@ static void macio_oldworld_init(Object *obj)
 | 
				
			|||||||
static void timer_write(void *opaque, hwaddr addr, uint64_t value,
 | 
					static void timer_write(void *opaque, hwaddr addr, uint64_t value,
 | 
				
			||||||
                       unsigned size)
 | 
					                       unsigned size)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 | 
					    trace_macio_timer_write(addr, size, value);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static uint64_t timer_read(void *opaque, hwaddr addr, unsigned size)
 | 
					static uint64_t timer_read(void *opaque, hwaddr addr, unsigned size)
 | 
				
			||||||
@ -266,6 +268,7 @@ static uint64_t timer_read(void *opaque, hwaddr addr, unsigned size)
 | 
				
			|||||||
        break;
 | 
					        break;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    trace_macio_timer_read(addr, size, value);
 | 
				
			||||||
    return value;
 | 
					    return value;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -9,3 +9,7 @@ cuda_packet_receive(int len) "length %d"
 | 
				
			|||||||
cuda_packet_receive_data(int i, const uint8_t data) "[%d] 0x%02x"
 | 
					cuda_packet_receive_data(int i, const uint8_t data) "[%d] 0x%02x"
 | 
				
			||||||
cuda_packet_send(int len) "length %d"
 | 
					cuda_packet_send(int len) "length %d"
 | 
				
			||||||
cuda_packet_send_data(int i, const uint8_t data) "[%d] 0x%02x"
 | 
					cuda_packet_send_data(int i, const uint8_t data) "[%d] 0x%02x"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# hw/misc/macio/macio.c
 | 
				
			||||||
 | 
					macio_timer_write(uint64_t addr, unsigned len, uint64_t val) "write addr 0x%"PRIx64 " len %d val 0x%"PRIx64
 | 
				
			||||||
 | 
					macio_timer_read(uint64_t addr, unsigned len, uint32_t val) "read addr 0x%"PRIx64 " len %d val 0x%"PRIx32
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user