From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50547) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dpzhO-0000Mo-9p for qemu-devel@nongnu.org; Thu, 07 Sep 2017 12:30:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dpzhJ-0003vK-Qt for qemu-devel@nongnu.org; Thu, 07 Sep 2017 12:30:38 -0400 Received: from bran.ispras.ru ([83.149.199.196]:41613 helo=smtp.ispras.ru) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dpzhJ-0003s5-IU for qemu-devel@nongnu.org; Thu, 07 Sep 2017 12:30:33 -0400 Received: from [10.10.2.131] (castle.intra.ispras.ru [10.10.2.131]) by smtp.ispras.ru (Postfix) with ESMTP id 78306203D0 for ; Thu, 7 Sep 2017 19:30:29 +0300 (MSK) Message-ID: <59B17425.1050701@ispras.ru> Date: Thu, 07 Sep 2017 19:30:29 +0300 From: Sergey Smolov MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] emulation cycle number implementation List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: QEMU Developers Hello, List! I'm running MIPS assembler programs on QEMU. I need to log some events that happen through emulation (writes to some registers, for example). When an event happens, I need to print not only the event-related information, but an "emulation cycle number" also. This number should be an integer increasing value that is similar to real hardware clock. How to implement this in QEMU? May QEMU timers be helpful in solving such a problem? Thanks in advance. -- Sincerely yours, Sergey Smolov