[Cbe-oss-dev] [PATCH] libspe2: fix parameter passing by spe_context_run

Kazunori Asayama asayama at sm.sony.co.jp
Mon Nov 13 20:43:13 EST 2006


Here is a patch to fix the bug below:

  - parameters of SPE programs are not passed by spe_context_run.

--
(ASAYAMA Kazunori
  (asayama at sm.sony.co.jp))
t

-------------- next part --------------
Index: libspe2-2.0.0/spebase/run.c
===================================================================
--- libspe2-2.0.0.orig/spebase/run.c
+++ libspe2-2.0.0/spebase/run.c
@@ -157,6 +157,9 @@ int _base_spe_context_run(spe_context_pt
                 	gprs[5][2] = 0;
                 	gprs[5][3] = 0;
         	}
+		if (set_regs(spe, gprs)) {
+			return -1;
+		}
 		} else { /* SPE_CREATE_ISOLATE */
 			spe_start_isolated_app(spe, &spe->handle);
 		}


More information about the cbe-oss-dev mailing list