From: <jiang.biao2@zte.com.cn>
To: rth@twiddle.net
Cc: james.hogan@imgtec.com, zhong.weidong@zte.com.cn,
wang.liang82@zte.com.cn, qemu-devel@nongnu.org,
shi.zhongbing@zte.com.cn, jinguojie@loongson.cn,
jiang.yong5@zte.com.cn
Subject: Re: [Qemu-devel] [PATCH] tcg/mips: Bugfix for crashwhenrunningprogram with qemu-i386.
Date: Mon, 10 Jul 2017 14:25:35 +0800 (CST) [thread overview]
Message-ID: <201707101425356378007@zte.com.cn> (raw)
> > this section of code is to extend the addr_regl to 64bit, and use *base* as temp
> > intermedia. The real intention could be to extend addr_regl into base, and then
> > move base back to addr_regl for later use, but it wrongly assigning base to
> > addr_regl directly, which will cause crash for every use of tcg_out_qemu_st.
>
> The intent is to zero-extend addr_regl into a temporary base = A0, and at this
> point is known to be unused. Afterward, whenever we talk about the low part of
> the address, we want to use the temporary and not the original input.
>
> For example, if addr_regl = S0, and guest_base = S1, then we want
>
> dext a0, s0, 31, 0
> dadd a0, s1, a0
>
> instead of
>
> dext a0, s0, 31, 0
> mov s0, a0
> dadd a0, s1, s0
Got what you mean finally :-), it is better indeed.
I'll send a new version patch for that, and send another patch trying
to optimize the use of register by guest_base .
reply other threads:[~2017-07-10 6:26 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201707101425356378007@zte.com.cn \
--to=jiang.biao2@zte.com.cn \
--cc=james.hogan@imgtec.com \
--cc=jiang.yong5@zte.com.cn \
--cc=jinguojie@loongson.cn \
--cc=qemu-devel@nongnu.org \
--cc=rth@twiddle.net \
--cc=shi.zhongbing@zte.com.cn \
--cc=wang.liang82@zte.com.cn \
--cc=zhong.weidong@zte.com.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.