Fix wrwim masking (Luis Pureza)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5043 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
		
							parent
							
								
									5578ceab94
								
							
						
					
					
						commit
						c93e7817ee
					
				@ -3451,6 +3451,9 @@ static void disas_sparc_insn(DisasContext * dc)
 | 
				
			|||||||
                            }
 | 
					                            }
 | 
				
			||||||
#else
 | 
					#else
 | 
				
			||||||
                            tcg_gen_trunc_tl_i32(cpu_tmp32, cpu_tmp0);
 | 
					                            tcg_gen_trunc_tl_i32(cpu_tmp32, cpu_tmp0);
 | 
				
			||||||
 | 
					                            if (dc->def->nwindows != 32)
 | 
				
			||||||
 | 
					                                tcg_gen_andi_tl(cpu_tmp32, cpu_tmp32,
 | 
				
			||||||
 | 
					                                                (1 << dc->def->nwindows) - 1);
 | 
				
			||||||
                            tcg_gen_st_i32(cpu_tmp32, cpu_env,
 | 
					                            tcg_gen_st_i32(cpu_tmp32, cpu_env,
 | 
				
			||||||
                                           offsetof(CPUSPARCState, wim));
 | 
					                                           offsetof(CPUSPARCState, wim));
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user