Avoid Linux to stay stucked in an infinite loop when requesting a reboot.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3187 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
j_mayer 2007-09-19 04:46:57 +00:00
parent caa4039ced
commit 0686970f81
1 changed files with 6 additions and 0 deletions

View File

@ -557,6 +557,12 @@ static void cuda_receive_packet(CUDAState *s,
cuda_send_packet_to_host(s, obuf, 2);
qemu_system_shutdown_request();
break;
case CUDA_RESET_SYSTEM:
obuf[0] = CUDA_PACKET;
obuf[1] = 0;
cuda_send_packet_to_host(s, obuf, 2);
qemu_system_reset_request();
break;
default:
break;
}