Revision 182735ef linux-user/syscall.c

b/linux-user/syscall.c
5030 5030
                    abi_long arg5, abi_long arg6, abi_long arg7,
5031 5031
                    abi_long arg8)
5032 5032
{
5033
#ifdef CONFIG_USE_NPTL
5034
    CPUState *cpu = ENV_GET_CPU(cpu_env);
5035
#endif
5033 5036
    abi_long ret;
5034 5037
    struct stat st;
5035 5038
    struct statfs stfs;
......
5052 5055
           be disabling signals.  */
5053 5056
        if (first_cpu->next_cpu) {
5054 5057
            TaskState *ts;
5055
            CPUArchState **lastp;
5056
            CPUArchState *p;
5058
            CPUState **lastp;
5059
            CPUState *p;
5057 5060

  
5058 5061
            cpu_list_lock();
5059 5062
            lastp = &first_cpu;
5060 5063
            p = first_cpu;
5061
            while (p && p != (CPUArchState *)cpu_env) {
5064
            while (p && p != cpu) {
5062 5065
                lastp = &p->next_cpu;
5063 5066
                p = p->next_cpu;
5064 5067
            }

Also available in: Unified diff