Received: from eggs.gnu.org ([2001:4830:134:3::10]:55232) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZaQgF-0003Kt-Gk for qemu-devel@nongnu.org; Fri, 11 Sep 2015 11:56:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZaQgB-00068j-O8 for qemu-devel@nongnu.org; Fri, 11 Sep 2015 11:56:03 -0400 Received: from forward15p.cmail.yandex.net ([87.250.241.141]:39321) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZaQgB-00065w-EI for qemu-devel@nongnu.org; Fri, 11 Sep 2015 11:55:59 -0400 From: Sergey Sorokin In-Reply-To: References: <1441814517-16041-1-git-send-email-afarallax@yandex.ru> MIME-Version: 1.0 Message-Id: <298531441986955@web10g.yandex.ru> Date: Fri, 11 Sep 2015 18:55:55 +0300 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v3] target-arm: Break the TB after ISB to execute self-modified code correctly List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: QEMU Developers 11.09.2015, 18:44, "Peter Maydell" : > On 9 September 2015 at 17:01, Sergey Sorokin wrot= e: >> =C2=A0If any store instruction writes the code inside the same TB >> =C2=A0after this store insn, the execution of the TB must be stopped >> =C2=A0to execute new code correctly. >> =C2=A0As described in ARMv8 manual D3.4.6 a self-modified code need to= do >> =C2=A0IC invalidation to be valid, and ISB after it. So it's enough to= end the TB >> =C2=A0after ISB instruction on the code translation. >> =C2=A0Also this TB break is necessary to take any pending interrupts i= mmediately >> =C2=A0according to ARMv8 ARM D1.14.4. >> >> =C2=A0Signed-off-by: Sergey Sorokin > > This doesn't compile... > > /home/petmay01/linaro/qemu-from-laptop/qemu/target-arm/translate.c: In > function =E2=80=98disas_thumb2_insn=E2=80=99: > /home/petmay01/linaro/qemu-from-laptop/qemu/target-arm/translate.c:1001= 7:29: > error: =E2=80=98return=E2=80=99 with no value, in function returning no= n-void > [-Werror=3Dreturn-type] > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0return; > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0^ > > thanks > -- PMM Oh, sorry. I'll fix it next week.