* [Qemu-devel] [5043] Fix wrwim masking (Luis Pureza)
@ 2008-08-21 17:34 Blue Swirl
0 siblings, 0 replies; only message in thread
From: Blue Swirl @ 2008-08-21 17:34 UTC (permalink / raw)
To: qemu-devel
Revision: 5043
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5043
Author: blueswir1
Date: 2008-08-21 17:34:42 +0000 (Thu, 21 Aug 2008)
Log Message:
-----------
Fix wrwim masking (Luis Pureza)
Modified Paths:
--------------
trunk/target-sparc/translate.c
Modified: trunk/target-sparc/translate.c
===================================================================
--- trunk/target-sparc/translate.c 2008-08-21 17:33:42 UTC (rev 5042)
+++ trunk/target-sparc/translate.c 2008-08-21 17:34:42 UTC (rev 5043)
@@ -3451,6 +3451,9 @@
}
#else
tcg_gen_trunc_tl_i32(cpu_tmp32, cpu_tmp0);
+ if (dc->def->nwindows != 32)
+ tcg_gen_andi_tl(cpu_tmp32, cpu_tmp32,
+ (1 << dc->def->nwindows) - 1);
tcg_gen_st_i32(cpu_tmp32, cpu_env,
offsetof(CPUSPARCState, wim));
#endif
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-08-21 17:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-21 17:34 [Qemu-devel] [5043] Fix wrwim masking (Luis Pureza) Blue Swirl
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).