From: Vince Weaver <vince@csl.cornell.edu>
To: qemu-devel@nongnu.org
Cc: Blue Swirl <blauwirbel@gmail.com>
Subject: [Qemu-devel] another SPARC issue
Date: Tue, 5 Aug 2008 16:20:58 -0400 (EDT) [thread overview]
Message-ID: <20080805161615.S57426@stanley.csl.cornell.edu> (raw)
In-Reply-To: <f43fc5580807291018n7f47d010l97276f704b5afb52@mail.gmail.com>
Hello
so I'm still trying to get bzip to work under sparc32plus-linux-user
This time the problem is with the "ldda" instruction, which is loading off
of the block-read %asi (I am learning way more than I want to about
obscure parts of the SPARC architecture).
The code involved is doing an optimized memory copy, so it's using the
floating point unit to accelerate this.
The instruction is
ldda [ %o1 + 0x40 ] %asi, %f16
but under Qemu for some reason 0x80 is added to %o1 (instead of 0x40).
Indeed if you look at the generated TCG (see below), the 0x40 is being
added in twice. I was digging around in translate.c but can't seem to see
why this is happning.
Any help would be appreciated...
Thanks
Vince
IN: __memcpy_large
0x000000000002b73c: ldda [ %o1 + 0x40 ] %asi, %f16
OP after la:
ld_i32 tmp11,regwptr,$0x8
ld_i32 tmp12,regwptr,$0xc
movi_i32 tmp15,$0x40
movi_i32 tmp16,$0x0
add2_i32 loc9,loc10,tmp11,tmp12,tmp15,tmp16
movi_i32 pc_0,$0x2b73c
movi_i32 pc_1,$0x0
movi_i32 npc_0,$0x2b740
movi_i32 npc_1,$0x0
movi_i32 tmp15,$0x40
movi_i32 tmp16,$0x0
add2_i32 loc9,loc10,loc9,loc10,tmp15,tmp16
ld_i32 tmp17,env,$0xd9c8
movi_i32 tmp18,$0x8
movi_i32 tmp19,$0x10
movi_i32 tmp20,$helper_ldf_asi
call tmp20,$0x0,$0,loc9,loc10,tmp17,tmp18,tmp19
movi_i32 pc_0,$0x2b740
movi_i32 pc_1,$0x0
movi_i32 npc_0,$0x2b744
movi_i32 npc_1,$0x0
movi_i32 tmp17,$helper_debug
call tmp17,$0x0,$0
exit_tb $0x0
end
next prev parent reply other threads:[~2008-08-05 20:21 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-29 3:32 [Qemu-devel] x86 tcg problem Vince Weaver
2008-07-29 8:46 ` Laurent Desnogues
2008-07-29 13:43 ` Vince Weaver
2008-07-29 18:24 ` malc
2008-07-29 18:33 ` Laurent Desnogues
2008-07-29 17:18 ` Blue Swirl
2008-08-05 20:20 ` Vince Weaver [this message]
2008-08-05 20:36 ` [Qemu-devel] another SPARC issue Laurent Desnogues
2008-08-06 2:33 ` Vince Weaver
2008-08-06 8:17 ` Laurent Desnogues
2008-08-06 15:29 ` Blue Swirl
2008-08-06 19:31 ` [Qemu-devel] one more " Vince Weaver
2008-08-06 19:45 ` Julian Seward
2008-08-06 19:55 ` Blue Swirl
2008-07-29 17:51 ` [Qemu-devel] x86 tcg problem Blue Swirl
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=20080805161615.S57426@stanley.csl.cornell.edu \
--to=vince@csl.cornell.edu \
--cc=blauwirbel@gmail.com \
--cc=qemu-devel@nongnu.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).