qemu-irix/linux-user
Stefan Weil 8cfc114a2f linux-user: Fix trampoline code for CRIS
__put_user can write bytes, words (2 bytes) or longwords (4 bytes).
Here obviously words should have been written, but bytes were written,
so values like 0x9c5f were truncated to 0x5f.

Fix this by changing retcode from uint8_t to to uint16_t in
target_signal_frame and also in the unused rt_signal_frame.

This problem was reported by static code analysis (smatch).

Cc: qemu-stable@nongnu.org
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Acked-by: Riku Voipio <riku.voipio@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Tested-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
2014-02-03 14:04:00 +00:00
..
aarch64 linux-user: AArch64: define TARGET_CLONE_BACKWARDS 2014-01-08 19:07:20 +00:00
alpha
arm target-arm: Widen thread-local register state fields to 64 bits 2014-01-07 19:17:59 +00:00
cris
i386
m68k
microblaze
mips
mips64
openrisc
ppc
s390x linux-user: fixed s390x clone() argument order 2014-01-15 23:35:51 +04:00
sh4
sparc
sparc64
unicore32
x86_64
Makefile.objs
cpu-uname.c
cpu-uname.h
elfload.c linux-user: Remove regs parameter of load_elf_binary and load_flt_binary 2014-01-10 08:51:37 +02:00
errno_defs.h
flat.h
flatload.c linux-user: Remove regs parameter of load_elf_binary and load_flt_binary 2014-01-10 08:51:37 +02:00
ioctls.h
linux_loop.h
linuxload.c linux-user: Remove regs parameter of load_elf_binary and load_flt_binary 2014-01-10 08:51:37 +02:00
m68k-sim.c
main.c target-arm: A64: support for ld/st/cl exclusive 2014-01-08 19:07:20 +00:00
mmap.c
qemu.h linux-user: Remove regs parameter of load_elf_binary and load_flt_binary 2014-01-10 08:51:37 +02:00
signal.c linux-user: Fix trampoline code for CRIS 2014-02-03 14:04:00 +00:00
socket.h
strace.c
strace.list
syscall.c linux-user: fixed recvfrom() addrlen 2014-01-15 23:36:13 +04:00
syscall_defs.h linux-user: Support the accept4 socketcall 2014-01-10 08:51:36 +02:00
syscall_types.h
target_flat.h
uaccess.c
vm86.c