]> git.proxmox.com Git - mirror_qemu.git/commit
target/xtensa: fix return value of read/write simcalls
authorMax Filippov <jcmvbkbc@gmail.com>
Fri, 12 May 2017 19:05:23 +0000 (12:05 -0700)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 3 Aug 2017 19:32:06 +0000 (14:32 -0500)
commitd81db0becaeca093a55f3dba110c55528ad5c3bc
treeaacb7f2aaa8c07b634c62ae832a396059dc8b1f2
parente4422534796c98fe4e1b8bbef127b5eb009ac697
target/xtensa: fix return value of read/write simcalls

Return value of read/write simcalls is not calculated correctly in case
of operations crossing page boundary and in case of short reads/writes.
Read and write simcalls should return the size of data actually
read/written or -1 in case of error.

Cc: qemu-stable@nongnu.org
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
(cherry picked from commit 347ec03093f9668a379ef6b7fa1feb332fff039c)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
target/xtensa/xtensa-semi.c