]> Joshua Wise's Git repositories - firearm.git/commitdiff
Merge nyus:/storage/git/firearm
authorJoshua Wise <joshua@rebirth.joshuawise.com>
Fri, 9 Jan 2009 09:02:54 +0000 (04:02 -0500)
committerJoshua Wise <joshua@rebirth.joshuawise.com>
Fri, 9 Jan 2009 09:02:54 +0000 (04:02 -0500)
Conflicts:

Memory.v

1  2 
Decode.v
Memory.v

diff --cc Decode.v
Simple merge
diff --cc Memory.v
index eb0f69f2ea8b7b21d58361ef5ad98c9a1fb3b10c,bfec0c068fed18f47eaf4c2fbb92f801d214ff17..eb4006f5884d3c71ccd7a5e20959a4238a2d4622
+++ b/Memory.v
@@@ -82,9 -87,13 +89,13 @@@ module Memory
                prev_reg <= cur_reg;
                prev_offset <= offset;
                prev_raddr <= raddr;
 -              out_cpsr <= next_outcpsr;
 -              out_spsr <= spsr;
 +              outcpsr <= next_outcpsr;
 +              outspsr <= spsr;
                swp_state <= next_swp_state;
+               lsm_state <= next_lsm_state;
+               lsr_state <= next_lsr_state;
+               lsrh_state <= next_lsrh_state;
+               prevaddr <= addr;
        end
  
        always @(*)
                cp_rnw = 1'bx;
                cp_write = 32'hxxxxxxxx;
                offset = prev_offset;
 -              next_outcpsr = lsm_state == 3'b010 ? out_cpsr : cpsr;
 +              next_outcpsr = lsm_state == 3'b010 ? outcpsr : cpsr;
+               lsrh_rddata = 32'hxxxxxxxx;
+               lsrh_rddata_s1 = 16'hxxxx;
+               lsrh_rddata_s2 = 8'hxx;
                next_lsm_state = lsm_state;
                next_lsr_state = lsr_state;
+               next_lsrh_state = lsrh_state;
                next_swp_oldval = swp_oldval;
                next_swp_state = swp_state;
                cur_reg = prev_reg;
  
                /* XXX shit not given about endianness */
-               /* TODO ldrh/strh */
 -              casez(insn)
 +              if (flush)
 +                      next_outbubble = 1'b1;
 +              else casez(insn)
                `DECODE_ALU_SWP: if(!inbubble) begin
                        outstall = rw_wait;
                        next_outbubble = rw_wait;
This page took 0.025017 seconds and 4 git commands to generate.