generic-loader: file: Only set a PC if a CPU is specified
commit6aa3a61657a60ad2c422c720bfaa31589a6e7334
authorAlistair Francis <alistair.francis@xilinx.com>
Sat, 12 Nov 2016 02:51:20 +0000 (11 18:51 -0800)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 28 Nov 2016 11:25:58 +0000 (28 11:25 +0000)
treee481ee6a78631d50fc69187bf4b9cf89b0d0f3b0
parent00227fefd2059464cd2f59aed29944874c630e2f
generic-loader: file: Only set a PC if a CPU is specified

This patch fixes the generic-loader file loading to only set the program
counter if a CPU is specified. This follows what is written in the
documentation and was always part of the original intention.

Signed-off-by: Alistair Francis <alistair.francis@xilinx.com>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Message-id: 537bf4d08be7acf7a89b590cff69e19db7f0a6cd.1478908712.git.alistair.francis@xilinx.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/core/generic-loader.c