Mercurial > hg > Members > kono > Cerium
comparison TaskManager/Cell/spe/CellDmaManager.cc @ 1015:80b18af207c2
debug mail timing.
author | yutaka@localhost.localdomain |
---|---|
date | Fri, 05 Nov 2010 22:25:33 +0900 |
parents | 44b2c4cb539d |
children | f8e9c985e2a8 |
comparison
equal
deleted
inserted
replaced
1010:44b2c4cb539d | 1015:80b18af207c2 |
---|---|
93 if (0 != spu_readchcnt(SPU_WrOutMbox)) { | 93 if (0 != spu_readchcnt(SPU_WrOutMbox)) { |
94 if (mail_queue->empty()) { | 94 if (mail_queue->empty()) { |
95 spu_write_out_mbox((uint32)data); | 95 spu_write_out_mbox((uint32)data); |
96 } else { | 96 } else { |
97 MailQueuePtr mail = mail_queue->poll(); | 97 MailQueuePtr mail = mail_queue->poll(); |
98 if (0 == mail->data) { | |
99 printf("hoge\n"); | |
100 } | |
101 spu_write_out_mbox((uint32)mail->data); | 98 spu_write_out_mbox((uint32)mail->data); |
102 mail_queue->free_(mail); | 99 mail_queue->free_(mail); |
103 mail = mail_queue->create(); | 100 mail = mail_queue->create(); |
104 mail->data = data; | 101 mail->data = data; |
105 mail_queue->addLast(mail); | 102 mail_queue->addLast(mail); |
118 | 115 |
119 (this->*start_dmawait_profile)(); | 116 (this->*start_dmawait_profile)(); |
120 | 117 |
121 while (!mail_queue->empty()) { | 118 while (!mail_queue->empty()) { |
122 MailQueuePtr mail = mail_queue->poll(); | 119 MailQueuePtr mail = mail_queue->poll(); |
123 spu_write_out_mbox((uint32)mail->data); | 120 spu_write_out_mbox((uint32)mail->data); |
124 mail_queue->free_(mail); | 121 mail_queue->free_(mail); |
125 } | 122 } |
126 | 123 |
127 spu_write_out_mbox((uint32)data); | 124 spu_write_out_mbox((uint32)data); |
128 //mail_queue.freePool(); | 125 //mail_queue.freePool(); |