Issue: Fix use_regs for LDRSTR when not acting on an immediate value.
authorJoshua Wise <joshua@rebirth.joshuawise.com>
Mon, 19 Jan 2009 16:16:57 +0000 (11:16 -0500)
committerJoshua Wise <joshua@rebirth.joshuawise.com>
Mon, 19 Jan 2009 16:16:57 +0000 (11:16 -0500)
Issue.v

diff --git a/Issue.v b/Issue.v
index 7815a08..1b9868d 100644 (file)
--- a/Issue.v
+++ b/Issue.v
@@ -180,7 +180,7 @@ module Issue(
                `DECODE_LDRSTR:
                begin
                        use_cpsr = `COND_MATTERS(cond);
                `DECODE_LDRSTR:
                begin
                        use_cpsr = `COND_MATTERS(cond);
-                       use_regs = idxbit(rn) | (insn[20] /* L */ ? 0 : idxbit(rd));
+                       use_regs = idxbit(rn) | (insn[25] /* I */ ? idxbit(rm) : 0) | (insn[20] /* L */ ? 0 : idxbit(rd));
                        def_cpsr = 0;
                        def_regs = insn[20] /* L */ ? idxbit(rd) : 0;
                end
                        def_cpsr = 0;
                        def_regs = insn[20] /* L */ ? idxbit(rd) : 0;
                end
This page took 0.019481 seconds and 4 git commands to generate.