Revision a87295e8 linux-user/main.c
b/linux-user/main.c | ||
---|---|---|
1502 | 1502 |
} |
1503 | 1503 |
} |
1504 | 1504 |
break; |
1505 |
case EXCP_HALTED:
|
|
1505 |
case EXCP_HALT_INSN:
|
|
1506 | 1506 |
/* Semihosing syscall. */ |
1507 |
env->pc += 2;
|
|
1507 |
env->pc += 4;
|
|
1508 | 1508 |
do_m68k_semihosting(env, env->dregs[0]); |
1509 | 1509 |
break; |
1510 | 1510 |
case EXCP_LINEA: |
... | ... | |
1918 | 1918 |
for(i = 0; i < 16; i++) { |
1919 | 1919 |
env->regs[i] = regs->uregs[i]; |
1920 | 1920 |
} |
1921 |
ts->stack_base = info->start_stack; |
|
1922 |
ts->heap_base = info->brk; |
|
1923 |
/* This will be filled in on the first SYS_HEAPINFO call. */ |
|
1924 |
ts->heap_limit = 0; |
|
1925 | 1921 |
} |
1926 | 1922 |
#elif defined(TARGET_SPARC) |
1927 | 1923 |
{ |
... | ... | |
2049 | 2045 |
#error unsupported target CPU |
2050 | 2046 |
#endif |
2051 | 2047 |
|
2048 |
#if defined(TARGET_ARM) || defined(TARGET_M68K) |
|
2049 |
ts->stack_base = info->start_stack; |
|
2050 |
ts->heap_base = info->brk; |
|
2051 |
/* This will be filled in on the first SYS_HEAPINFO call. */ |
|
2052 |
ts->heap_limit = 0; |
|
2053 |
#endif |
|
2054 |
|
|
2052 | 2055 |
if (gdbstub_port) { |
2053 | 2056 |
gdbserver_start (gdbstub_port); |
2054 | 2057 |
gdb_handlesig(env, 0); |
Also available in: Unified diff