panic if cirrus support is requested but not available to avoid segfault

This commit is contained in:
Volker Ruppert 2013-09-05 07:38:22 +00:00
parent 7c0a261751
commit d943feaf8e

View File

@ -208,7 +208,7 @@ void bx_devices_c::init(BX_MEM_C *newmem)
#if BX_SUPPORT_CLGD54XX
PLUG_load_plugin(svga_cirrus, PLUGTYPE_CORE);
#else
BX_ERROR(("Bochs is not compiled with Cirrus support"));
BX_PANIC(("Bochs is not compiled with Cirrus support"));
#endif
} else {
PLUG_load_plugin(vga, PLUGTYPE_CORE);