]> Joshua Wise's Git repositories - firearm.git/commitdiff
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 7815a0813d30faa74013db39911d5e5d448e6d65..1b9868da1a2b7b0236b58dc2382960961805c89f 100644 (file)
--- a/Issue.v
+++ b/Issue.v
@@ -180,7 +180,7 @@ module Issue(
                `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
This page took 0.042284 seconds and 4 git commands to generate.