OSDN Git Service

linux-user: Move target_to_host_errno_table[] setup out of ioctl loop
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 23 Jul 2012 08:07:22 +0000 (08:07 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 13 Aug 2012 11:45:46 +0000 (12:45 +0100)
commitdd6e957a142d9582df766b5c6de2fbb6773241f2
treefe85e5897149af233de4e6b3dbcafc45393a5cd9
parent5f72307d90a00caabdf786d940418f810bd7c095
linux-user: Move target_to_host_errno_table[] setup out of ioctl loop

The code to initialise the target_to_host_errno_table[] array was
accidentally inside the loop through checking and initialising all
the supported ioctls. This was harmless but meant that we reinitialised the
array several hundred times on startup.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
linux-user/syscall.c