]> Git Repo - qemu.git/commitdiff
qemu-tool: revert cpu_get_clock() abort(3)
authorStefan Hajnoczi <[email protected]>
Wed, 29 Feb 2012 14:41:32 +0000 (14:41 +0000)
committerKevin Wolf <[email protected]>
Wed, 29 Feb 2012 14:48:44 +0000 (15:48 +0100)
Despite the fact that the qemu-tool environment has no guest running and
vm_clock therefore does not make sense, there is code that gets the
vm_clock time even in qemu-tool.  Therefore, revert the abort(3) call
and just return 0 like we used to.  This unbreaks qemu-img/qemu-io with
QED and Kevin has also expressed interest in this for qcow2.

Signed-off-by: Stefan Hajnoczi <[email protected]>
Signed-off-by: Kevin Wolf <[email protected]>
qemu-tool.c

index 183a583fec262c8c4f8663ff26067e7a481d5a74..edb84f5f5d49f96a78e7ef616c75f9098a2d6d0a 100644 (file)
@@ -61,7 +61,7 @@ void monitor_protocol_event(MonitorEvent event, QObject *data)
 
 int64_t cpu_get_clock(void)
 {
-    abort();
+    return 0;
 }
 
 int64_t cpu_get_icount(void)
This page took 0.026326 seconds and 4 git commands to generate.