Don't clear trap at the start of the recompiler loop; instead, clear it when actually taking a trap.

This commit is contained in:
SarahW 2019-01-27 20:52:37 +00:00
commit 6c65c34bd3

View file

@ -600,7 +600,6 @@ void exec386_dynarec(int cycs)
int hash = HASH(phys_addr);
codeblock_t *block = &codeblock[codeblock_hash[hash]];
int valid_block = 0;
trap = 0;
if (block && !cpu_state.abrt)
{
@ -877,7 +876,7 @@ inrecomp=0;
if (trap)
{
trap = 0;
flags_rebuild();
// oldpc=pc;
// oldcs=CS;