* Several fixes and performance enhancements from my 2 weeks working in Japan.
authorIan Carmichael <iancarm@cygnus>
Tue, 24 Mar 1998 22:23:33 +0000 (22:23 +0000)
committerIan Carmichael <iancarm@cygnus>
Tue, 24 Mar 1998 22:23:33 +0000 (22:23 +0000)
sim/mips/sky-vu1.c
sim/mips/sky-vu1.h

index 5d478b52f7d8111206594c0cdaa65226da042830..9ab7856cb77df8c809995bb6f89cc0ba40ef957a 100644 (file)
@@ -27,6 +27,10 @@ void init_vu(VectorUnitState *state,
             char* mem_buffer, unsigned mem_qw_size);
 
 #if 0
+int vu1_busy(void) {
+    if (vu1_state.runState == VU_READY) { return 0; } else { return 1; }
+}
+
 static void dump_mem() {
     int i;
     typedef int T[2048][4];  
index 3a67475446f7dce6ac1147b46c9425bac76a8a84..c724f6a17cb70a82b82b221e9e2ce5ffce48033b 100644 (file)
@@ -10,6 +10,7 @@
 void vu1_issue(void);
 void vu1_init(SIM_DESC sd);
 int vu1_status(void);
+int vu1_busy(void);
 
 #define VU1_MEM0_WINDOW_START  0x11008000
 #define VU1_MEM0_SIZE          0x4000    /* 16K = 16384 */
@@ -41,7 +42,6 @@ int vu1_status(void);
 
 #define VU1_CIA                        0x110073e0
 
-
 #define VU1_REGISTER_WINDOW_END   0x110073f0
 
 #define VU1_REGISTER_WINDOW_SIZE (VU1_REGISTER_WINDOW_END - VU1_REGISTER_WINDOW_START)