hw/arm_mptimer: Save the timer state
Add a missing VMSTATE_TIMER() entry to the arm_mptimer vmstate description; this omission meant that we would probably hang on reload when the timer failed to fire. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com> Message-id: 1363967348-3044-1-git-send-email-peter.maydell@linaro.org
This commit is contained in:
		
							parent
							
								
									e8945b4f2a
								
							
						
					
					
						commit
						28092a23e6
					
				@ -253,14 +253,15 @@ static int arm_mptimer_init(SysBusDevice *dev)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
static const VMStateDescription vmstate_timerblock = {
 | 
					static const VMStateDescription vmstate_timerblock = {
 | 
				
			||||||
    .name = "arm_mptimer_timerblock",
 | 
					    .name = "arm_mptimer_timerblock",
 | 
				
			||||||
    .version_id = 1,
 | 
					    .version_id = 2,
 | 
				
			||||||
    .minimum_version_id = 1,
 | 
					    .minimum_version_id = 2,
 | 
				
			||||||
    .fields = (VMStateField[]) {
 | 
					    .fields = (VMStateField[]) {
 | 
				
			||||||
        VMSTATE_UINT32(count, TimerBlock),
 | 
					        VMSTATE_UINT32(count, TimerBlock),
 | 
				
			||||||
        VMSTATE_UINT32(load, TimerBlock),
 | 
					        VMSTATE_UINT32(load, TimerBlock),
 | 
				
			||||||
        VMSTATE_UINT32(control, TimerBlock),
 | 
					        VMSTATE_UINT32(control, TimerBlock),
 | 
				
			||||||
        VMSTATE_UINT32(status, TimerBlock),
 | 
					        VMSTATE_UINT32(status, TimerBlock),
 | 
				
			||||||
        VMSTATE_INT64(tick, TimerBlock),
 | 
					        VMSTATE_INT64(tick, TimerBlock),
 | 
				
			||||||
 | 
					        VMSTATE_TIMER(timer, TimerBlock),
 | 
				
			||||||
        VMSTATE_END_OF_LIST()
 | 
					        VMSTATE_END_OF_LIST()
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user