elfload.c (39335fab59e11cfda9b7cf63929825db2dd3a3e0) elfload.c (af20a93acb5e9da63976e113656d09e4bcbdddac)
1/* This is the Linux kernel elf-loading code, ported into user space */
2#include "qemu/osdep.h"
3#include <sys/param.h>
4
5#include <sys/resource.h>
6#include <sys/shm.h>
7
8#include "qemu.h"

--- 1024 unchanged lines hidden (view full) ---

1033static void elf_core_copy_regs(target_elf_gregset_t *regs, const CPUMBState *env)
1034{
1035 int i, pos = 0;
1036
1037 for (i = 0; i < 32; i++) {
1038 (*regs)[pos++] = tswapreg(env->regs[i]);
1039 }
1040
1/* This is the Linux kernel elf-loading code, ported into user space */
2#include "qemu/osdep.h"
3#include <sys/param.h>
4
5#include <sys/resource.h>
6#include <sys/shm.h>
7
8#include "qemu.h"

--- 1024 unchanged lines hidden (view full) ---

1033static void elf_core_copy_regs(target_elf_gregset_t *regs, const CPUMBState *env)
1034{
1035 int i, pos = 0;
1036
1037 for (i = 0; i < 32; i++) {
1038 (*regs)[pos++] = tswapreg(env->regs[i]);
1039 }
1040
1041 for (i = 0; i < 6; i++) {
1042 (*regs)[pos++] = tswapreg(env->sregs[i]);
1043 }
1041 (*regs)[pos++] = tswapreg(env->pc);
1042 (*regs)[pos++] = tswapreg(env->msr);
1043 (*regs)[pos++] = 0;
1044 (*regs)[pos++] = tswapreg(env->ear);
1045 (*regs)[pos++] = 0;
1046 (*regs)[pos++] = tswapreg(env->esr);
1044}
1045
1046#endif /* TARGET_MICROBLAZE */
1047
1048#ifdef TARGET_NIOS2
1049
1050#define ELF_START_MMAP 0x80000000
1051

--- 2786 unchanged lines hidden ---
1047}
1048
1049#endif /* TARGET_MICROBLAZE */
1050
1051#ifdef TARGET_NIOS2
1052
1053#define ELF_START_MMAP 0x80000000
1054

--- 2786 unchanged lines hidden ---