Commit 0686970f8186d44776ec6bfae8af974fb1509c10
1 parent
caa4039c
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
Showing
1 changed file
with
6 additions
and
0 deletions
hw/cuda.c
@@ -557,6 +557,12 @@ static void cuda_receive_packet(CUDAState *s, | @@ -557,6 +557,12 @@ static void cuda_receive_packet(CUDAState *s, | ||
557 | cuda_send_packet_to_host(s, obuf, 2); | 557 | cuda_send_packet_to_host(s, obuf, 2); |
558 | qemu_system_shutdown_request(); | 558 | qemu_system_shutdown_request(); |
559 | break; | 559 | break; |
560 | + case CUDA_RESET_SYSTEM: | ||
561 | + obuf[0] = CUDA_PACKET; | ||
562 | + obuf[1] = 0; | ||
563 | + cuda_send_packet_to_host(s, obuf, 2); | ||
564 | + qemu_system_reset_request(); | ||
565 | + break; | ||
560 | default: | 566 | default: |
561 | break; | 567 | break; |
562 | } | 568 | } |