[coreboot-gerrit] [M] Change in coreboot[main]: arch/riscv: Factor out common romstage code