* Continuing PKE sim unit tests. Found little bugs in VU instead.
authorFrank Ch. Eigler <fche@redhat.com>
Tue, 3 Mar 1998 00:00:09 +0000 (00:00 +0000)
committerFrank Ch. Eigler <fche@redhat.com>
Tue, 3 Mar 1998 00:00:09 +0000 (00:00 +0000)
* sky-vu1.c (vu1_io_write_register_window): Make CIA (pc) write
  effective by updating more registers.

* sky-libvpe.c: Updated to match earlier VU state-change code.

* sky-vpe.h: Removed unused globals from declarations.

sim/mips/sky-vu1.c

index 40ddb034d641d50d621ccb67f142ea1824ace12d..8ad0ac77d767d5af4cb24cec6e189eb69cf23c7e 100644 (file)
@@ -121,7 +121,7 @@ vu1_io_write_register_window(device *me,
            vu1_state.junk._TOP = T2H_4(*(int*)source);         
            return nr_bytes;
         } else if (addr == VU1_CIA) {
-           vu1_state.junk._vpepc = T2H_4(*(int*)source);       
+           vu1_state.junk.pc = vu1_state.junk._vpepc = T2H_4(*(int*)source);
            vu1_state.runState = VU_RUN;
            vu1_state.junk.eflag = 0;
            vu1_state.junk.peflag = 0;