linux-user: Verify MIPS syscall arguments
commit94c19610a6973ad917d9c154eabfc2ee27bc4f59
authorAn-Cheng Huang <ancheng@ubnt.com>
Tue, 9 Aug 2011 19:32:38 +0000 (9 12:32 -0700)
committerRiku Voipio <riku.voipio@linaro.org>
Fri, 9 Sep 2011 07:47:54 +0000 (9 10:47 +0300)
tree7906d81c0407a26c0c658bcb17d8f7cebe72eca9
parent29fb0f25303a76edb100362eaea59b6f74bdb823
linux-user: Verify MIPS syscall arguments

On MIPS, some syscall arguments are taken from the stack. This patch adds
verification such that do_syscall() is only invoked if all arguments
have been successfully taken from the stack.

Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: An-Cheng Huang <ancheng@ubnt.com>
linux-user/main.c