comparison genesis.c @ 1954:2fd0a8cb1c80

Properly initialize Genesis reset cycle on startup. Fixes crash in GDB remote debugger when stepping past the first two instructions
author Michael Pavone <pavone@retrodev.com>
date Fri, 01 May 2020 00:54:15 -0700
parents c3c62dbf1ceb
children 80920c21bb52
comparison
equal deleted inserted replaced
1953:4af54c6ca3e6 1954:2fd0a8cb1c80
1655 for (int i = 1; i < sizeof(gen->bank_regs); i++) 1655 for (int i = 1; i < sizeof(gen->bank_regs); i++)
1656 { 1656 {
1657 gen->bank_regs[i] = i; 1657 gen->bank_regs[i] = i;
1658 } 1658 }
1659 } 1659 }
1660 gen->reset_cycle = CYCLE_NEVER;
1660 1661
1661 return gen; 1662 return gen;
1662 } 1663 }
1663 1664
1664 genesis_context *alloc_config_genesis(void *rom, uint32_t rom_size, void *lock_on, uint32_t lock_on_size, uint32_t ym_opts, uint8_t force_region) 1665 genesis_context *alloc_config_genesis(void *rom, uint32_t rom_size, void *lock_on, uint32_t lock_on_size, uint32_t ym_opts, uint8_t force_region)