changeset 1191:bd4a27ae2524 draft

success run to ballbound
author Daichi TOMA <e085740@ie.u-ryukyu.ac.jp>
date Fri, 08 Jul 2011 19:37:08 +0900
parents 898fdcf53c31
children 6147dd81b4c7
files TaskManager/kernel/ppe/HTask.cc TaskManager/kernel/ppe/Threads.h
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/TaskManager/kernel/ppe/HTask.cc	Fri Jul 08 18:34:18 2011 +0900
+++ b/TaskManager/kernel/ppe/HTask.cc	Fri Jul 08 19:37:08 2011 +0900
@@ -77,7 +77,8 @@
     r_size = Task::calc_size(num_param, num_inData, num_outData)*num_task;
     rbuf = (memaddr) mimpl->allocate(r_size);
     //printf("r_size %d\n",r_size);
-//    bzero(rbuf,r_size);
+	//bzeroするのはcostが高いので外したい
+    bzero(rbuf,r_size);
     Task *task = (Task*)rbuf;
     task->init(id, num_param,num_inData,num_outData);
 // task->print();
--- a/TaskManager/kernel/ppe/Threads.h	Fri Jul 08 18:34:18 2011 +0900
+++ b/TaskManager/kernel/ppe/Threads.h	Fri Jul 08 19:37:08 2011 +0900
@@ -15,8 +15,7 @@
     virtual ~Threads() {};
 
     /* functions */
-    //virtual void init() = 0;
-    virtual void init() {};
+    virtual void init() = 0;
     virtual int get_mail(int speid, int count, memaddr *ret) = 0; // BLOCKING
     virtual int has_mail(int speid, int count, memaddr *ret) = 0; // NONBLOCK
     virtual void send_mail(int speid, int num, memaddr *data) = 0; // BLOCKING