[U-Boot] [PATCH 2/4] x86: qemu: Extract getting memory size to a separate routine