|
| From: | Richard Henderson |
| Subject: | Re: [PATCH v11 5/7] [RISCV_PM] Support pointer masking for RISC-V for i/c/f/d/a types of instructions |
| Date: | Fri, 10 Sep 2021 00:00:02 +0200 |
| User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 |
On 9/9/21 9:00 PM, Alexey Baturo wrote:
+++ b/target/riscv/insn_trans/trans_rva.c.inc
@@ -25,6 +25,7 @@ static bool gen_lr(DisasContext *ctx, arg_atomic *a, MemOp
mop)
if (a->rl) {
tcg_gen_mb(TCG_MO_ALL | TCG_BAR_STRL);
}
+ gen_pm_adjust_address(ctx, src1, src1);
This will not work anymore, since src1 may not be a temporary. See the use of temp_new() e.g. in gen_load(). We're currently only conditionally allocating a temporary; with this extension, we'll always need one. So it is probably worth cleaning that up at this time.
r~
| [Prev in Thread] | Current Thread | [Next in Thread] |