mirror of https://github.com/PCSX2/pcsx2.git
x86emitter: clean unused legacy type
Note: no need to check -1 on register allocation failure (a exception will be fired)
This commit is contained in:
parent
3684c26cbc
commit
fb1a19f157
|
@ -15,12 +15,14 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#define SIB 4 // maps to ESP
|
||||
#define SIBDISP 5 // maps to EBP
|
||||
//#define SIB 4 // maps to ESP
|
||||
//#define SIBDISP 5 // maps to EBP
|
||||
#define DISP32 5 // maps to EBP
|
||||
|
||||
// general types
|
||||
typedef int x86IntRegType;
|
||||
typedef int x86MMXRegType;
|
||||
typedef int x86SSERegType;
|
||||
|
||||
#define EAX 0
|
||||
#define EBX 3
|
||||
|
@ -30,100 +32,3 @@ typedef int x86IntRegType;
|
|||
#define EDI 7
|
||||
#define EBP 5
|
||||
#define ESP 4
|
||||
|
||||
#define MM0 0
|
||||
#define MM1 1
|
||||
#define MM2 2
|
||||
#define MM3 3
|
||||
#define MM4 4
|
||||
#define MM5 5
|
||||
#define MM6 6
|
||||
#define MM7 7
|
||||
|
||||
typedef int x86MMXRegType;
|
||||
|
||||
#define XMM0 0
|
||||
#define XMM1 1
|
||||
#define XMM2 2
|
||||
#define XMM3 3
|
||||
#define XMM4 4
|
||||
#define XMM5 5
|
||||
#define XMM6 6
|
||||
#define XMM7 7
|
||||
#define XMM8 8
|
||||
#define XMM9 9
|
||||
#define XMM10 10
|
||||
#define XMM11 11
|
||||
#define XMM12 12
|
||||
#define XMM13 13
|
||||
#define XMM14 14
|
||||
#define XMM15 15
|
||||
|
||||
typedef int x86SSERegType;
|
||||
/* PCSX2 - PS2 Emulator for PCs
|
||||
* Copyright (C) 2002-2010 PCSX2 Dev Team
|
||||
*
|
||||
* PCSX2 is free software: you can redistribute it and/or modify it under the terms
|
||||
* of the GNU Lesser General Public License as published by the Free Software Found-
|
||||
* ation, either version 3 of the License, or (at your option) any later version.
|
||||
*
|
||||
* PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
||||
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along with PCSX2.
|
||||
* If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#define SIB 4 // maps to ESP
|
||||
#define SIBDISP 5 // maps to EBP
|
||||
#define DISP32 5 // maps to EBP
|
||||
|
||||
// general types
|
||||
typedef int x86IntRegType;
|
||||
|
||||
#define EAX 0
|
||||
#define EBX 3
|
||||
#define ECX 1
|
||||
#define EDX 2
|
||||
#define ESI 6
|
||||
#define EDI 7
|
||||
#define EBP 5
|
||||
#define ESP 4
|
||||
|
||||
#define X86ARG1 EAX
|
||||
#define X86ARG2 ECX
|
||||
#define X86ARG3 EDX
|
||||
#define X86ARG4 EBX
|
||||
|
||||
#define MM0 0
|
||||
#define MM1 1
|
||||
#define MM2 2
|
||||
#define MM3 3
|
||||
#define MM4 4
|
||||
#define MM5 5
|
||||
#define MM6 6
|
||||
#define MM7 7
|
||||
|
||||
typedef int x86MMXRegType;
|
||||
|
||||
#define XMM0 0
|
||||
#define XMM1 1
|
||||
#define XMM2 2
|
||||
#define XMM3 3
|
||||
#define XMM4 4
|
||||
#define XMM5 5
|
||||
#define XMM6 6
|
||||
#define XMM7 7
|
||||
#define XMM8 8
|
||||
#define XMM9 9
|
||||
#define XMM10 10
|
||||
#define XMM11 11
|
||||
#define XMM12 12
|
||||
#define XMM13 13
|
||||
#define XMM14 14
|
||||
#define XMM15 15
|
||||
|
||||
typedef int x86SSERegType;
|
||||
|
|
|
@ -439,7 +439,6 @@ void FPU_ADD_SUB(int regd, int regt, int issub)
|
|||
|
||||
if (tempecx != ECX) { Console.Error("FPU: ADD/SUB Allocation Error!"); tempecx = ECX;}
|
||||
if (temp2 == -1) { Console.Error("FPU: ADD/SUB Allocation Error!"); temp2 = EAX;}
|
||||
if (xmmtemp == -1) { Console.Error("FPU: ADD/SUB Allocation Error!"); xmmtemp = XMM0;}
|
||||
|
||||
SSE2_MOVD_XMM_to_R(tempecx, regd);
|
||||
SSE2_MOVD_XMM_to_R(temp2, regt);
|
||||
|
|
|
@ -350,7 +350,6 @@ void FPU_ADD_SUB(int tempd, int tempt) //tempd and tempt are overwritten, they a
|
|||
|
||||
if (tempecx != ECX) { Console.Error("FPU: ADD/SUB Allocation Error!"); tempecx = ECX;}
|
||||
if (temp2 == -1) { Console.Error("FPU: ADD/SUB Allocation Error!"); temp2 = EAX;}
|
||||
if (xmmtemp == -1) { Console.Error("FPU: ADD/SUB Allocation Error!"); xmmtemp = XMM0;}
|
||||
|
||||
SSE2_MOVD_XMM_to_R(tempecx, tempd);
|
||||
SSE2_MOVD_XMM_to_R(temp2, tempt);
|
||||
|
|
Loading…
Reference in New Issue