target/arm: correct return values for WRITE/READ in arm-semi
commit629a0b065af074a43176968e1e242b87fc3be39f
authorAlex Bennée <alex.bennee@linaro.org>
Tue, 14 May 2019 11:21:45 +0000 (14 12:21 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Tue, 28 May 2019 09:28:51 +0000 (28 10:28 +0100)
treeaf6aceef4d8b491372f5afafd48d76343351aa12
parenta131795f4c696083708767a2cb7e1168f73a1690
target/arm: correct return values for WRITE/READ in arm-semi

The documentation says the write should return the number of bytes not
written on an error (0 means everything was written). Read provides a
buffer length and the return value should be the buffer length - bytes
actually read. Remove the incorrect FIXME's and return the correct
values.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
target/arm/arm-semi.c