Skip to content

Commit

Permalink
Avoid Linux to stay stucked in an infinite loop when requesting a reb…
Browse files Browse the repository at this point in the history
…oot.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3187 c046a42c-6fe2-441c-8c8c-71466251a162
  • Loading branch information
j_mayer committed Sep 19, 2007
1 parent caa4039 commit 0686970
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions hw/cuda.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 0686970

Please sign in to comment.