cpu-exec: reset exception_index correctly
commite511b4d783c47a32420da802104cfb0eb974b22f
authorPavel Dovgalyuk <Pavel.Dovgaluk@ispras.ru>
Wed, 26 Nov 2014 10:39:20 +0000 (26 13:39 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 15 Dec 2014 11:21:02 +0000 (15 12:21 +0100)
treecbc62197621a3eb2512913c2c260e77a6d91e3bc
parentb4ac20b4df0d1eaa5d546ccb84751e3e97d257fd
cpu-exec: reset exception_index correctly

Exception index is reset at every entry at every entry into cpu_exec()
function. This may cause missing the exceptions while replaying them.
This patch moves exception_index reset to the locations where they are
processed.

Signed-off-by: Pavel Dovgalyuk <Pavel.Dovgaluk@ispras.ru>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
cpu-exec.c
cpus.c