summaryrefslogtreecommitdiffstats
path: root/linux-headers/linux
diff options
context:
space:
mode:
authorPeter Maydell2017-03-30 12:52:30 +0200
committerPeter Maydell2017-04-03 13:59:14 +0200
commit709a340d679d95a0c6cbb9b5f654498f04345b50 (patch)
tree696ed93f00169508b696f0d3a6917df7c2f4023a /linux-headers/linux
parentMerge remote-tracking branch 'remotes/kraxel/tags/pull-fixes-20170403-1' into... (diff)
downloadqemu-709a340d679d95a0c6cbb9b5f654498f04345b50.tar.gz
qemu-709a340d679d95a0c6cbb9b5f654498f04345b50.tar.xz
qemu-709a340d679d95a0c6cbb9b5f654498f04345b50.zip
tcg/sparc: Zero extend data argument to store helpers
The C store helper functions take the data argument as a uint8_t, uint16_t, etc depending on the store size. The SPARC calling convention requires that data types smaller than the register size must be extended by the caller. We weren't doing this, which meant that if QEMU was compiled with optimizations enabled we could end up storing incorrect values to guest memory. (In particular the i386 guest BIOS would crash on startup.) Add code to the trampolines that call the store helpers to do the zero extension as required. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-id: 1490871151-29029-2-git-send-email-peter.maydell@linaro.org Reviewed-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'linux-headers/linux')
0 files changed, 0 insertions, 0 deletions