interrupt bugfix 3
authorStefan Rebernig <stefan.rebernig@gmail.com>
Sat, 25 Dec 2010 10:28:25 +0000 (11:28 +0100)
committerStefan Rebernig <stefan.rebernig@gmail.com>
Sat, 25 Dec 2010 10:28:25 +0000 (11:28 +0100)
cpu/src/decode_stage_b.vhd
cpu/src/rom_b.vhd

index 37f6688e201885e57fb3d652cd0c097e262b7ed0..e57460946e55d1213020a75dbcd5fb8234011ed3 100644 (file)
@@ -180,7 +180,7 @@ end process;
 
 
 -- async process: calculates branch prediction
-br_pred: process(instr_spl, prog_cnt)
+br_pred: process(instr_spl, prog_cnt, reset)
 
 begin
 
@@ -196,6 +196,10 @@ begin
                branch_prediction_bit <= '1';
        end if;
 
+       if reset = RESET_VALUE then
+               branch_prediction_bit <= '0';
+       end if;
+
 end process;
 
 end behav;
index e02c1c4ae2f83f92ace16fe85f7ebb08754c4dba..d7b5da1fb29500f6a855b0d8615828b8cf2c63ba 100644 (file)
@@ -137,9 +137,10 @@ begin
 
                        --      when "0100000" => data_out <= x"f7aa0000";
                                when "0100001" => data_out <= x"e7390000";
-                               when "0100010" => data_out <= x"e7b98000";
-                               when "0100011" => data_out <= x"e7b88000";
-                               when "0100100" => data_out <= x"eb000008";
+                               when "0100010" => data_out <= x"e13b8008";
+                               when "0100011" => data_out <= x"e7b98000";
+                               when "0100100" => data_out <= x"e7b88000";
+                               when "0100101" => data_out <= x"eb000008";
 
                                when others => data_out <=    "11101011000000000000000000000010";