[Cbe-oss-dev] [PATCH] libspe2: fix spe_context_run problem w/o stopinfo
Kazunori Asayama
asayama at sm.sony.co.jp
Tue Nov 14 17:09:18 EST 2006
A patch to fix the following problem of libspe2 is attached:
- spe_context_run is failed when stopinfo parameter is NULL.
--
(ASAYAMA Kazunori
(asayama at sm.sony.co.jp))
t
-------------- next part --------------
Index: libspe2/spebase/run.c
===================================================================
--- libspe2.orig/spebase/run.c
+++ libspe2/spebase/run.c
@@ -122,6 +122,7 @@ int _base_spe_context_run(spe_context_pt
int run_again = 1;
int stopcode = 0;
+ spe_stop_info_t stopinfo_buf;
/* SETUP parameters */
@@ -129,6 +130,10 @@ int _base_spe_context_run(spe_context_pt
envp64.ull = (unsigned long long) (unsigned long) envp;
tid64.ull = (unsigned long long) (unsigned long) spe;
+ if (!stopinfo) {
+ stopinfo = &stopinfo_buf;
+ }
+
if (*entry == SPE_DEFAULT_ENTRY){
*entry = spe->base_private->entry;
}
More information about the cbe-oss-dev
mailing list