cpu-exec: allow temporary disabling icount
This patch is required for deterministic replay to generate an exception by trying executing an instruction without changing icount. It adds new flag to TB for disabling icount while translating it. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Pavel Dovgalyuk <pavel.dovgaluk@ispras.ru> Message-Id: <20150917162359.8676.77011.stgit@PASHA-ISP.def.inno> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
1 parent
26bc60ac82
commit
56c0269a9e
3 files changed
+6
-4
No files matched your search
+1
-1
@@ -1069,7 +1069,7 @@ TranslationBlock *tb_gen_code(CPUState *cpu,
|
||||
#endif
|
||||
|
||||
phys_pc = get_page_addr_code(env, pc);
|
||||
if (use_icount) {
|
||||
if (use_icount && !(cflags & CF_IGNORE_ICOUNT)) {
|
||||
cflags |= CF_USE_ICOUNT;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user