mirror of
				https://git.proxmox.com/git/qemu
				synced 2025-10-31 13:19:36 +00:00 
			
		
		
		
	target-arm: fix thumb CPS
The Thumb CPS currently does not work correctly: CPSID touches more bits than the instruction wants to, and CPSIE does nothing. Fix it by passing the correct mask (the "affect" bits) and value. Signed-off-by: Rabin Vincent <rabin@rab.in>
This commit is contained in:
		
							parent
							
								
									24ebf5f31a
								
							
						
					
					
						commit
						fa26df032e
					
				| @ -8898,7 +8898,7 @@ static void disas_thumb_insn(CPUState *env, DisasContext *s) | ||||
|                     shift = CPSR_A | CPSR_I | CPSR_F; | ||||
|                 else | ||||
|                     shift = 0; | ||||
|                 gen_set_psr_im(s, shift, 0, ((insn & 7) << 6) & shift); | ||||
|                 gen_set_psr_im(s, ((insn & 7) << 6), 0, shift); | ||||
|             } | ||||
|             break; | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Rabin Vincent
						Rabin Vincent