cpu: Change tcg_cpu_exec() arg to cpu, not env
commit3d57f7893c90d911d786cb2c622b0926fc808b57
authorPeter Crosthwaite <crosthwaitepeter@gmail.com>
Wed, 24 Jun 2015 02:31:17 +0000 (23 19:31 -0700)
committerAndreas Färber <afaerber@suse.de>
Thu, 9 Jul 2015 13:20:40 +0000 (9 15:20 +0200)
tree3bbc92f2a940392f785eb6e6ec6d638a1318c7eb
parentf7ec7f7b269813603b1d64bb9833f9e711f0115c
cpu: Change tcg_cpu_exec() arg to cpu, not env

The sole caller of this function navigates the cpu->env_ptr only for
this function to take it back the cpu pointer straight away. Pass in
cpu pointer instead and grab the env pointer locally in the function.
Removes a core code usage of ENV_GET_CPU().

Reviewed-by: Andreas Färber <afaerber@suse.de>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Peter Crosthwaite <crosthwaite.peter@gmail.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
cpus.c