Revision e85e7c6e linux-user/elfload.c

b/linux-user/elfload.c
269 269

  
270 270
#define ELF_START_MMAP 0x80000000
271 271

  
272
#ifdef TARGET_PPC64
272
#if defined(TARGET_PPC64) && !defined(TARGET_ABI32)
273 273

  
274 274
#define elf_check_arch(x) ( (x) == EM_PPC64 )
275 275

  
......
325 325
{
326 326
    abi_ulong pos = infop->start_stack;
327 327
    abi_ulong tmp;
328
#ifdef TARGET_PPC64
328
#if defined(TARGET_PPC64) && !defined(TARGET_ABI32)
329 329
    abi_ulong entry, toc;
330 330
#endif
331 331

  
332 332
    _regs->msr = 1 << MSR_PR; /* Set user mode */
333 333
    _regs->gpr[1] = infop->start_stack;
334
#ifdef TARGET_PPC64
334
#if defined(TARGET_PPC64) && !defined(TARGET_ABI32)
335 335
    entry = ldq_raw(infop->entry) + infop->load_addr;
336 336
    toc = ldq_raw(infop->entry + 8) + infop->load_addr;
337 337
    _regs->gpr[2] = toc;

Also available in: Unified diff