Bullet Collision Detection & Physics Library
Macros | Functions
SpuFakeDma.cpp File Reference
#include "SpuFakeDma.h"
#include <LinearMath/btScalar.h>
Include dependency graph for SpuFakeDma.cpp:

Go to the source code of this file.

Macros

#define USE_MEMCPY   1
 

Functions

void * cellDmaLargeGetReadOnly (void *ls, uint64_t ea, uint32_t size, uint32_t tag, uint32_t tid, uint32_t rid)
 
void * cellDmaSmallGetReadOnly (void *ls, uint64_t ea, uint32_t size, uint32_t tag, uint32_t tid, uint32_t rid)
 
void * cellDmaGetReadOnly (void *ls, uint64_t ea, uint32_t size, uint32_t tag, uint32_t tid, uint32_t rid)
 
int stallingUnalignedDmaSmallGet (void *ls, uint64_t ea, uint32_t size)
 this unalignedDma should not be frequently used, only for small data. It handles alignment and performs check on size (<16 bytes) More...
 
int cellDmaLargeGet (void *ls, uint64_t ea, uint32_t size, uint32_t tag, uint32_t tid, uint32_t rid)
 cellDmaLargeGet Win32 replacements for Cell DMA to allow simulating most of the SPU code (just memcpy) More...
 
int cellDmaGet (void *ls, uint64_t ea, uint32_t size, uint32_t tag, uint32_t tid, uint32_t rid)
 
int cellDmaLargePut (const void *ls, uint64_t ea, uint32_t size, uint32_t tag, uint32_t tid, uint32_t rid)
 cellDmaLargePut Win32 replacements for Cell DMA to allow simulating most of the SPU code (just memcpy) More...
 
void cellDmaWaitTagStatusAll (int ignore)
 cellDmaWaitTagStatusAll Win32 replacements for Cell DMA to allow simulating most of the SPU code (just memcpy) More...
 

Macro Definition Documentation

#define USE_MEMCPY   1

Definition at line 20 of file SpuFakeDma.cpp.

Function Documentation

int cellDmaGet ( void *  ls,
uint64_t  ea,
uint32_t  size,
uint32_t  tag,
uint32_t  tid,
uint32_t  rid 
)

Definition at line 173 of file SpuFakeDma.cpp.

void* cellDmaGetReadOnly ( void *  ls,
uint64_t  ea,
uint32_t  size,
uint32_t  tag,
uint32_t  tid,
uint32_t  rid 
)

Definition at line 50 of file SpuFakeDma.cpp.

int cellDmaLargeGet ( void *  ls,
uint64_t  ea,
uint32_t  size,
uint32_t  tag,
uint32_t  tid,
uint32_t  rid 
)

cellDmaLargeGet Win32 replacements for Cell DMA to allow simulating most of the SPU code (just memcpy)

Definition at line 157 of file SpuFakeDma.cpp.

void* cellDmaLargeGetReadOnly ( void *  ls,
uint64_t  ea,
uint32_t  size,
uint32_t  tag,
uint32_t  tid,
uint32_t  rid 
)

Definition at line 26 of file SpuFakeDma.cpp.

int cellDmaLargePut ( const void *  ls,
uint64_t  ea,
uint32_t  size,
uint32_t  tag,
uint32_t  tid,
uint32_t  rid 
)

cellDmaLargePut Win32 replacements for Cell DMA to allow simulating most of the SPU code (just memcpy)

Definition at line 192 of file SpuFakeDma.cpp.

void* cellDmaSmallGetReadOnly ( void *  ls,
uint64_t  ea,
uint32_t  size,
uint32_t  tag,
uint32_t  tid,
uint32_t  rid 
)

Definition at line 37 of file SpuFakeDma.cpp.

void cellDmaWaitTagStatusAll ( int  ignore)

cellDmaWaitTagStatusAll Win32 replacements for Cell DMA to allow simulating most of the SPU code (just memcpy)

Definition at line 210 of file SpuFakeDma.cpp.

int stallingUnalignedDmaSmallGet ( void *  ls,
uint64_t  ea,
uint32_t  size 
)

this unalignedDma should not be frequently used, only for small data. It handles alignment and performs check on size (<16 bytes)

stallingUnalignedDmaSmallGet internally uses DMA_TAG(1)

make sure last 4 bits are the same, for cellDmaSmallGet

Definition at line 62 of file SpuFakeDma.cpp.