Hi,    Thank you for forwarding my question to developers and sharing the C6x implementation.    Perhaps I should follow up with another problem I encountered. The senerio is the  emulator keeps running eventhough the program it emulates has already exited. And it keeps retrieving instructions which are all zero "instruction"(0x00000000).    It looks to me that in function cpu_exec(CPUState *cpu), the following loop never terminate:    while (!cpu_handle_exception(cpu, &ret)) {         TranslationBlock *last_tb = NULL;         int tb_exit = 0;         while (!cpu_handle_interrupt(cpu, &last_tb)) { ... }    Is it because cpu->exit_request remains 0 ?    At what point should we make cpu->exit_request=1 ?    Thanks again!! regards xiaolei ------------------ Original ------------------ From: "Philippe Mathieu-Daudé"