Linux compiles again. Added back in potentially obsolete code, since it's still called.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@918 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
arcum42 2009-04-07 12:25:56 +00:00
parent 2588dc0309
commit 5f35577543
5 changed files with 39 additions and 3 deletions

View File

@ -24,6 +24,7 @@ struct vifCycle {
u8 pad[2];
};
// r0-r3 and c0-c3 would be more managable as arrays.
struct VIFregisters {
u32 stat;
u32 pad0[3];

View File

@ -1,4 +1,4 @@
INCLUDES = -I@srcdir@/.. -I@srcdir@/../../ -I@srcdir@/../../../common/include -I@srcdir@/../../../3rdparty
noinst_LIBRARIES = libix86.a
libix86_a_SOURCES = ix86.cpp ix86.inl ix86_3dnow.inl ix86.h ix86_fpu.inl ix86_mmx.inl ix86_sse.inl ix86_tools.cpp ix86_cpudetect.cpp ix86_macros.h
libix86_a_SOURCES = ix86.cpp ix86.inl ix86_3dnow.inl ix86.h ix86_fpu.inl ix86_mmx.inl ix86_sse.inl ix86_tools.cpp ix86_cpudetect.cpp ix86_macros.h ix86_group1.inl

View File

@ -42,7 +42,7 @@ XMMSSEType g_xmmtypes[XMMREGS] = { XMMT_INT };
namespace x86Emitter
{
const x86IndexerType ptr;
x86IndexerType ptr;
//////////////////////////////////////////////////////////////////////////////////////////
//

View File

@ -38,6 +38,41 @@
// Note: the 'to' field can either be a register or a special opcode extension specifier
// depending on the opcode's encoding.
// I added this back in because it's called once from eMOV8ItoRm and eMOV16ItoRm.
emitterT void WriteRmOffset(x86IntRegType to, s32 offset)
{
if ((to&7) == ESP) {
if( offset == 0 ) {
ModRM<I>( 0, 0, 4 );
SibSB<I>( 0, ESP, 4 );
}
else if( offset <= 127 && offset >= -128 ) {
ModRM<I>( 1, 0, 4 );
SibSB<I>( 0, ESP, 4 );
write8<I>(offset);
}
else {
ModRM<I>( 2, 0, 4 );
SibSB<I>( 0, ESP, 4 );
write32<I>(offset);
}
}
else {
if( offset == 0 ) {
ModRM<I>( 0, 0, to );
}
else if( offset <= 127 && offset >= -128 ) {
ModRM<I>( 1, 0, to );
write8<I>(offset);
}
else {
ModRM<I>( 2, 0, to );
write32<I>(offset);
}
}
}
emitterT void WriteRmOffsetFrom(x86IntRegType to, x86IntRegType from, int offset)
{
if ((from&7) == ESP) {

View File

@ -356,5 +356,5 @@ namespace x86Emitter
extern const x86Register ebp;
extern const x86Register esp;
extern const x86IndexerType ptr;
extern x86IndexerType ptr;
}