diff options
| author | Peter Crosthwaite | 2015-06-18 19:24:55 +0200 |
|---|---|---|
| committer | Andreas Färber | 2015-07-09 15:20:40 +0200 |
| commit | ea3e9847408131abc840240bd61e892d28459452 (patch) | |
| tree | c0406bdfc85a826a63430162127841fcd38373e7 /target-tricore | |
| parent | cpu: Change cpu_exec_init() arg to cpu, not env (diff) | |
| download | qemu-ea3e9847408131abc840240bd61e892d28459452.tar.gz qemu-ea3e9847408131abc840240bd61e892d28459452.tar.xz qemu-ea3e9847408131abc840240bd61e892d28459452.zip | |
cpu-exec: Purge all uses of ENV_GET_CPU()
Remove un-needed usages of ENV_GET_CPU() by converting the APIs to use
CPUState pointers and retrieving the env_ptr as minimally needed.
Scripted conversion for target-* change:
for I in target-*/cpu.h; do
sed -i \
's/\(^int cpu_[^_]*_exec(\)[^ ][^ ]* \*s);$/\1CPUState *cpu);/' \
$I;
done
Signed-off-by: Peter Crosthwaite <crosthwaite.peter@gmail.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'target-tricore')
| -rw-r--r-- | target-tricore/cpu.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target-tricore/cpu.h b/target-tricore/cpu.h index 504f15623d..916ee27ad4 100644 --- a/target-tricore/cpu.h +++ b/target-tricore/cpu.h @@ -372,7 +372,7 @@ enum { }; void cpu_state_reset(CPUTriCoreState *s); -int cpu_tricore_exec(CPUTriCoreState *s); +int cpu_tricore_exec(CPUState *cpu); void tricore_tcg_init(void); int cpu_tricore_signal_handler(int host_signum, void *pinfo, void *puc); |
