Backport bsmiles32 patch - Rework PIFBoot ROM emulation.