summaryrefslogtreecommitdiff
path: root/hmp-commands.hx
diff options
context:
space:
mode:
authorJia Liu <proljc@gmail.com>2013-08-21 08:54:29 +0800
committerJia Liu <proljc@gmail.com>2013-08-21 09:15:36 +0800
commitb6d9766ddf5453e79e0c66c9348728ba44ba115f (patch)
tree9aee8b24e256b289cfbf95427131ebc51c94d64d /hmp-commands.hx
parentecfe10c9a6f9bc77d0e4b7eb5d0f5d61e8fbaed8 (diff)
downloadqemu-b6d9766ddf5453e79e0c66c9348728ba44ba115f.tar.gz
qemu-b6d9766ddf5453e79e0c66c9348728ba44ba115f.tar.bz2
qemu-b6d9766ddf5453e79e0c66c9348728ba44ba115f.zip
hw/openrisc: Avoid using uninitialised variable 'entry'
clang warns that cpu_openrisc_load_kernel() can use 'entry' uninitialized: hw/openrisc/openrisc_sim.c:69:9: error: variable 'entry' is used uninitialized whenever '&&' condition is false [-Werror,-Wsometimes-uninitialized] if (kernel_filename && !qtest_enabled()) { ^~~~~~~~~~~~~~~ hw/openrisc/openrisc_sim.c:91:19: note: uninitialized use occurs here cpu->env.pc = entry; ^~~~~ Fix this by not attempting to change the CPU's starting PC unless we actually loaded a kernel. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Jia Liu <proljc@gmail.com>
Diffstat (limited to 'hmp-commands.hx')
0 files changed, 0 insertions, 0 deletions