summaryrefslogtreecommitdiffstats
path: root/stubs
diff options
context:
space:
mode:
authorPavel Dovgalyuk2015-09-17 18:24:16 +0200
committerPaolo Bonzini2015-11-06 10:16:00 +0100
commit6f0609697f3670bf755a91477487507a8ffee471 (patch)
tree675e4469cbeb2832fd1e9135bf7db7bfd3dfa65b /stubs
parentcpu: replay instructions sequence (diff)
downloadqemu-6f0609697f3670bf755a91477487507a8ffee471.tar.gz
qemu-6f0609697f3670bf755a91477487507a8ffee471.tar.xz
qemu-6f0609697f3670bf755a91477487507a8ffee471.zip
replay: interrupts and exceptions
This patch includes modifications of common cpu files. All interrupts and exceptions occured during recording are written into the replay log. These events allow correct replaying the execution by kicking cpu thread when one of these events is found in the log. Signed-off-by: Pavel Dovgalyuk <pavel.dovgaluk@ispras.ru> Message-Id: <20150917162416.8676.57647.stgit@PASHA-ISP.def.inno> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'stubs')
-rw-r--r--stubs/replay-user.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/stubs/replay-user.c b/stubs/replay-user.c
index 0c90bfc0e4..cf330721c8 100644
--- a/stubs/replay-user.c
+++ b/stubs/replay-user.c
@@ -10,3 +10,23 @@
*/
#include "sysemu/replay.h"
+
+bool replay_exception(void)
+{
+ return true;
+}
+
+bool replay_has_exception(void)
+{
+ return false;
+}
+
+bool replay_interrupt(void)
+{
+ return true;
+}
+
+bool replay_has_interrupt(void)
+{
+ return false;
+}