summaryrefslogtreecommitdiffstats
path: root/hw/sparc/leon3.c
diff options
context:
space:
mode:
authorMark Cave-Ayland2018-08-10 12:40:37 +0200
committerMark Cave-Ayland2018-08-20 20:18:31 +0200
commit3ac24188eccffe4b6038b47f446c3472897abdf4 (patch)
tree2b3b4127f16c5dae84442d52202ce460675c5f73 /hw/sparc/leon3.c
parentMerge remote-tracking branch 'remotes/cohuck/tags/s390x-20180820' into staging (diff)
downloadqemu-3ac24188eccffe4b6038b47f446c3472897abdf4.tar.gz
qemu-3ac24188eccffe4b6038b47f446c3472897abdf4.tar.xz
qemu-3ac24188eccffe4b6038b47f446c3472897abdf4.zip
sun4u: ensure kernel_top is always initialised
Valgrind reports that when loading a non-ELF kernel, kernel_top may be used uninitialised when checking for an initrd. Since there are no known non-ELF kernels for SPARC64 then we can simply initialise kernel_top to 0 and then skip the initrd load process if it hasn't been set by load_elf(). Reported-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Diffstat (limited to 'hw/sparc/leon3.c')
0 files changed, 0 insertions, 0 deletions