From: "Edgar E. Iglesias" <edgar.iglesias@gmail.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [4944] CRIS: Correct condition for when to apply fast move flags evaluation .
Date: Fri, 25 Jul 2008 21:20:22 +0000 [thread overview]
Message-ID: <E1KMUi6-000870-Re@cvs.savannah.gnu.org> (raw)
Revision: 4944
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4944
Author: edgar_igl
Date: 2008-07-25 21:20:21 +0000 (Fri, 25 Jul 2008)
Log Message:
-----------
CRIS: Correct condition for when to apply fast move flags evaluation. Correct single-stepping over branches.
Modified Paths:
--------------
trunk/target-cris/translate.c
Modified: trunk/target-cris/translate.c
===================================================================
--- trunk/target-cris/translate.c 2008-07-25 21:07:21 UTC (rev 4943)
+++ trunk/target-cris/translate.c 2008-07-25 21:20:21 UTC (rev 4944)
@@ -979,7 +979,7 @@
* code is true.
*/
arith_opt = arith_cc(dc) && !dc->flags_uptodate;
- move_opt = (dc->cc_op == CC_OP_MOVE) && !dc->flags_uptodate;
+ move_opt = (dc->cc_op == CC_OP_MOVE) && dc->flags_uptodate;
switch (cond) {
case CC_EQ:
if (arith_opt || move_opt) {
@@ -3192,7 +3192,8 @@
cris_evaluate_flags (dc);
if (unlikely(env->singlestep_enabled)) {
- tcg_gen_movi_tl(env_pc, npc);
+ if (dc->is_jmp == DISAS_NEXT)
+ tcg_gen_movi_tl(env_pc, npc);
t_gen_raise_exception(EXCP_DEBUG);
} else {
switch(dc->is_jmp) {
reply other threads:[~2008-07-25 21:20 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=E1KMUi6-000870-Re@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).