target/riscv: Introduce DisasExtend and new helpers
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 23 Aug 2021 19:55:10 +0000 (12:55 -0700)
committerAlistair Francis <alistair.francis@wdc.com>
Wed, 1 Sep 2021 01:59:12 +0000 (11:59 +1000)
commitecda15d137457ebed937dc209f4bad2e7f36b4e4
tree346b1ecde4499babef520ba14b7c6b004b3a7d6b
parent867c81968a72e2250604963ea8cacf47c434651f
target/riscv: Introduce DisasExtend and new helpers

Introduce get_gpr, dest_gpr, temp_new -- new helpers that do not force
tcg globals into temps, returning a constant 0 for $zero as source and
a new temp for $zero as destination.

Introduce ctx->w for simplifying word operations, such as addw.

Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20210823195529.560295-6-richard.henderson@linaro.org
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
target/riscv/translate.c