From: "Edgar E. Iglesias" <edgar.iglesias@gmail.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [4683] Correct P flag assertion in rfe.
Date: Fri, 06 Jun 2008 11:17:18 +0000 [thread overview]
Message-ID: <E1K4Zwc-0007Ca-JI@cvs.savannah.gnu.org> (raw)
Revision: 4683
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4683
Author: edgar_igl
Date: 2008-06-06 11:17:17 +0000 (Fri, 06 Jun 2008)
Log Message:
-----------
Correct P flag assertion in rfe.
Modified Paths:
--------------
trunk/target-cris/op_helper.c
Modified: trunk/target-cris/op_helper.c
===================================================================
--- trunk/target-cris/op_helper.c 2008-06-06 11:07:50 UTC (rev 4682)
+++ trunk/target-cris/op_helper.c 2008-06-06 11:17:17 UTC (rev 4683)
@@ -202,6 +202,8 @@
void helper_rfe(void)
{
+ int rflag = env->pregs[PR_CCS] & R_FLAG;
+
D(fprintf(logfile, "rfe: erp=%x pid=%x ccs=%x btarget=%x\n",
env->pregs[PR_ERP], env->pregs[PR_PID],
env->pregs[PR_CCS],
@@ -210,7 +212,7 @@
cris_ccs_rshift(env);
/* RFE sets the P_FLAG only if the R_FLAG is not set. */
- if (!(env->pregs[PR_CCS] & R_FLAG))
+ if (!rflag)
env->pregs[PR_CCS] |= P_FLAG;
}
reply other threads:[~2008-06-06 11:17 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=E1K4Zwc-0007Ca-JI@cvs.savannah.gnu.org \
--to=edgar.iglesias@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).