Files
gem5/src/sim
Nicolas Derumigny 976ef444b8 syscall: read() should not write anything if reading EOF.
Read() should not write anything when returning 0 (EOF).
This patch does not correct the same bug occuring for :

nbr_read=read(file, buf, nbytes)

When nbr_read<nbytes, nbytes bytes are copied into the virtual
RAM instead of nbr_read. If buf is smaller than nbytes, a
page fault occurs, even if buf is in fact bigger than nbr_read.

Signed-off-by: Jason Lowe-Power <jason@lowepower.com>
2016-10-15 15:06:24 -05:00
..
2016-06-07 14:27:49 +01:00
2015-10-09 14:27:09 -05:00
2015-10-09 14:27:09 -05:00
2016-02-06 17:21:18 -08:00
2016-02-06 17:21:18 -08:00
2014-10-16 05:49:51 -04:00
2016-01-17 18:27:46 -08:00
2016-06-07 14:27:49 +01:00
2015-09-02 15:23:30 -05:00
2016-02-06 17:21:18 -08:00
2016-01-11 05:52:20 -05:00
2015-05-12 10:26:47 +01:00
2015-05-12 10:26:47 +01:00
2015-05-12 10:26:47 +01:00