mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-10 02:54:58 -06:00
target/riscv: Name the argument sets for all of insn32 formats
Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Palmer Dabbelt <palmer@sifive.com> Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
This commit is contained in:
parent
6e2716d8ca
commit
e761799796
2 changed files with 25 additions and 3 deletions
|
@ -687,11 +687,29 @@ static bool gen_shift(DisasContext *ctx, arg_r *a,
|
|||
#include "insn_trans/trans_rvd.inc.c"
|
||||
#include "insn_trans/trans_privileged.inc.c"
|
||||
|
||||
/*
|
||||
* Auto-generated decoder.
|
||||
* Note that the 16-bit decoder reuses some of the trans_* functions
|
||||
* initially declared by the 32-bit decoder, which results in duplicate
|
||||
* declaration warnings. Suppress them.
|
||||
*/
|
||||
#ifdef CONFIG_PRAGMA_DIAGNOSTIC_AVAILABLE
|
||||
# pragma GCC diagnostic push
|
||||
# pragma GCC diagnostic ignored "-Wredundant-decls"
|
||||
# ifdef __clang__
|
||||
# pragma GCC diagnostic ignored "-Wtypedef-redefinition"
|
||||
# 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"
|
||||
|
||||
#ifdef CONFIG_PRAGMA_DIAGNOSTIC_AVAILABLE
|
||||
# pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
||||
static void decode_opc(DisasContext *ctx)
|
||||
{
|
||||
/* check for compressed insn */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue