| 1098 |
/* NOTE: we need to init the CPU at this stage to get |
/* NOTE: we need to init the CPU at this stage to get |
| 1099 |
qemu_host_page_size */ |
qemu_host_page_size */ |
| 1100 |
env = cpu_init(); |
env = cpu_init(); |
| 1101 |
|
global_env = env; |
| 1102 |
|
|
| 1103 |
if (elf_exec(filename, argv+optind, environ, regs, info) != 0) { |
if (elf_exec(filename, argv+optind, environ, regs, info) != 0) { |
| 1104 |
printf("Error loading %s\n", filename); |
printf("Error loading %s\n", filename); |
| 1121 |
syscall_init(); |
syscall_init(); |
| 1122 |
signal_init(); |
signal_init(); |
| 1123 |
|
|
|
global_env = env; |
|
|
|
|
| 1124 |
/* build Task State */ |
/* build Task State */ |
| 1125 |
memset(ts, 0, sizeof(TaskState)); |
memset(ts, 0, sizeof(TaskState)); |
| 1126 |
env->opaque = ts; |
env->opaque = ts; |