mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03:54 -06:00
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>
This commit is contained in:
parent
4bad9e392e
commit
ea3e984740
21 changed files with 49 additions and 49 deletions
|
@ -166,6 +166,8 @@ static void set_idt(int n, unsigned int dpl)
|
|||
|
||||
void cpu_loop(CPUX86State *env)
|
||||
{
|
||||
X86CPU *cpu = x86_env_get_cpu(env);
|
||||
CPUState *cs = CPU(cpu);
|
||||
int trapnr;
|
||||
abi_ulong pc;
|
||||
//target_siginfo_t info;
|
||||
|
@ -512,7 +514,7 @@ void cpu_loop(CPUSPARCState *env)
|
|||
//target_siginfo_t info;
|
||||
|
||||
while (1) {
|
||||
trapnr = cpu_sparc_exec (env);
|
||||
trapnr = cpu_sparc_exec(cs);
|
||||
|
||||
switch (trapnr) {
|
||||
#ifndef TARGET_SPARC64
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue