aboutsummaryrefslogtreecommitdiff
path: root/hw/cuda.c
diff options
context:
space:
mode:
authorj_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162>2007-09-19 04:46:57 +0000
committerj_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162>2007-09-19 04:46:57 +0000
commit0686970f8186d44776ec6bfae8af974fb1509c10 (patch)
tree2fe8469d6dcd11dceab2171fec26534dbd86a9a1 /hw/cuda.c
parentcaa4039ced651551503b709b640bc6066b8eb2c2 (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
Diffstat (limited to 'hw/cuda.c')
-rw-r--r--hw/cuda.c6
1 files changed, 6 insertions, 0 deletions
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;
}