changeset 617:4cfcac2367d5

bug fix
author tkaito@henri.cr.ie.u-ryukyu.ac.jp
date Sat, 14 Nov 2009 22:10:31 +0900
parents ff4d33ef8ab0
children 55ed910d13c2
files TaskManager/Cell/CellTaskManagerImpl.cc TaskManager/Cell/SpeThreads.cc
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/TaskManager/Cell/CellTaskManagerImpl.cc	Thu Nov 12 17:06:49 2009 +0900
+++ b/TaskManager/Cell/CellTaskManagerImpl.cc	Sat Nov 14 22:10:31 2009 +0900
@@ -217,7 +217,7 @@
 		    //__debug_ppe("[PPE] MALLOCED 0x%x from [SPE %d]\n", alloc_info[1],id);
 		    speThreads->add_output_tasklist(command, alloc_info[1], alloc_size);
 
-		    speThreads->send_mail(id, 2, alloc_info);
+		    speThreads->send_mail(id, 2, (memaddr *)alloc_info);
 		} else if (data > MY_SPE_NOP) {
 		    //__debug_ppe("[PPE] recv from [SPE %d] : 0x%x\n", id, data);
 		    check_task_finish((HTaskPtr)data);
@@ -268,7 +268,8 @@
 
     taskListImpl->clear_taskList(speTaskList_bg[id]);
 
-    speThreads->send_mail(id, 1, (unsigned int *)&speTaskList[id]);
+    //speThreads->send_mail(id, 1, (unsigned int *)&speTaskList[id]);
+    speThreads->send_mail(id, 1, (memaddr *)&speTaskList[id]);
     flag_sendTaskList[id] = 0;
 }
 
--- a/TaskManager/Cell/SpeThreads.cc	Thu Nov 12 17:06:49 2009 +0900
+++ b/TaskManager/Cell/SpeThreads.cc	Sat Nov 14 22:10:31 2009 +0900
@@ -160,6 +160,7 @@
  */
 void
 SpeThreads::send_mail(int speid, int num, memaddr *data1)
+
 {
     unsigned int *data = (unsigned int *) data1;
     spe_in_mbox_write(spe_ctx[speid], data, num, SPE_MBOX_ALL_BLOCKING);