From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40653) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YBmsw-0000m2-U3 for qemu-devel@nongnu.org; Thu, 15 Jan 2015 11:03:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YBmss-0005Xz-2x for qemu-devel@nongnu.org; Thu, 15 Jan 2015 11:03:02 -0500 Received: from static.88-198-71-155.clients.your-server.de ([88.198.71.155]:37899 helo=socrates.bennee.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YBmsr-0005Xv-Tc for qemu-devel@nongnu.org; Thu, 15 Jan 2015 11:02:58 -0500 References: <1421334118-3287-1-git-send-email-peter.maydell@linaro.org> <1421334118-3287-8-git-send-email-peter.maydell@linaro.org> From: Alex =?utf-8?Q?Benn=C3=A9e?= In-reply-to: <1421334118-3287-8-git-send-email-peter.maydell@linaro.org> Date: Thu, 15 Jan 2015 16:03:03 +0000 Message-ID: <87twzs116w.fsf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH 07/15] linux-user/main.c (m68k): Use get_user_u16 rather than lduw in cpu_loop List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Paolo Bonzini , Riku Voipio , qemu-devel@nongnu.org, patches@linaro.org, Richard Henderson Peter Maydell writes: > 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 After getting lost tracing the many macro definitions from lduw ;-) Reviewed-by: Alex Bennée > --- > linux-user/main.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/linux-user/main.c b/linux-user/main.c > index 67b0231..65b5a36 100644 > --- a/linux-user/main.c > +++ b/linux-user/main.c > @@ -2972,7 +2972,7 @@ void cpu_loop(CPUM68KState *env) > { > if (ts->sim_syscalls) { > uint16_t nr; > - nr = lduw(env->pc + 2); > + get_user_u16(nr, env->pc + 2); > env->pc += 4; > do_m68k_simcall(env, nr); > } else { -- Alex Bennée