From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48576) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YvN4J-0000d3-N3 for qemu-devel@nongnu.org; Thu, 21 May 2015 05:47:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YvN4E-0006Ib-OA for qemu-devel@nongnu.org; Thu, 21 May 2015 05:47:11 -0400 Received: from mailapp01.imgtec.com ([195.59.15.196]:28068) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YvN4E-0006Hb-HS for qemu-devel@nongnu.org; Thu, 21 May 2015 05:47:06 -0400 Message-ID: <555DA998.6010705@imgtec.com> Date: Thu, 21 May 2015 10:47:04 +0100 From: Yongbok Kim MIME-Version: 1.0 References: <1432134765-7680-1-git-send-email-yongbok.kim@imgtec.com> <1432134765-7680-2-git-send-email-yongbok.kim@imgtec.com> <555CBFAD.5000207@twiddle.net> In-Reply-To: <555CBFAD.5000207@twiddle.net> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v4 1/3] target-mips: Misaligned memory accesses for R6 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Richard Henderson , qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, leon.alrae@imgtec.com, afaerber@suse.de On 20/05/2015 18:09, Richard Henderson wrote: > On 05/20/2015 08:12 AM, Yongbok Kim wrote: >> diff --git a/target-mips/op_helper.c b/target-mips/op_helper.c >> index 73a8e45..58f02cf 100644 >> --- a/target-mips/op_helper.c >> +++ b/target-mips/op_helper.c >> @@ -2215,6 +2215,13 @@ void mips_cpu_do_unaligned_access(CPUState *cs, vaddr addr, >> int error_code = 0; >> int excp; >> >> + if (env->insn_flags & ISA_MIPS32R6) { >> + /* Release 6 provides support for misaligned memory access for >> + * all ordinary memory reference instructions >> + * */ >> + return; >> + } > > This should be done instead with MO_UNALN, at translate time. > See target-ppc, DisasContext, default_tcg_memop_mask. > > > r~ > Fair enough. Actually I considered to pass the information but didn't bother as this way is so simple. Regards, Yongbok