Added code to ensure that the processor gets reset when the "reset emulation" setting is used