From 451e4ffdb0003ab5ed0d98bd37b385c076aba183 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Wed, 20 Mar 2019 19:21:31 -0700 Subject: decodetree: Add DisasContext argument to !function expanders This does require adjusting all existing users. Signed-off-by: Richard Henderson --- target/riscv/translate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'target/riscv/translate.c') diff --git a/target/riscv/translate.c b/target/riscv/translate.c index 967eac7bc3..2ff6b49487 100644 --- a/target/riscv/translate.c +++ b/target/riscv/translate.c @@ -517,7 +517,7 @@ static void decode_RV32_64C(DisasContext *ctx) } #define EX_SH(amount) \ - static int ex_shift_##amount(int imm) \ + static int ex_shift_##amount(DisasContext *ctx, int imm) \ { \ return imm << amount; \ } @@ -533,7 +533,7 @@ EX_SH(12) } \ } while (0) -static int ex_rvc_register(int reg) +static int ex_rvc_register(DisasContext *ctx, int reg) { return 8 + reg; } -- cgit v1.2.3