small compile/link fixes

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2820 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
XTra.KrazzY 2009-04-01 21:30:09 +00:00
parent 692a05bfe9
commit 59c44bd13b
3 changed files with 92 additions and 92 deletions

View File

@ -33,100 +33,100 @@ namespace DSPInterpreter {
s8 GetMultiplyModifier();
// END OF HELPER FUNCTIONS
void unknown(UDSPInstruction& opc);
void call(UDSPInstruction& opc);
void ifcc(UDSPInstruction& opc);
void jcc(UDSPInstruction& opc);
void ret(UDSPInstruction& opc);
void halt(UDSPInstruction& opc);
void loop(UDSPInstruction& opc);
void loopi(UDSPInstruction& opc);
void bloop(UDSPInstruction& opc);
void bloopi(UDSPInstruction& opc);
void mrr(UDSPInstruction& opc);
void lrr(UDSPInstruction& opc);
void srr(UDSPInstruction& opc);
void lri(UDSPInstruction& opc);
void lris(UDSPInstruction& opc);
void lr(UDSPInstruction& opc);
void sr(UDSPInstruction& opc);
void si(UDSPInstruction& opc);
void tstaxh(UDSPInstruction& opc);
void clr(UDSPInstruction& opc);
void clrp(UDSPInstruction& opc);
void mulc(UDSPInstruction& opc);
void cmpar(UDSPInstruction& opc);
void cmp(UDSPInstruction& opc);
void tsta(UDSPInstruction& opc);
void addaxl(UDSPInstruction& opc);
void addarn(UDSPInstruction& opc);
void mulcac(UDSPInstruction& opc);
void movr(UDSPInstruction& opc);
void movax(UDSPInstruction& opc);
void xorr(UDSPInstruction& opc);
void andr(UDSPInstruction& opc);
void orr(UDSPInstruction& opc);
void andc(UDSPInstruction& opc);
void add(UDSPInstruction& opc);
void addp(UDSPInstruction& opc);
void cmpis(UDSPInstruction& opc);
void addpaxz(UDSPInstruction& opc);
void movpz(UDSPInstruction& opc);
void decm(UDSPInstruction& opc);
void dec(UDSPInstruction& opc);
void inc(UDSPInstruction& opc);
void incm(UDSPInstruction& opc);
void neg(UDSPInstruction& opc);
void addax(UDSPInstruction& opc);
void addr(UDSPInstruction& opc);
void subr(UDSPInstruction& opc);
void subax(UDSPInstruction& opc);
void addis(UDSPInstruction& opc);
void addi(UDSPInstruction& opc);
void lsl16(UDSPInstruction& opc);
void madd(UDSPInstruction& opc);
void lsr16(UDSPInstruction& opc);
void asr16(UDSPInstruction& opc);
void shifti(UDSPInstruction& opc);
void dar(UDSPInstruction& opc);
void iar(UDSPInstruction& opc);
void sbclr(UDSPInstruction& opc);
void sbset(UDSPInstruction& opc);
void movp(UDSPInstruction& opc);
void mul(UDSPInstruction& opc);
void mulac(UDSPInstruction& opc);
void mulmv(UDSPInstruction& opc);
void mulmvz(UDSPInstruction& opc);
void mulx(UDSPInstruction& opc);
void mulxac(UDSPInstruction& opc);
void mulxmv(UDSPInstruction& opc);
void mulxmvz(UDSPInstruction& opc);
void sub(UDSPInstruction& opc);
void maddx(UDSPInstruction& opc);
void msubx(UDSPInstruction& opc);
void maddc(UDSPInstruction& opc);
void msubc(UDSPInstruction& opc);
void unknown(const UDSPInstruction& opc);
void call(const UDSPInstruction& opc);
void ifcc(const UDSPInstruction& opc);
void jcc(const UDSPInstruction& opc);
void ret(const UDSPInstruction& opc);
void halt(const UDSPInstruction& opc);
void loop(const UDSPInstruction& opc);
void loopi(const UDSPInstruction& opc);
void bloop(const UDSPInstruction& opc);
void bloopi(const UDSPInstruction& opc);
void mrr(const UDSPInstruction& opc);
void lrr(const UDSPInstruction& opc);
void srr(const UDSPInstruction& opc);
void lri(const UDSPInstruction& opc);
void lris(const UDSPInstruction& opc);
void lr(const UDSPInstruction& opc);
void sr(const UDSPInstruction& opc);
void si(const UDSPInstruction& opc);
void tstaxh(const UDSPInstruction& opc);
void clr(const UDSPInstruction& opc);
void clrp(const UDSPInstruction& opc);
void mulc(const UDSPInstruction& opc);
void cmpar(const UDSPInstruction& opc);
void cmp(const UDSPInstruction& opc);
void tsta(const UDSPInstruction& opc);
void addaxl(const UDSPInstruction& opc);
void addarn(const UDSPInstruction& opc);
void mulcac(const UDSPInstruction& opc);
void movr(const UDSPInstruction& opc);
void movax(const UDSPInstruction& opc);
void xorr(const UDSPInstruction& opc);
void andr(const UDSPInstruction& opc);
void orr(const UDSPInstruction& opc);
void andc(const UDSPInstruction& opc);
void add(const UDSPInstruction& opc);
void addp(const UDSPInstruction& opc);
void cmpis(const UDSPInstruction& opc);
void addpaxz(const UDSPInstruction& opc);
void movpz(const UDSPInstruction& opc);
void decm(const UDSPInstruction& opc);
void dec(const UDSPInstruction& opc);
void inc(const UDSPInstruction& opc);
void incm(const UDSPInstruction& opc);
void neg(const UDSPInstruction& opc);
void addax(const UDSPInstruction& opc);
void addr(const UDSPInstruction& opc);
void subr(const UDSPInstruction& opc);
void subax(const UDSPInstruction& opc);
void addis(const UDSPInstruction& opc);
void addi(const UDSPInstruction& opc);
void lsl16(const UDSPInstruction& opc);
void madd(const UDSPInstruction& opc);
void lsr16(const UDSPInstruction& opc);
void asr16(const UDSPInstruction& opc);
void shifti(const UDSPInstruction& opc);
void dar(const UDSPInstruction& opc);
void iar(const UDSPInstruction& opc);
void sbclr(const UDSPInstruction& opc);
void sbset(const UDSPInstruction& opc);
void movp(const UDSPInstruction& opc);
void mul(const UDSPInstruction& opc);
void mulac(const UDSPInstruction& opc);
void mulmv(const UDSPInstruction& opc);
void mulmvz(const UDSPInstruction& opc);
void mulx(const UDSPInstruction& opc);
void mulxac(const UDSPInstruction& opc);
void mulxmv(const UDSPInstruction& opc);
void mulxmvz(const UDSPInstruction& opc);
void sub(const UDSPInstruction& opc);
void maddx(const UDSPInstruction& opc);
void msubx(const UDSPInstruction& opc);
void maddc(const UDSPInstruction& opc);
void msubc(const UDSPInstruction& opc);
// FIXME inside
void jmpa(UDSPInstruction& opc);
void rti(UDSPInstruction& opc);
void ilrr(UDSPInstruction& opc);
void srbith(UDSPInstruction& opc);
void jmpa(const UDSPInstruction& opc);
void rti(const UDSPInstruction& opc);
void ilrr(const UDSPInstruction& opc);
void srbith(const UDSPInstruction& opc);
void andfc(UDSPInstruction& opc);
void andf(UDSPInstruction& opc);
void subf(UDSPInstruction& opc);
void xori(UDSPInstruction& opc);
void andi(UDSPInstruction& opc);
void ori(UDSPInstruction& opc);
void andfc(const UDSPInstruction& opc);
void andf(const UDSPInstruction& opc);
void subf(const UDSPInstruction& opc);
void xori(const UDSPInstruction& opc);
void andi(const UDSPInstruction& opc);
void ori(const UDSPInstruction& opc);
// END OF FIXMEs
// TODO: PENDING IMPLEMENTATION / UNIMPLEMENTED
void mulcmvz(UDSPInstruction& opc);
void mulcmv(UDSPInstruction& opc);
void nx(UDSPInstruction& opc);
void movnp(UDSPInstruction& opc);
void mulcmvz(const UDSPInstruction& opc);
void mulcmv(const UDSPInstruction& opc);
void nx(const UDSPInstruction& opc);
void movnp(const UDSPInstruction& opc);
// END OF UNIMPLEMENTED
};

View File

@ -23,11 +23,11 @@
#include "DSPInterpreter.h"
#include "DSPJit.h"
void unimplementedInst(UDSPInstruction& inst) {
void unimplementedInst(const UDSPInstruction& inst) {
PanicAlert("Unimplemented instruction %d", inst.hex);
}
void nop(UDSPInstruction&) {}
void nop(const UDSPInstruction&) {}
// TODO(XK): Fill up the tables with the corresponding instructions
DSPOPCTemplate opcodes[] =
@ -247,7 +247,7 @@ void DestroyInstructionTable() {
// TODO(XK): Fill
}
void ComputeInstruction(UDSPInstruction& inst) {
void ComputeInstruction(const UDSPInstruction& inst) {
// TODO(XK): Fill
DSPInterpreter::unknown(inst);
}

View File

@ -68,10 +68,10 @@ union UDSPInstruction
unsigned ushift : 6;
};
// TODO(XK): Figure out more instruction structures (add structs here)
// TODO: Figure out more instruction structures (add structs here)
};
typedef void (*dspInstFunc)(UDSPInstruction&);
typedef void (*dspInstFunc)(const UDSPInstruction&);
typedef struct DSPOParams
{