mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-03-24 22:25:11 +00:00
target/riscv: Remove redundant declaration pragmas
These are now generated by decodetree itself. Backports commit 59a3a1c0c211640e18b058a1b0444154c4eb6f99 from qemu
This commit is contained in:
parent
b33a5bd513
commit
8767d64b66
|
@ -737,26 +737,9 @@ static bool gen_shift(DisasContext *ctx, arg_r *a,
|
||||||
#include "insn_trans/trans_rvd.inc.c"
|
#include "insn_trans/trans_rvd.inc.c"
|
||||||
#include "insn_trans/trans_privileged.inc.c"
|
#include "insn_trans/trans_privileged.inc.c"
|
||||||
|
|
||||||
/*
|
/* Include the auto-generated decoder for 16 bit insn */
|
||||||
* 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
|
|
||||||
|
|
||||||
#include "decode_insn16.inc.c"
|
#include "decode_insn16.inc.c"
|
||||||
|
|
||||||
#ifdef CONFIG_PRAGMA_DIAGNOSTIC_AVAILABLE
|
|
||||||
# pragma GCC diagnostic pop
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static void decode_opc(DisasContext *ctx)
|
static void decode_opc(DisasContext *ctx)
|
||||||
{
|
{
|
||||||
/* check for compressed insn */
|
/* check for compressed insn */
|
||||||
|
|
Loading…
Reference in a new issue