riscv: fix accessing 8-byte variable from RV32
authorAlan Kao <alankao@andestech.com>
Fri, 22 Mar 2019 06:37:04 +0000 (14:37 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 May 2019 05:21:47 +0000 (07:21 +0200)
commitbc031095828b23bb4a2c841de5e85302ffc21121
treec00ea0e600146335a722926e7b5f07cc40f9c532
parent0424b0b35793e897a9e63ef4a0e77871ece179b3
riscv: fix accessing 8-byte variable from RV32

[ Upstream commit dbee9c9c45846f003ec2f819710c2f4835630a6a ]

A memory save operation to 8-byte variable in RV32 is divided into
two sw instructions in the put_user macro.  The current fixup returns
execution flow to the second sw instead of the one after it.

This patch fixes this fixup code according to the load access part.

Signed-off-by: Alan Kao<alankao@andestech.com>
Cc: Greentime Hu <greentime@andestech.com>
Cc: Vincent Chen <deanbo422@gmail.com>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/riscv/include/asm/uaccess.h