summaryrefslogtreecommitdiffstats
path: root/target/riscv/translate.c
diff options
context:
space:
mode:
authorRichard Henderson2019-04-01 05:11:49 +0200
committerPalmer Dabbelt2019-05-24 21:09:22 +0200
commit81770255581bd210c57b86a6e808628ab8d0c543 (patch)
tree0b80a9dbf7bf1dccf3905c76b1f9bb66023e8fc9 /target/riscv/translate.c
parenttarget/riscv: Name the argument sets for all of insn32 formats (diff)
downloadqemu-81770255581bd210c57b86a6e808628ab8d0c543.tar.gz
qemu-81770255581bd210c57b86a6e808628ab8d0c543.tar.xz
qemu-81770255581bd210c57b86a6e808628ab8d0c543.zip
target/riscv: Use --static-decode for decodetree
The generated functions are only used within translate.c and do not need to be global, or declared. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Palmer Dabbelt <palmer@sifive.com> Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
Diffstat (limited to 'target/riscv/translate.c')
-rw-r--r--target/riscv/translate.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/target/riscv/translate.c b/target/riscv/translate.c
index 928374242e..b09158117f 100644
--- a/target/riscv/translate.c
+++ b/target/riscv/translate.c
@@ -558,7 +558,6 @@ static int ex_rvc_register(DisasContext *ctx, int reg)
return 8 + reg;
}
-bool decode_insn32(DisasContext *ctx, uint32_t insn);
/* Include the auto-generated decoder for 32 bit insn */
#include "decode_insn32.inc.c"
@@ -701,8 +700,6 @@ static bool gen_shift(DisasContext *ctx, arg_r *a,
# endif
#endif
-bool decode_insn16(DisasContext *ctx, uint16_t insn);
-/* auto-generated decoder*/
#include "decode_insn16.inc.c"
#include "insn_trans/trans_rvc.inc.c"