mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
translate-all: Change tb_flush() env argument to cpu
All of the core-code usages of this API have the cpu pointer handy so pass it in. There are only 3 architecture specific usages (2 of which are commented out) which can just use ENV_GET_CPU() locally to get the cpu pointer. The reduces core code usage of the CPU env, which brings us closer to common-obj'ing these core files. Cc: Riku Voipio <riku.voipio@iki.fi> Cc: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Eduardo Habkost <ehabkost@redhat.com> Acked-by: Eduardo Habkost <ehabkost@redhat.com> Signed-off-by: Peter Crosthwaite <crosthwaite.peter@gmail.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
6dd0f8342d
commit
bbd77c180d
7 changed files with 9 additions and 14 deletions
|
@ -74,7 +74,7 @@ void helper_tbis(CPUAlphaState *env, uint64_t p)
|
|||
|
||||
void helper_tb_flush(CPUAlphaState *env)
|
||||
{
|
||||
tb_flush(env);
|
||||
tb_flush(CPU(alpha_env_get_cpu(env)));
|
||||
}
|
||||
|
||||
void helper_halt(uint64_t restart)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue