From 0686970f8186d44776ec6bfae8af974fb1509c10 Mon Sep 17 00:00:00 2001 From: j_mayer Date: Wed, 19 Sep 2007 04:46:57 +0000 Subject: [PATCH] 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 --- hw/cuda.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hw/cuda.c b/hw/cuda.c index 7312bbddc9..9a05aebb5f 100644 --- a/hw/cuda.c +++ b/hw/cuda.c @@ -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; }