mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
Remove unused function parameters from gen_pc_load and rename the function
Function gen_pc_load was introduced in commitd2856f1ad4
. The only reason for parameter searched_pc was a debug statement in target-i386/translate.c. Parameter puc was needed by target-sparc until commitd7da2a1040
. 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>
This commit is contained in:
parent
8d5192ee15
commit
e87b7cb0f0
15 changed files with 20 additions and 33 deletions
|
@ -9551,8 +9551,8 @@ static inline void gen_intermediate_code_internal(CPUState *env,
|
|||
* This is handled in the same way as restoration of the
|
||||
* PC in these situations: we will be called again with search_pc=1
|
||||
* and generate a mapping of the condexec bits for each PC in
|
||||
* gen_opc_condexec_bits[]. gen_pc_load[] then uses this to restore
|
||||
* the condexec bits.
|
||||
* gen_opc_condexec_bits[]. restore_state_to_opc() then uses
|
||||
* this to restore the condexec bits.
|
||||
*
|
||||
* Note that there are no instructions which can read the condexec
|
||||
* bits, and none which can write non-static values to them, so
|
||||
|
@ -9817,8 +9817,7 @@ void cpu_dump_state(CPUState *env, FILE *f, fprintf_function cpu_fprintf,
|
|||
#endif
|
||||
}
|
||||
|
||||
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->regs[15] = gen_opc_pc[pc_pos];
|
||||
env->condexec_bits = gen_opc_condexec_bits[pc_pos];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue