36 lines
693 B
C
36 lines
693 B
C
/*
|
|
* ix86 core v0.5.1
|
|
* Authors: linuzappz <linuzappz@pcsx.net>
|
|
* alexey silinov
|
|
*/
|
|
|
|
#if defined (__ppc__) || defined (__ppc64__) || defined (__powerpc__) || defined (__powerpc64__) || defined (__POWERPC__)
|
|
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
|
|
#include "ppc.h"
|
|
|
|
// General Purpose hardware registers
|
|
int cpuHWRegisters[NUM_HW_REGISTERS] = {
|
|
3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20,
|
|
21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31
|
|
};
|
|
|
|
u32 *ppcPtr;
|
|
|
|
void ppcInit() {
|
|
}
|
|
void ppcSetPtr(u32 *ptr) {
|
|
ppcPtr = ptr;
|
|
}
|
|
void ppcAlign(int bytes) {
|
|
// forward align
|
|
ppcPtr = (u32*)(((u32)ppcPtr + bytes) & ~(bytes - 1));
|
|
}
|
|
|
|
void ppcShutdown() {
|
|
}
|
|
|
|
#endif
|