OSDN Git Service

target/xtensa: fix mapping direction in read/write simcalls
authorMax Filippov <jcmvbkbc@gmail.com>
Fri, 12 May 2017 18:17:01 +0000 (11:17 -0700)
committerMax Filippov <jcmvbkbc@gmail.com>
Tue, 6 Jun 2017 09:34:04 +0000 (02:34 -0700)
commit30c2afd151cbc38c012f7b441088980807183da6
treec43261343f128d4e138acb65de61bac6ca985286
parenta0d4aac7467dd02e5657b79e867f067330266a24
target/xtensa: fix mapping direction in read/write simcalls

Read and write simcalls map physical memory to access I/O buffers, but
'read' simcall need to map it for writing and 'write' simcall need to
map it for reading, i.e. the opposite of what they do now. Fix that.

Cc: qemu-stable@nongnu.org
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
target/xtensa/xtensa-semi.c