Handle flag-less CPUs gracefully.
This commit is contained in:
parent
f5e34d9b12
commit
13c37d16c5
@ -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));
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user