From: Blue Swirl <blauwirbel@gmail.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [5196] Write zeros to high bits of y, based on patch by Vince Weaver
Date: Thu, 11 Sep 2008 16:01:03 +0000 [thread overview]
Message-ID: <E1KdobP-0002My-0z@cvs.savannah.gnu.org> (raw)
Revision: 5196
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5196
Author: blueswir1
Date: 2008-09-11 16:01:02 +0000 (Thu, 11 Sep 2008)
Log Message:
-----------
Write zeros to high bits of y, based on patch by Vince Weaver
Modified Paths:
--------------
trunk/target-sparc/translate.c
Modified: trunk/target-sparc/translate.c
===================================================================
--- trunk/target-sparc/translate.c 2008-09-11 14:32:27 UTC (rev 5195)
+++ trunk/target-sparc/translate.c 2008-09-11 16:01:02 UTC (rev 5196)
@@ -709,7 +709,8 @@
tcg_gen_andi_tl(r_temp, cpu_cc_src, 0x1);
tcg_gen_shli_tl(r_temp, r_temp, 31);
tcg_gen_shri_tl(cpu_tmp0, cpu_y, 1);
- tcg_gen_or_tl(cpu_y, cpu_tmp0, r_temp);
+ tcg_gen_or_tl(cpu_tmp0, cpu_tmp0, r_temp);
+ tcg_gen_andi_tl(cpu_y, cpu_tmp0, 0xffffffff);
// b1 = N ^ V;
gen_mov_reg_N(cpu_tmp0, cpu_psr);
@@ -3195,7 +3196,8 @@
{
switch(rd) {
case 0: /* wry */
- tcg_gen_xor_tl(cpu_y, cpu_src1, cpu_src2);
+ tcg_gen_xor_tl(cpu_tmp0, cpu_src1, cpu_src2);
+ tcg_gen_andi_tl(cpu_y, cpu_tmp0, 0xffffffff);
break;
#ifndef TARGET_SPARC64
case 0x01 ... 0x0f: /* undefined in the
reply other threads:[~2008-09-11 16:01 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=E1KdobP-0002My-0z@cvs.savannah.gnu.org \
--to=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).