Tweak search range when codegen looking for start uOP for given

instruction. Fixes range when unrolling LOOP instruction pointing
to itself (which could skip initial cycle count update), fixes
Windows 98 boot on 6x86 chips.
This commit is contained in:
SarahW 2020-11-09 08:07:36 +00:00
commit a01cc90866

View file

@ -29,7 +29,7 @@ int codegen_get_instruction_uop(codeblock_t *block, uint32_t pc, int *first_inst
{
int c;
for (c = 0; c < block->ins; c++)
for (c = 0; c <= block->ins; c++)
{
if (codegen_instructions[c].pc == pc)
{