From: Ian Carmichael Date: Tue, 24 Mar 1998 22:23:33 +0000 (+0000) Subject: * Several fixes and performance enhancements from my 2 weeks working in Japan. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9fa5e700c02debc4a51134e659673b28d8886b98;p=binutils-gdb.git * Several fixes and performance enhancements from my 2 weeks working in Japan. --- diff --git a/sim/mips/sky-vu1.c b/sim/mips/sky-vu1.c index 5d478b52f7d..9ab7856cb77 100644 --- a/sim/mips/sky-vu1.c +++ b/sim/mips/sky-vu1.c @@ -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]; diff --git a/sim/mips/sky-vu1.h b/sim/mips/sky-vu1.h index 3a67475446f..c724f6a17cb 100644 --- a/sim/mips/sky-vu1.h +++ b/sim/mips/sky-vu1.h @@ -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)