From 6750eea5f750d928426114047ff342256a4fccc6 Mon Sep 17 00:00:00 2001 From: Stefan Rebernig Date: Thu, 2 Dec 2010 14:29:02 +0100 Subject: [PATCH] static branch - small bug fix --- cpu/src/decoder_b.vhd | 4 ++++ cpu/src/r_w_ram_b.vhd | 1 + 2 files changed, 5 insertions(+) diff --git a/cpu/src/decoder_b.vhd b/cpu/src/decoder_b.vhd index 55358f8..339d11d 100644 --- a/cpu/src/decoder_b.vhd +++ b/cpu/src/decoder_b.vhd @@ -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 diff --git a/cpu/src/r_w_ram_b.vhd b/cpu/src/r_w_ram_b.vhd index 023b1b7..16b44a4 100644 --- a/cpu/src/r_w_ram_b.vhd +++ b/cpu/src/r_w_ram_b.vhd @@ -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 -- 2.25.1