/* * Computer System Architecture - Cell GDB tutorial * SPU code */ #include #include #include #define mfc_waittag(t) do { \ mfc_write_tag_mask(1 << (t)); \ mfc_read_tag_status_all(); \ } while(0) int main(unsigned long long speid, unsigned long long argp) { char msg[16]; sprintf(msg, "Cell GDB tutorial: hello from SPU " "with ID %llx\n", speid); mfc_put(msg, argp, sizeof(msg), 0, 0, 0); mfc_waittag(0); return 0; }