Use correct value for MAX_INSTRUCTION_COUNT.
This commit is contained in:
parent
a0ab14f56f
commit
7f99cb7fb1
1 changed files with 3 additions and 3 deletions
|
|
@ -13,7 +13,7 @@
|
||||||
#include "codegen_ops.h"
|
#include "codegen_ops.h"
|
||||||
#include "codegen_ops_helpers.h"
|
#include "codegen_ops_helpers.h"
|
||||||
|
|
||||||
#define MAX_INSTRUCTION_COUNT 100
|
#define MAX_INSTRUCTION_COUNT 50
|
||||||
|
|
||||||
static struct
|
static struct
|
||||||
{
|
{
|
||||||
|
|
@ -689,7 +689,7 @@ generate_call:
|
||||||
|
|
||||||
block->ins++;
|
block->ins++;
|
||||||
|
|
||||||
if (block->ins >= 50)
|
if (block->ins >= MAX_INSTRUCTION_COUNT)
|
||||||
CPU_BLOCK_END();
|
CPU_BLOCK_END();
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|
@ -761,7 +761,7 @@ generate_call:
|
||||||
|
|
||||||
block->ins++;
|
block->ins++;
|
||||||
|
|
||||||
if (block->ins >= 50)
|
if (block->ins >= MAX_INSTRUCTION_COUNT)
|
||||||
CPU_BLOCK_END();
|
CPU_BLOCK_END();
|
||||||
|
|
||||||
codegen_endpc = (cs + cpu_state.pc) + 8;
|
codegen_endpc = (cs + cpu_state.pc) + 8;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue