SPARC: Fix LEON3 power down instruction
Synchronize the program counter before the power down helper call otherwise interrupts will return to the wrong context. Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de> Reviewed-by: Richard Henderson <rth@twiddle.net> Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
This commit is contained in:
		
							parent
							
								
									d32934c84c
								
							
						
					
					
						commit
						1cf892ca26
					
				| @ -3626,6 +3626,7 @@ static void disas_sparc_insn(DisasContext * dc, unsigned int insn) | ||||
|                                 if ((rd == 0x13) && (dc->def->features & | ||||
|                                                      CPU_FEATURE_POWERDOWN)) { | ||||
|                                     /* LEON3 power-down */ | ||||
|                                     save_state(dc); | ||||
|                                     gen_helper_power_down(cpu_env); | ||||
|                                 } | ||||
|                                 break; | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Sebastian Huber
						Sebastian Huber