/[qemu]/qemu/linux-user/elfload.c
ViewVC logotype

Diff of /qemu/linux-user/elfload.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.29 by bellard, Sat Nov 26 11:41:16 2005 UTC revision 1.30 by bellard, Sat Nov 26 18:47:20 2005 UTC
# Line 247  static inline void init_thread(struct ta Line 247  static inline void init_thread(struct ta
247    
248  #endif  #endif
249    
250    #ifdef TARGET_MIPS
251    
252    #define ELF_START_MMAP 0x80000000
253    
254    #define elf_check_arch(x) ( (x) == EM_MIPS )
255    
256    #define ELF_CLASS   ELFCLASS32
257    #ifdef TARGET_WORDS_BIGENDIAN
258    #define ELF_DATA        ELFDATA2MSB
259    #else
260    #define ELF_DATA        ELFDATA2LSB
261    #endif
262    #define ELF_ARCH    EM_MIPS
263    
264    #define ELF_PLAT_INIT(_r)
265    
266    static inline void init_thread(struct target_pt_regs *regs, struct image_info *infop)
267    {
268        regs->cp0_status = CP0St_UM;
269        regs->cp0_epc = infop->entry;
270        regs->regs[29] = infop->start_stack;
271    }
272    
273    #endif /* TARGET_MIPS */
274    
275  #ifndef ELF_PLATFORM  #ifndef ELF_PLATFORM
276  #define ELF_PLATFORM (NULL)  #define ELF_PLATFORM (NULL)
277  #endif  #endif

Legend:
Removed from v.1.29  
changed lines
  Added in v.1.30

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26