diff TaskManager/kernel/ppe/TaskManagerImpl.cc @ 703:61b59376aec5

compatibility
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 14 Dec 2009 18:34:46 +0900
parents 7405d92733a8
children 6d497c098455
line wrap: on
line diff
--- a/TaskManager/kernel/ppe/TaskManagerImpl.cc	Mon Dec 14 17:12:38 2009 +0900
+++ b/TaskManager/kernel/ppe/TaskManagerImpl.cc	Mon Dec 14 18:34:46 2009 +0900
@@ -64,9 +64,19 @@
 {
     HTaskPtr new_task;
 
+#ifdef SIMPLE_TASK
+    // for compatibility
+    new_task = htaskImpl->create(TaskArray1);
+    new_task->post_func = noaction;
+    new_task->mimpl = this;
+    Task *task = new_task->create_task_array(cmd,1,8,8,8);
+    new_task->r_size = task->size();
+    new_task->rbuf = (memaddr)task;
+#else
     new_task = htaskImpl->create(cmd);
     new_task->post_func = noaction;
     new_task->mimpl = this;
+#endif
 
     return new_task;
 }