Handle flag-less CPUs gracefully.

This commit is contained in:
Aaron Giles 2010-06-08 23:31:32 +00:00
parent f5e34d9b12
commit 13c37d16c5
2 changed files with 2 additions and 2 deletions

View File

@ -302,7 +302,7 @@ void cpu_device::device_start()
state_add(STATE_GENPCBASE, "curpcbase", m_state_io).callimport().callexport().formatstr("%8s").noshow();
const char *string = get_legacy_runtime_string(CPUINFO_STR_FLAGS);
if (string != NULL)
if (string != NULL && string[0] != 0)
{
astring flagstr;
flagstr.printf("%%%ds", strlen(string));

View File

@ -257,7 +257,7 @@ public:
protected:
// optional operation overrides
virtual INT32 execute_run(INT32 clocks) = 0;
virtual INT32 execute_run(INT32 cycles) = 0;
virtual void execute_burn(INT32 cycles);
virtual void execute_set_input(int linenum, int state);