diff options
author | Peter Crosthwaite <crosthwaitepeter@gmail.com> | 2015-06-18 10:24:55 -0700 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2015-07-09 15:20:40 +0200 |
commit | ea3e9847408131abc840240bd61e892d28459452 (patch) | |
tree | c0406bdfc85a826a63430162127841fcd38373e7 /target-unicore32 | |
parent | 4bad9e392e788a218967167a38ce2ae7a32a6231 (diff) | |
download | qemu-ea3e9847408131abc840240bd61e892d28459452.zip qemu-ea3e9847408131abc840240bd61e892d28459452.tar.gz qemu-ea3e9847408131abc840240bd61e892d28459452.tar.bz2 |
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-unicore32')
-rw-r--r-- | target-unicore32/cpu.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/target-unicore32/cpu.h b/target-unicore32/cpu.h index 14dc862..45e31e5 100644 --- a/target-unicore32/cpu.h +++ b/target-unicore32/cpu.h @@ -125,7 +125,6 @@ void cpu_asr_write(CPUUniCore32State *env1, target_ulong val, target_ulong mask) #define cpu_exec uc32_cpu_exec #define cpu_signal_handler uc32_cpu_signal_handler -int uc32_cpu_exec(CPUUniCore32State *s); int uc32_cpu_signal_handler(int host_signum, void *pinfo, void *puc); /* MMU modes definitions */ @@ -141,6 +140,8 @@ static inline int cpu_mmu_index(CPUUniCore32State *env) #include "cpu-qom.h" #include "exec/exec-all.h" +int uc32_cpu_exec(CPUState *s); + UniCore32CPU *uc32_cpu_init(const char *cpu_model); #define cpu_init(cpu_model) CPU(uc32_cpu_init(cpu_model)) |