linux-user/main.c (m68k): Use get_user_u16 rather than lduw in cpu_loop
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 20 Jan 2015 15:19:33 +0000 (15:19 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 20 Jan 2015 15:19:33 +0000 (15:19 +0000)
commitd8d5119cae38da090b7a76f22cecc8088691ab49
tree34c519bdb3189abb6a9915910276c6b5486591b8
parent5899d6d0b4cae1a0ff7487b635eee4d9db1a2a7c
linux-user/main.c (m68k): Use get_user_u16 rather than lduw in cpu_loop

In the m68k cpu_loop() use get_user_u16 to read the immediate for
the simcall rahter than lduw, to bring it into line with how other
archs do it and to remove another user of the ldl family of functions.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-id: 1421334118-3287-8-git-send-email-peter.maydell@linaro.org
linux-user/main.c