svp compiler: minor update, just to not forget
authornotaz <notasas@gmail.com>
Sun, 9 Mar 2008 22:50:48 +0000 (22:50 +0000)
committernotaz <notasas@gmail.com>
Sun, 9 Mar 2008 22:50:48 +0000 (22:50 +0000)
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@378 be3aeb3a-fb24-0410-a615-afba39da0efa

Pico/carthw/svp/compiler.c

index e6da06b..a00794a 100644 (file)
@@ -1056,10 +1056,11 @@ static int tr_PM4_to_r0(void)
        {
                known_regs.pmac_read[reg] = known_regs.pmc;
                known_regs.emu_status &= ~SSP_PMC_SET;
+               known_regb |= 1 << (20+reg);
                return 0;
        }
 
-       if (known_regb & (1 << (20+4)))
+       if (known_regb & (1 << (20+reg)))
        {
                int mode = known_regs.pmac_read[reg]>>16;
                if      ((mode & 0xfff0) == 0x0800)