diff options
author | Pavel Dovgalyuk <Pavel.Dovgaluk@ispras.ru> | 2015-09-17 19:24:16 +0300 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2015-11-06 10:16:00 +0100 |
commit | 6f0609697f3670bf755a91477487507a8ffee471 (patch) | |
tree | 675e4469cbeb2832fd1e9135bf7db7bfd3dfa65b /stubs/replay-user.c | |
parent | 8b42704441865611a5ee241ac9fc5cabc47a079b (diff) |
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/replay-user.c')
-rw-r--r-- | stubs/replay-user.c | 20 |
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; +} |