target/riscv: Fix typo and restore Pointer Masking functionality for RISC-V
Fixes: 4302bef9e178 ("target/riscv: Calculate address according to XLEN")
Signed-off-by: Alexey Baturo <baturo.alexey@gmail.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20220717101543.478533-2-space.monkey.delivers@gmail.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
			
			
This commit is contained in:
		
							parent
							
								
									780bb81bb3
								
							
						
					
					
						commit
						dec19f6813
					
				@ -544,7 +544,7 @@ static TCGv get_address(DisasContext *ctx, int rs1, int imm)
 | 
			
		||||
 | 
			
		||||
    tcg_gen_addi_tl(addr, src1, imm);
 | 
			
		||||
    if (ctx->pm_mask_enabled) {
 | 
			
		||||
        tcg_gen_and_tl(addr, addr, pm_mask);
 | 
			
		||||
        tcg_gen_andc_tl(addr, addr, pm_mask);
 | 
			
		||||
    } else if (get_xl(ctx) == MXL_RV32) {
 | 
			
		||||
        tcg_gen_ext32u_tl(addr, addr);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user