All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [Qemu-devel] [PATCH] tcg/mips: Bugfix for crashwhenrunningprogram with qemu-i386.
@ 2017-07-10  6:25 jiang.biao2
  0 siblings, 0 replies; only message in thread
From: jiang.biao2 @ 2017-07-10  6:25 UTC (permalink / raw)
  To: rth
  Cc: james.hogan, zhong.weidong, wang.liang82, qemu-devel,
	shi.zhongbing, jinguojie, jiang.yong5

> > 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 .

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-07-10  6:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-10  6:25 [Qemu-devel] [PATCH] tcg/mips: Bugfix for crashwhenrunningprogram with qemu-i386 jiang.biao2

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.