diff options
author | Stefan Weil <weil@mail.berlios.de> | 2011-04-18 06:39:52 +0000 |
---|---|---|
committer | Stefan Weil <weil@mail.berlios.de> | 2011-04-20 10:33:59 +0200 |
commit | e87b7cb0f0e04d7c4510564530ab00ed4db37a45 (patch) | |
tree | 3751f0ba78538caf2327da1a6601cdf5e1358222 /target-mips | |
parent | 8d5192ee15bc519f83741f5e413ebba5d57a6abd (diff) | |
download | qemu-e87b7cb0f0e04d7c4510564530ab00ed4db37a45.tar.gz qemu-e87b7cb0f0e04d7c4510564530ab00ed4db37a45.tar.bz2 qemu-e87b7cb0f0e04d7c4510564530ab00ed4db37a45.zip |
Remove unused function parameters from gen_pc_load and rename the function
Function gen_pc_load was introduced in commit
d2856f1ad4c259e5766847c49acbb4e390731bd4.
The only reason for parameter searched_pc was
a debug statement in target-i386/translate.c.
Parameter puc was needed by target-sparc until
commit d7da2a10402f1644128b66414ca8f86bdea9ae7c.
Remove searched_pc from the debug statement and remove both
parameters from the parameter list of gen_pc_load.
As the function name gen_pc_load was also misleading,
it is now called restore_state_to_opc. This new name
was suggested by Peter Maydell, thanks.
v2: Remove last parameter, too, and rename the function.
v3: Fix [] typo in target-arm/translate.c.
Fix wrong SHA1 object name in commit message (copy+paste error).
Cc: Aurelien Jarno <aurelien@aurel32.net>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Diffstat (limited to 'target-mips')
-rw-r--r-- | target-mips/translate.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/target-mips/translate.c b/target-mips/translate.c index 953c528068..4eaa8261c3 100644 --- a/target-mips/translate.c +++ b/target-mips/translate.c @@ -12737,8 +12737,7 @@ void cpu_reset (CPUMIPSState *env) env->exception_index = EXCP_NONE; } -void gen_pc_load(CPUState *env, TranslationBlock *tb, - unsigned long searched_pc, int pc_pos, void *puc) +void restore_state_to_opc(CPUState *env, TranslationBlock *tb, int pc_pos) { env->active_tc.PC = gen_opc_pc[pc_pos]; env->hflags &= ~MIPS_HFLAG_BMASK; |