static branch - small bug fix
authorStefan Rebernig <stefan.rebernig@gmail.com>
Thu, 2 Dec 2010 13:29:02 +0000 (14:29 +0100)
committerStefan Rebernig <stefan.rebernig@gmail.com>
Thu, 2 Dec 2010 13:29:02 +0000 (14:29 +0100)
cpu/src/decoder_b.vhd
cpu/src/r_w_ram_b.vhd

index 55358f8e128f211bb189d1704fbafd5027273db7..339d11d1af28ff04ba55bbf8b6cc7667d26f2711 100644 (file)
@@ -311,6 +311,10 @@ begin
 --                     instr_s.op_detail(SUB_OPT) := not instr_s.opcode(0);
                        instr_s.op_group := JMP_OP;
                end if;
+               
+               if (instr_s.predicates = "1111") then
+                       instr_s.bp := '0';
+               end if;
        end if;
 
 --     when "10111" =>         --brreg
index 023b1b7fa27ffd6a0918798cbe964e0c48813466..16b44a425899f3408a5a36be96b7a1b78054a82a 100644 (file)
@@ -25,6 +25,7 @@ architecture behaviour of r_w_ram is
 
                                    8 => "00001011011111111111110010000011", -- jump -7
                                    9 => "11101011000000000000000010000010", -- jump +1
+                                  --10 => "11101011000000000000000010000010", -- jump +1
 
                                    10 => "11100111101010100000000000000001", -- stw r5,r4,1
                                   11 => "11101100001000100000000000000000", -- cmp r4 , r4       => 2-2 => 1001