diff options
author | Bastian Koppelmann | 2019-02-13 16:53:42 +0100 |
---|---|---|
committer | Bastian Koppelmann | 2019-03-13 10:34:06 +0100 |
commit | 3cca75a6fe8b3f85e19559ffa64cb0be370d2814 (patch) | |
tree | f1d241542c7e5c17cfc78f8a2694adb7a35de858 /target/riscv/translate.c | |
parent | target/riscv: Activate decodetree and implemnt LUI & AUIPC (diff) | |
download | qemu-3cca75a6fe8b3f85e19559ffa64cb0be370d2814.tar.gz qemu-3cca75a6fe8b3f85e19559ffa64cb0be370d2814.tar.xz qemu-3cca75a6fe8b3f85e19559ffa64cb0be370d2814.zip |
target/riscv: Convert RVXI branch insns to decodetree
Acked-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Palmer Dabbelt <palmer@sifive.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>
Signed-off-by: Peer Adelt <peer.adelt@hni.uni-paderborn.de>
Diffstat (limited to 'target/riscv/translate.c')
-rw-r--r-- | target/riscv/translate.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/target/riscv/translate.c b/target/riscv/translate.c index a273ac8274..fb284a5e08 100644 --- a/target/riscv/translate.c +++ b/target/riscv/translate.c @@ -1879,6 +1879,7 @@ static void decode_RV32_64C(DisasContext *ctx) { \ return imm << amount; \ } +EX_SH(1) EX_SH(12) bool decode_insn32(DisasContext *ctx, uint32_t insn); @@ -1907,17 +1908,6 @@ static void decode_RV32_64G(DisasContext *ctx) imm = GET_IMM(ctx->opcode); switch (op) { - case OPC_RISC_JAL: - imm = GET_JAL_IMM(ctx->opcode); - gen_jal(ctx, rd, imm); - break; - case OPC_RISC_JALR: - gen_jalr(ctx, MASK_OP_JALR(ctx->opcode), rd, rs1, imm); - break; - case OPC_RISC_BRANCH: - gen_branch(ctx, MASK_OP_BRANCH(ctx->opcode), rs1, rs2, - GET_B_IMM(ctx->opcode)); - break; case OPC_RISC_LOAD: gen_load(ctx, MASK_OP_LOAD(ctx->opcode), rd, rs1, imm); break; |