hw/core: Add a config switch for the generic loader device