]> git.proxmox.com Git - qemu.git/blobdiff - target-cris/translate.c
Small cleanup of gen_intermediate_code(_internal), by Laurent Desnogues.
[qemu.git] / target-cris / translate.c
index d971d1d2bf02f959e9c49e76020fc5f00660ee25..0c23cdf28fbd9dc1239989cc1629260561ddbec9 100644 (file)
@@ -3022,7 +3022,7 @@ static void check_breakpoint(CPUState *env, DisasContext *dc)
  */
 
 /* generate intermediate code for basic block 'tb'.  */
-static int
+static void
 gen_intermediate_code_internal(CPUState *env, TranslationBlock *tb,
                                int search_pc)
 {
@@ -3233,17 +3233,16 @@ gen_intermediate_code_internal(CPUState *env, TranslationBlock *tb,
                        dc->pc - pc_start, gen_opc_ptr - gen_opc_buf);
        }
 #endif
-       return 0;
 }
 
-int gen_intermediate_code (CPUState *env, struct TranslationBlock *tb)
+void gen_intermediate_code (CPUState *env, struct TranslationBlock *tb)
 {
-    return gen_intermediate_code_internal(env, tb, 0);
+    gen_intermediate_code_internal(env, tb, 0);
 }
 
-int gen_intermediate_code_pc (CPUState *env, struct TranslationBlock *tb)
+void gen_intermediate_code_pc (CPUState *env, struct TranslationBlock *tb)
 {
-    return gen_intermediate_code_internal(env, tb, 1);
+    gen_intermediate_code_internal(env, tb, 1);
 }
 
 void cpu_dump_state (CPUState *env, FILE *f,