From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44997) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YD8Gs-0001Gb-KT for qemu-devel@nongnu.org; Mon, 19 Jan 2015 04:05:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YD8Gj-0002bB-Oc for qemu-devel@nongnu.org; Mon, 19 Jan 2015 04:05:18 -0500 Received: from static.88-198-71-155.clients.your-server.de ([88.198.71.155]:56204 helo=socrates.bennee.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YD8Gj-0002aL-Jm for qemu-devel@nongnu.org; Mon, 19 Jan 2015 04:05:09 -0500 References: <1421334118-3287-1-git-send-email-peter.maydell@linaro.org> <1421334118-3287-9-git-send-email-peter.maydell@linaro.org> From: Alex =?utf-8?Q?Benn=C3=A9e?= In-reply-to: <1421334118-3287-9-git-send-email-peter.maydell@linaro.org> Date: Mon, 19 Jan 2015 09:05:15 +0000 Message-ID: <87iog3qgxg.fsf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH 08/15] target-mips: Don't use _raw load/store accessors 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: > Use cpu_*_data instead of the direct *_raw load/store accessors. I take it this additional level of (macro) redirection is because at some point there will be a difference between the various cpu accessors? > > Signed-off-by: Peter Maydell Reviewed-by: Alex Bennée > --- > target-mips/op_helper.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/target-mips/op_helper.c b/target-mips/op_helper.c > index d619ba4..ea7d95f 100644 > --- a/target-mips/op_helper.c > +++ b/target-mips/op_helper.c > @@ -74,7 +74,7 @@ void helper_raise_exception(CPUMIPSState *env, uint32_t exception) > static inline type do_##name(CPUMIPSState *env, target_ulong addr, \ > int mem_idx) \ > { \ > - return (type) insn##_raw(addr); \ > + return (type) cpu_##insn##_data(env, addr); \ > } > #else > #define HELPER_LD(name, insn, type) \ > @@ -101,7 +101,7 @@ HELPER_LD(ld, ldq, int64_t) > static inline void do_##name(CPUMIPSState *env, target_ulong addr, \ > type val, int mem_idx) \ > { \ > - insn##_raw(addr, val); \ > + cpu_##insn##_data(env, addr, val); \ > } > #else > #define HELPER_ST(name, insn, type) \ -- Alex Bennée