]> Git Repo - qemu.git/commitdiff
target/hppa: Merge translate_one into hppa_tr_translate_insn
authorRichard Henderson <[email protected]>
Sat, 17 Feb 2018 20:11:32 +0000 (12:11 -0800)
committerRichard Henderson <[email protected]>
Tue, 12 Feb 2019 16:59:21 +0000 (08:59 -0800)
Now that the implementation is entirely within the generated
decode function, eliminate the wrapper.

Tested-by: Helge Deller <[email protected]>
Tested-by: Sven Schnelle <[email protected]>
Signed-off-by: Richard Henderson <[email protected]>
target/hppa/translate.c

index ecec5c42d13c572a3c635ea1fca7a1fed233cbde..6836fb624508bfab9a5acab60ff17358b4ba7048 100644 (file)
@@ -3982,13 +3982,6 @@ static bool trans_fmpyfadd_d(DisasContext *ctx, arg_fmpyfadd_d *a)
     return nullify_end(ctx);
 }
 
-static void translate_one(DisasContext *ctx, uint32_t insn)
-{
-    if (!decode(ctx, insn)) {
-        gen_illegal(ctx);
-    }
-}
-
 static void hppa_tr_init_disas_context(DisasContextBase *dcbase, CPUState *cs)
 {
     DisasContext *ctx = container_of(dcbase, DisasContext, base);
@@ -4094,7 +4087,9 @@ static void hppa_tr_translate_insn(DisasContextBase *dcbase, CPUState *cs)
             ret = DISAS_NEXT;
         } else {
             ctx->insn = insn;
-            translate_one(ctx, insn);
+            if (!decode(ctx, insn)) {
+                gen_illegal(ctx);
+            }
             ret = ctx->base.is_jmp;
             assert(ctx->null_lab == NULL);
         }
This page took 0.042455 seconds and 4 git commands to generate.