hw/arm_mptimer: Reset the qemu_timer at reset
On reset of the mpcore timer/watchdog block we need to delete the qemu_timer in case it was running. Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
		
							parent
							
								
									b1f05696cc
								
							
						
					
					
						commit
						bdac1c1e95
					
				| @ -228,6 +228,9 @@ static void timerblock_reset(timerblock *tb) | ||||
|     tb->control = 0; | ||||
|     tb->status = 0; | ||||
|     tb->tick = 0; | ||||
|     if (tb->timer) { | ||||
|         qemu_del_timer(tb->timer); | ||||
|     } | ||||
| } | ||||
| 
 | ||||
| static void arm_mptimer_reset(DeviceState *dev) | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Peter Maydell
						Peter Maydell