aboutsummaryrefslogtreecommitdiff
path: root/target-sh4
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2008-07-18 18:01:29 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2008-07-18 18:01:29 +0000
commit2cfc5f17d366b801484b36b548708fe0f3552737 (patch)
treebf35a5924a55035f6a44089943a0b5dccae32d09 /target-sh4
parentd1b5c20dcde176df50f1955e498af252e87a3e9d (diff)
downloadqemu-2cfc5f17d366b801484b36b548708fe0f3552737.zip
qemu-2cfc5f17d366b801484b36b548708fe0f3552737.tar.gz
qemu-2cfc5f17d366b801484b36b548708fe0f3552737.tar.bz2
Small cleanup of gen_intermediate_code(_internal), by Laurent Desnogues.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4891 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-sh4')
-rw-r--r--target-sh4/translate.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/target-sh4/translate.c b/target-sh4/translate.c
index 0a6f417..a73805f 100644
--- a/target-sh4/translate.c
+++ b/target-sh4/translate.c
@@ -1195,7 +1195,7 @@ void decode_opc(DisasContext * ctx)
}
}
-static inline int
+static inline void
gen_intermediate_code_internal(CPUState * env, TranslationBlock * tb,
int search_pc)
{
@@ -1326,17 +1326,16 @@ gen_intermediate_code_internal(CPUState * env, TranslationBlock * tb,
fprintf(logfile, "\n");
}
#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 gen_pc_load(CPUState *env, TranslationBlock *tb,