diff options
author | j_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-09-19 04:46:57 +0000 |
---|---|---|
committer | j_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-09-19 04:46:57 +0000 |
commit | 0686970f8186d44776ec6bfae8af974fb1509c10 (patch) | |
tree | 2fe8469d6dcd11dceab2171fec26534dbd86a9a1 | |
parent | caa4039ced651551503b709b640bc6066b8eb2c2 (diff) |
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
-rw-r--r-- | hw/cuda.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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; } |