filename | test/testspu.c |
changeset | 812:8cc61d5ea1f8 |
prev | 278:a66aaa522d31 |
author | nkeynes |
date | Sun Dec 14 07:50:48 2008 +0000 (15 years ago) |
permissions | -rw-r--r-- |
last change | Setup a 'proper' stackframe in translated blocks. This doesn't affect performance noticeably, but does ensure that a) The stack is aligned correctly on OS X with no extra effort, and b) We can't mess up the stack and crash that way anymore. Replace all PUSH/POP instructions (outside of prologue/epilogue) with ESP-rel moves to stack local variables. Finally merge ia32mac and ia32abi together, since they're pretty much the same now anyway (and thereby simplifying maintenance a good deal) |
file | annotate | diff | log | raw |
1.1 --- a/test/testspu.c Sun Jan 14 02:53:11 2007 +00001.2 +++ b/test/testspu.c Sun Dec 14 07:50:48 2008 +00001.3 @@ -38,7 +38,7 @@1.5 long_write( SPUDMACTL1(chan), 1 );1.6 long_write( SPUDMACTL2(chan), 1 );1.7 - if( asic_wait( EVENT_SPU_DMA0 + chan ) != 0 ) {1.8 + if( asic_wait( EVENT_G2_DMA0 + chan ) != 0 ) {1.9 fprintf( stderr, "Timeout waiting for DMA event\n" );1.10 dump_spu_regs();1.11 return -1;1.12 @@ -60,7 +60,7 @@1.14 long_write( SPUDMACTL1(chan), 1 );1.15 long_write( SPUDMACTL2(chan), 1 );1.16 - if( asic_wait( EVENT_SPU_DMA0 + chan ) != 0 ) {1.17 + if( asic_wait( EVENT_G2_DMA0 + chan ) != 0 ) {1.18 fprintf( stderr, "Timeout waiting for DMA event\n" );1.19 dump_spu_regs();1.20 return -1;
.