From a33cd805f9fc0ef68cae164623ce479c02af5429 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 12 Mar 2017 17:20:26 -0400 Subject: [PATCH 1/2] DSPEmitter: Remove unnecessary const specifiers from function declaration parameters These only matter for types being passed by value within the definition, not the declaration. --- Source/Core/Core/DSP/Jit/DSPEmitter.h | 284 +++++++++++++------------- 1 file changed, 142 insertions(+), 142 deletions(-) diff --git a/Source/Core/Core/DSP/Jit/DSPEmitter.h b/Source/Core/Core/DSP/Jit/DSPEmitter.h index abaac452f6..56238c3b06 100644 --- a/Source/Core/Core/DSP/Jit/DSPEmitter.h +++ b/Source/Core/Core/DSP/Jit/DSPEmitter.h @@ -54,158 +54,158 @@ public: void FallBackToInterpreter(UDSPInstruction inst); // Ext commands - void l(const UDSPInstruction opc); - void ln(const UDSPInstruction opc); - void ls(const UDSPInstruction opc); - void lsn(const UDSPInstruction opc); - void lsm(const UDSPInstruction opc); - void lsnm(const UDSPInstruction opc); - void sl(const UDSPInstruction opc); - void sln(const UDSPInstruction opc); - void slm(const UDSPInstruction opc); - void slnm(const UDSPInstruction opc); - void s(const UDSPInstruction opc); - void sn(const UDSPInstruction opc); - void ld(const UDSPInstruction opc); - void ldax(const UDSPInstruction opc); - void ldn(const UDSPInstruction opc); - void ldaxn(const UDSPInstruction opc); - void ldm(const UDSPInstruction opc); - void ldaxm(const UDSPInstruction opc); - void ldnm(const UDSPInstruction opc); - void ldaxnm(const UDSPInstruction opc); - void mv(const UDSPInstruction opc); - void dr(const UDSPInstruction opc); - void ir(const UDSPInstruction opc); - void nr(const UDSPInstruction opc); + void l(UDSPInstruction opc); + void ln(UDSPInstruction opc); + void ls(UDSPInstruction opc); + void lsn(UDSPInstruction opc); + void lsm(UDSPInstruction opc); + void lsnm(UDSPInstruction opc); + void sl(UDSPInstruction opc); + void sln(UDSPInstruction opc); + void slm(UDSPInstruction opc); + void slnm(UDSPInstruction opc); + void s(UDSPInstruction opc); + void sn(UDSPInstruction opc); + void ld(UDSPInstruction opc); + void ldax(UDSPInstruction opc); + void ldn(UDSPInstruction opc); + void ldaxn(UDSPInstruction opc); + void ldm(UDSPInstruction opc); + void ldaxm(UDSPInstruction opc); + void ldnm(UDSPInstruction opc); + void ldaxnm(UDSPInstruction opc); + void mv(UDSPInstruction opc); + void dr(UDSPInstruction opc); + void ir(UDSPInstruction opc); + void nr(UDSPInstruction opc); void nop(const UDSPInstruction opc) {} // Commands - void dar(const UDSPInstruction opc); - void iar(const UDSPInstruction opc); - void subarn(const UDSPInstruction opc); - void addarn(const UDSPInstruction opc); - void sbclr(const UDSPInstruction opc); - void sbset(const UDSPInstruction opc); - void srbith(const UDSPInstruction opc); - void lri(const UDSPInstruction opc); - void lris(const UDSPInstruction opc); - void mrr(const UDSPInstruction opc); - void nx(const UDSPInstruction opc); + void dar(UDSPInstruction opc); + void iar(UDSPInstruction opc); + void subarn(UDSPInstruction opc); + void addarn(UDSPInstruction opc); + void sbclr(UDSPInstruction opc); + void sbset(UDSPInstruction opc); + void srbith(UDSPInstruction opc); + void lri(UDSPInstruction opc); + void lris(UDSPInstruction opc); + void mrr(UDSPInstruction opc); + void nx(UDSPInstruction opc); // Branch - void jcc(const UDSPInstruction opc); - void jmprcc(const UDSPInstruction opc); - void call(const UDSPInstruction opc); - void callr(const UDSPInstruction opc); - void ifcc(const UDSPInstruction opc); - void ret(const UDSPInstruction opc); - void rti(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 jcc(UDSPInstruction opc); + void jmprcc(UDSPInstruction opc); + void call(UDSPInstruction opc); + void callr(UDSPInstruction opc); + void ifcc(UDSPInstruction opc); + void ret(UDSPInstruction opc); + void rti(UDSPInstruction opc); + void halt(UDSPInstruction opc); + void loop(UDSPInstruction opc); + void loopi(UDSPInstruction opc); + void bloop(UDSPInstruction opc); + void bloopi(UDSPInstruction opc); // Load/Store - void srs(const UDSPInstruction opc); - void lrs(const UDSPInstruction opc); - void lr(const UDSPInstruction opc); - void sr(const UDSPInstruction opc); - void si(const UDSPInstruction opc); - void lrr(const UDSPInstruction opc); - void lrrd(const UDSPInstruction opc); - void lrri(const UDSPInstruction opc); - void lrrn(const UDSPInstruction opc); - void srr(const UDSPInstruction opc); - void srrd(const UDSPInstruction opc); - void srri(const UDSPInstruction opc); - void srrn(const UDSPInstruction opc); - void ilrr(const UDSPInstruction opc); - void ilrrd(const UDSPInstruction opc); - void ilrri(const UDSPInstruction opc); - void ilrrn(const UDSPInstruction opc); + void srs(UDSPInstruction opc); + void lrs(UDSPInstruction opc); + void lr(UDSPInstruction opc); + void sr(UDSPInstruction opc); + void si(UDSPInstruction opc); + void lrr(UDSPInstruction opc); + void lrrd(UDSPInstruction opc); + void lrri(UDSPInstruction opc); + void lrrn(UDSPInstruction opc); + void srr(UDSPInstruction opc); + void srrd(UDSPInstruction opc); + void srri(UDSPInstruction opc); + void srrn(UDSPInstruction opc); + void ilrr(UDSPInstruction opc); + void ilrrd(UDSPInstruction opc); + void ilrri(UDSPInstruction opc); + void ilrrn(UDSPInstruction opc); // Arithmetic - void clr(const UDSPInstruction opc); - void clrl(const UDSPInstruction opc); - void andcf(const UDSPInstruction opc); - void andf(const UDSPInstruction opc); - void tst(const UDSPInstruction opc); - void tstaxh(const UDSPInstruction opc); - void cmp(const UDSPInstruction opc); - void cmpar(const UDSPInstruction opc); - void cmpi(const UDSPInstruction opc); - void cmpis(const UDSPInstruction opc); - void xorr(const UDSPInstruction opc); - void andr(const UDSPInstruction opc); - void orr(const UDSPInstruction opc); - void andc(const UDSPInstruction opc); - void orc(const UDSPInstruction opc); - void xorc(const UDSPInstruction opc); - void notc(const UDSPInstruction opc); - void xori(const UDSPInstruction opc); - void andi(const UDSPInstruction opc); - void ori(const UDSPInstruction opc); - void addr(const UDSPInstruction opc); - void addax(const UDSPInstruction opc); - void add(const UDSPInstruction opc); - void addp(const UDSPInstruction opc); - void addaxl(const UDSPInstruction opc); - void addi(const UDSPInstruction opc); - void addis(const UDSPInstruction opc); - void incm(const UDSPInstruction opc); - void inc(const UDSPInstruction opc); - void subr(const UDSPInstruction opc); - void subax(const UDSPInstruction opc); - void sub(const UDSPInstruction opc); - void subp(const UDSPInstruction opc); - void decm(const UDSPInstruction opc); - void dec(const UDSPInstruction opc); - void neg(const UDSPInstruction opc); - void abs(const UDSPInstruction opc); - void movr(const UDSPInstruction opc); - void movax(const UDSPInstruction opc); - void mov(const UDSPInstruction opc); - void lsl16(const UDSPInstruction opc); - void lsr16(const UDSPInstruction opc); - void asr16(const UDSPInstruction opc); - void lsl(const UDSPInstruction opc); - void lsr(const UDSPInstruction opc); - void asl(const UDSPInstruction opc); - void asr(const UDSPInstruction opc); - void lsrn(const UDSPInstruction opc); - void asrn(const UDSPInstruction opc); - void lsrnrx(const UDSPInstruction opc); - void asrnrx(const UDSPInstruction opc); - void lsrnr(const UDSPInstruction opc); - void asrnr(const UDSPInstruction opc); + void clr(UDSPInstruction opc); + void clrl(UDSPInstruction opc); + void andcf(UDSPInstruction opc); + void andf(UDSPInstruction opc); + void tst(UDSPInstruction opc); + void tstaxh(UDSPInstruction opc); + void cmp(UDSPInstruction opc); + void cmpar(UDSPInstruction opc); + void cmpi(UDSPInstruction opc); + void cmpis(UDSPInstruction opc); + void xorr(UDSPInstruction opc); + void andr(UDSPInstruction opc); + void orr(UDSPInstruction opc); + void andc(UDSPInstruction opc); + void orc(UDSPInstruction opc); + void xorc(UDSPInstruction opc); + void notc(UDSPInstruction opc); + void xori(UDSPInstruction opc); + void andi(UDSPInstruction opc); + void ori(UDSPInstruction opc); + void addr(UDSPInstruction opc); + void addax(UDSPInstruction opc); + void add(UDSPInstruction opc); + void addp(UDSPInstruction opc); + void addaxl(UDSPInstruction opc); + void addi(UDSPInstruction opc); + void addis(UDSPInstruction opc); + void incm(UDSPInstruction opc); + void inc(UDSPInstruction opc); + void subr(UDSPInstruction opc); + void subax(UDSPInstruction opc); + void sub(UDSPInstruction opc); + void subp(UDSPInstruction opc); + void decm(UDSPInstruction opc); + void dec(UDSPInstruction opc); + void neg(UDSPInstruction opc); + void abs(UDSPInstruction opc); + void movr(UDSPInstruction opc); + void movax(UDSPInstruction opc); + void mov(UDSPInstruction opc); + void lsl16(UDSPInstruction opc); + void lsr16(UDSPInstruction opc); + void asr16(UDSPInstruction opc); + void lsl(UDSPInstruction opc); + void lsr(UDSPInstruction opc); + void asl(UDSPInstruction opc); + void asr(UDSPInstruction opc); + void lsrn(UDSPInstruction opc); + void asrn(UDSPInstruction opc); + void lsrnrx(UDSPInstruction opc); + void asrnrx(UDSPInstruction opc); + void lsrnr(UDSPInstruction opc); + void asrnr(UDSPInstruction opc); // Multipliers - void clrp(const UDSPInstruction opc); - void tstprod(const UDSPInstruction opc); - void movp(const UDSPInstruction opc); - void movnp(const UDSPInstruction opc); - void movpz(const UDSPInstruction opc); - void addpaxz(const UDSPInstruction opc); - void mulaxh(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 mulc(const UDSPInstruction opc); - void mulcac(const UDSPInstruction opc); - void mulcmv(const UDSPInstruction opc); - void mulcmvz(const UDSPInstruction opc); - void maddx(const UDSPInstruction opc); - void msubx(const UDSPInstruction opc); - void maddc(const UDSPInstruction opc); - void msubc(const UDSPInstruction opc); - void madd(const UDSPInstruction opc); - void msub(const UDSPInstruction opc); + void clrp(UDSPInstruction opc); + void tstprod(UDSPInstruction opc); + void movp(UDSPInstruction opc); + void movnp(UDSPInstruction opc); + void movpz(UDSPInstruction opc); + void addpaxz(UDSPInstruction opc); + void mulaxh(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 mulc(UDSPInstruction opc); + void mulcac(UDSPInstruction opc); + void mulcmv(UDSPInstruction opc); + void mulcmvz(UDSPInstruction opc); + void maddx(UDSPInstruction opc); + void msubx(UDSPInstruction opc); + void maddc(UDSPInstruction opc); + void msubc(UDSPInstruction opc); + void madd(UDSPInstruction opc); + void msub(UDSPInstruction opc); std::array, MAX_BLOCKS> m_unresolved_jumps; From ade77186366898b66fbea30955e9c15876a1c790 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 12 Mar 2017 17:38:04 -0400 Subject: [PATCH 2/2] DSPInterpreter: Remove unnecessary const specifiers from function declaration parameters --- .../Core/DSP/Interpreter/DSPInterpreter.h | 238 +++++++++--------- 1 file changed, 119 insertions(+), 119 deletions(-) diff --git a/Source/Core/Core/DSP/Interpreter/DSPInterpreter.h b/Source/Core/Core/DSP/Interpreter/DSPInterpreter.h index 1de2aba41a..b42fce5127 100644 --- a/Source/Core/Core/DSP/Interpreter/DSPInterpreter.h +++ b/Source/Core/Core/DSP/Interpreter/DSPInterpreter.h @@ -26,125 +26,125 @@ void WriteCR(u16 val); u16 ReadCR(); // All the opcode functions. -void abs(const UDSPInstruction opc); -void add(const UDSPInstruction opc); -void addarn(const UDSPInstruction opc); -void addax(const UDSPInstruction opc); -void addaxl(const UDSPInstruction opc); -void addi(const UDSPInstruction opc); -void addis(const UDSPInstruction opc); -void addp(const UDSPInstruction opc); -void addpaxz(const UDSPInstruction opc); -void addr(const UDSPInstruction opc); -void andc(const UDSPInstruction opc); -void andcf(const UDSPInstruction opc); -void andf(const UDSPInstruction opc); -void andi(const UDSPInstruction opc); -void andr(const UDSPInstruction opc); -void asl(const UDSPInstruction opc); -void asr(const UDSPInstruction opc); -void asr16(const UDSPInstruction opc); -void asrn(const UDSPInstruction opc); -void asrnr(const UDSPInstruction opc); -void asrnrx(const UDSPInstruction opc); -void bloop(const UDSPInstruction opc); -void bloopi(const UDSPInstruction opc); -void call(const UDSPInstruction opc); -void callr(const UDSPInstruction opc); -void clr(const UDSPInstruction opc); -void clrl(const UDSPInstruction opc); -void clrp(const UDSPInstruction opc); -void cmp(const UDSPInstruction opc); -void cmpar(const UDSPInstruction opc); -void cmpi(const UDSPInstruction opc); -void cmpis(const UDSPInstruction opc); -void dar(const UDSPInstruction opc); -void dec(const UDSPInstruction opc); -void decm(const UDSPInstruction opc); -void halt(const UDSPInstruction opc); -void iar(const UDSPInstruction opc); -void ifcc(const UDSPInstruction opc); -void ilrr(const UDSPInstruction opc); -void ilrrd(const UDSPInstruction opc); -void ilrri(const UDSPInstruction opc); -void ilrrn(const UDSPInstruction opc); -void inc(const UDSPInstruction opc); -void incm(const UDSPInstruction opc); -void jcc(const UDSPInstruction opc); -void jmprcc(const UDSPInstruction opc); -void loop(const UDSPInstruction opc); -void loopi(const UDSPInstruction opc); -void lr(const UDSPInstruction opc); -void lri(const UDSPInstruction opc); -void lris(const UDSPInstruction opc); -void lrr(const UDSPInstruction opc); -void lrrd(const UDSPInstruction opc); -void lrri(const UDSPInstruction opc); -void lrrn(const UDSPInstruction opc); -void lrs(const UDSPInstruction opc); -void lsl(const UDSPInstruction opc); -void lsl16(const UDSPInstruction opc); -void lsr(const UDSPInstruction opc); -void lsr16(const UDSPInstruction opc); -void lsrn(const UDSPInstruction opc); -void lsrnr(const UDSPInstruction opc); -void lsrnrx(const UDSPInstruction opc); -void madd(const UDSPInstruction opc); -void maddc(const UDSPInstruction opc); -void maddx(const UDSPInstruction opc); -void mov(const UDSPInstruction opc); -void movax(const UDSPInstruction opc); -void movnp(const UDSPInstruction opc); -void movp(const UDSPInstruction opc); -void movpz(const UDSPInstruction opc); -void movr(const UDSPInstruction opc); -void mrr(const UDSPInstruction opc); -void msub(const UDSPInstruction opc); -void msubc(const UDSPInstruction opc); -void msubx(const UDSPInstruction opc); -void mul(const UDSPInstruction opc); -void mulac(const UDSPInstruction opc); -void mulaxh(const UDSPInstruction opc); -void mulc(const UDSPInstruction opc); -void mulcac(const UDSPInstruction opc); -void mulcmv(const UDSPInstruction opc); -void mulcmvz(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 neg(const UDSPInstruction opc); -void nop(const UDSPInstruction opc); -void notc(const UDSPInstruction opc); -void nx(const UDSPInstruction opc); -void orc(const UDSPInstruction opc); -void ori(const UDSPInstruction opc); -void orr(const UDSPInstruction opc); -void ret(const UDSPInstruction opc); -void rti(const UDSPInstruction opc); -void sbclr(const UDSPInstruction opc); -void sbset(const UDSPInstruction opc); -void si(const UDSPInstruction opc); -void sr(const UDSPInstruction opc); -void srbith(const UDSPInstruction opc); -void srr(const UDSPInstruction opc); -void srrd(const UDSPInstruction opc); -void srri(const UDSPInstruction opc); -void srrn(const UDSPInstruction opc); -void srs(const UDSPInstruction opc); -void sub(const UDSPInstruction opc); -void subarn(const UDSPInstruction opc); -void subax(const UDSPInstruction opc); -void subp(const UDSPInstruction opc); -void subr(const UDSPInstruction opc); -void tst(const UDSPInstruction opc); -void tstaxh(const UDSPInstruction opc); -void tstprod(const UDSPInstruction opc); -void xorc(const UDSPInstruction opc); -void xori(const UDSPInstruction opc); -void xorr(const UDSPInstruction opc); +void abs(UDSPInstruction opc); +void add(UDSPInstruction opc); +void addarn(UDSPInstruction opc); +void addax(UDSPInstruction opc); +void addaxl(UDSPInstruction opc); +void addi(UDSPInstruction opc); +void addis(UDSPInstruction opc); +void addp(UDSPInstruction opc); +void addpaxz(UDSPInstruction opc); +void addr(UDSPInstruction opc); +void andc(UDSPInstruction opc); +void andcf(UDSPInstruction opc); +void andf(UDSPInstruction opc); +void andi(UDSPInstruction opc); +void andr(UDSPInstruction opc); +void asl(UDSPInstruction opc); +void asr(UDSPInstruction opc); +void asr16(UDSPInstruction opc); +void asrn(UDSPInstruction opc); +void asrnr(UDSPInstruction opc); +void asrnrx(UDSPInstruction opc); +void bloop(UDSPInstruction opc); +void bloopi(UDSPInstruction opc); +void call(UDSPInstruction opc); +void callr(UDSPInstruction opc); +void clr(UDSPInstruction opc); +void clrl(UDSPInstruction opc); +void clrp(UDSPInstruction opc); +void cmp(UDSPInstruction opc); +void cmpar(UDSPInstruction opc); +void cmpi(UDSPInstruction opc); +void cmpis(UDSPInstruction opc); +void dar(UDSPInstruction opc); +void dec(UDSPInstruction opc); +void decm(UDSPInstruction opc); +void halt(UDSPInstruction opc); +void iar(UDSPInstruction opc); +void ifcc(UDSPInstruction opc); +void ilrr(UDSPInstruction opc); +void ilrrd(UDSPInstruction opc); +void ilrri(UDSPInstruction opc); +void ilrrn(UDSPInstruction opc); +void inc(UDSPInstruction opc); +void incm(UDSPInstruction opc); +void jcc(UDSPInstruction opc); +void jmprcc(UDSPInstruction opc); +void loop(UDSPInstruction opc); +void loopi(UDSPInstruction opc); +void lr(UDSPInstruction opc); +void lri(UDSPInstruction opc); +void lris(UDSPInstruction opc); +void lrr(UDSPInstruction opc); +void lrrd(UDSPInstruction opc); +void lrri(UDSPInstruction opc); +void lrrn(UDSPInstruction opc); +void lrs(UDSPInstruction opc); +void lsl(UDSPInstruction opc); +void lsl16(UDSPInstruction opc); +void lsr(UDSPInstruction opc); +void lsr16(UDSPInstruction opc); +void lsrn(UDSPInstruction opc); +void lsrnr(UDSPInstruction opc); +void lsrnrx(UDSPInstruction opc); +void madd(UDSPInstruction opc); +void maddc(UDSPInstruction opc); +void maddx(UDSPInstruction opc); +void mov(UDSPInstruction opc); +void movax(UDSPInstruction opc); +void movnp(UDSPInstruction opc); +void movp(UDSPInstruction opc); +void movpz(UDSPInstruction opc); +void movr(UDSPInstruction opc); +void mrr(UDSPInstruction opc); +void msub(UDSPInstruction opc); +void msubc(UDSPInstruction opc); +void msubx(UDSPInstruction opc); +void mul(UDSPInstruction opc); +void mulac(UDSPInstruction opc); +void mulaxh(UDSPInstruction opc); +void mulc(UDSPInstruction opc); +void mulcac(UDSPInstruction opc); +void mulcmv(UDSPInstruction opc); +void mulcmvz(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 neg(UDSPInstruction opc); +void nop(UDSPInstruction opc); +void notc(UDSPInstruction opc); +void nx(UDSPInstruction opc); +void orc(UDSPInstruction opc); +void ori(UDSPInstruction opc); +void orr(UDSPInstruction opc); +void ret(UDSPInstruction opc); +void rti(UDSPInstruction opc); +void sbclr(UDSPInstruction opc); +void sbset(UDSPInstruction opc); +void si(UDSPInstruction opc); +void sr(UDSPInstruction opc); +void srbith(UDSPInstruction opc); +void srr(UDSPInstruction opc); +void srrd(UDSPInstruction opc); +void srri(UDSPInstruction opc); +void srrn(UDSPInstruction opc); +void srs(UDSPInstruction opc); +void sub(UDSPInstruction opc); +void subarn(UDSPInstruction opc); +void subax(UDSPInstruction opc); +void subp(UDSPInstruction opc); +void subr(UDSPInstruction opc); +void tst(UDSPInstruction opc); +void tstaxh(UDSPInstruction opc); +void tstprod(UDSPInstruction opc); +void xorc(UDSPInstruction opc); +void xori(UDSPInstruction opc); +void xorr(UDSPInstruction opc); } // namespace Interpreter } // namespace DSP