Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nb3L1-0001Ia-Ai for qemu-devel@nongnu.org; Fri, 29 Jan 2010 21:45:31 -0500 Received: from [199.232.76.173] (port=57784 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nb3L0-0001Hj-KS for qemu-devel@nongnu.org; Fri, 29 Jan 2010 21:45:30 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Nb3Kw-0007JN-MN for qemu-devel@nongnu.org; Fri, 29 Jan 2010 21:45:30 -0500 Received: from web15902.mail.cnb.yahoo.com ([202.165.103.83]:45077) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1Nb3Kv-0007IL-K3 for qemu-devel@nongnu.org; Fri, 29 Jan 2010 21:45:26 -0500 Message-ID: <180712.4158.qm@web15902.mail.cnb.yahoo.com> Date: Sat, 30 Jan 2010 10:45:19 +0800 (CST) From: identifier scorpio Subject: Re: [Qemu-devel] [PATCH] Porting TCG to alpha platform In-Reply-To: <4B6334B8.9040002@twiddle.net> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1149443304-1264819519=:4158" List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Richard Henderson Cc: qemu-devel@nongnu.org --0-1149443304-1264819519=:4158 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable BUG? In tcg_out_qemu_ld tcg_out_ld(s, TCG_TYPE_I64, r1, r1, =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 offsetof(CPUTLBEntry, addend) =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 - offsetof(CPUTLBEntry, addr_read)); should be modified to=20 tcg_out_ld(s, TCG_TYPE_I64, r1, r1, =0A=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 offsetof(CPUTLBEntry, addend)); since the when calling tcg_out_ld, the R1's value is (cpu_env + TLB_entry_o= ffset), which was computed in tcg_out_tlb_cmp() And the save problem in tcg_out_qemu_ld() another BUG? At the end of tcg_out_tlb_cmp(), R0's value is (page# | low bit of VA), if = the branch is taken, i.e., TLB miss, R0 will be passed as an argument to he= lper functions, is it currently holding the correct value? I think at this = time R0 should equal to addr_reg. I'm currently testing your code in my free time. Dong Weiyu. =0A=0A=0A ___________________________________________________________ = =0A =E5=A5=BD=E7=8E=A9=E8=B4=BA=E5=8D=A1=E7=AD=89=E4=BD=A0=E5=8F=91=EF=BC= =8C=E9=82=AE=E7=AE=B1=E8=B4=BA=E5=8D=A1=E5=85=A8=E6=96=B0=E4=B8=8A=E7=BA=BF= =EF=BC=81 =0Ahttp://card.mail.cn.yahoo.com/ --0-1149443304-1264819519=:4158 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
BUG?

In tcg_out_qemu_ld

tcg_out= _ld(s, TCG_TYPE_I64, r1, r1,
       &= nbsp;       offsetof(CPUTLBEntry, addend)
=             &nb= sp;  - offsetof(CPUTLBEntry, addr_read));

should be modified to=

tcg_out_ld(s, TCG_TYPE_I64, r1, r1,
=0A    =            offsetof(CPUTL= BEntry, addend));

since the when calling tcg_out_ld, the R1's value = is (cpu_env + TLB_entry_offset), which was computed in tcg_out_tlb_cmp()
And the save problem in tcg_out_qemu_ld()

another BUG?

A= t the end of tcg_out_tlb_cmp(), R0's value is (page# | low bit of VA), if t= he branch is taken, i.e., TLB miss, R0 will be passed as an argument to hel= per functions, is it currently holding the correct value? I think at this t= ime R0 should equal to addr_reg.

I'm currently testing your code in = my free time.

Dong Weiyu.

=0A=0A=0A =E5=A5=BD=E7=8E=A9=E8=B4=BA=E5=8D=A1=E7=AD=89=E4= =BD=A0=E5=8F=91=EF=BC=8C=E9=82=AE=E7=AE=B1=E8=B4=BA=E5=8D=A1=E5=85=A8=E6=96= =B0=E4=B8=8A=E7=BA=BF=EF=BC=81 --0-1149443304-1264819519=:4158--