Fix 8-bit signed load/store and a typo.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4504 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
		
							parent
							
								
									650bbb361e
								
							
						
					
					
						commit
						204c1674ef
					
				@ -562,14 +562,14 @@ static inline void tcg_out_st8s_8(TCGContext *s, int cond,
 | 
				
			|||||||
static inline void tcg_out_ld8s_r(TCGContext *s, int cond,
 | 
					static inline void tcg_out_ld8s_r(TCGContext *s, int cond,
 | 
				
			||||||
                int rd, int rn, int rm)
 | 
					                int rd, int rn, int rm)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    tcg_out32(s, (cond << 28) | 0x019000f0 |
 | 
					    tcg_out32(s, (cond << 28) | 0x019000d0 |
 | 
				
			||||||
                    (rn << 16) | (rd << 12) | rm);
 | 
					                    (rn << 16) | (rd << 12) | rm);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static inline void tcg_out_st8s_r(TCGContext *s, int cond,
 | 
					static inline void tcg_out_st8s_r(TCGContext *s, int cond,
 | 
				
			||||||
                int rd, int rn, int rm)
 | 
					                int rd, int rn, int rm)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    tcg_out32(s, (cond << 28) | 0x018000f0 |
 | 
					    tcg_out32(s, (cond << 28) | 0x018000d0 |
 | 
				
			||||||
                    (rn << 16) | (rd << 12) | rm);
 | 
					                    (rn << 16) | (rd << 12) | rm);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -1157,7 +1157,7 @@ static inline void tcg_out_qemu_st(TCGContext *s, int cond,
 | 
				
			|||||||
        tcg_out_st8_12(s, COND_AL, data_reg, addr_reg, 0);
 | 
					        tcg_out_st8_12(s, COND_AL, data_reg, addr_reg, 0);
 | 
				
			||||||
        break;
 | 
					        break;
 | 
				
			||||||
    case 0 | 4:
 | 
					    case 0 | 4:
 | 
				
			||||||
        tcg_out_ld8s_8(s, COND_AL, data_reg, addr_reg, 0);
 | 
					        tcg_out_st8s_8(s, COND_AL, data_reg, addr_reg, 0);
 | 
				
			||||||
        break;
 | 
					        break;
 | 
				
			||||||
    case 1:
 | 
					    case 1:
 | 
				
			||||||
        tcg_out_st16u_8(s, COND_AL, data_reg, addr_reg, 0);
 | 
					        tcg_out_st16u_8(s, COND_AL, data_reg, addr_reg, 0);
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user