mirror of https://github.com/PCSX2/pcsx2.git
Fix Linux compilation, fix a potential crash, and add a build target I find useful occassionally.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3706 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
bcac59ee4f
commit
fe347c2c04
|
@ -137,6 +137,60 @@
|
|||
<Add library="$(SvnRootDir)/deps/release/libUtilities.a" />
|
||||
</Linker>
|
||||
</Target>
|
||||
<Target title="Devel-Debug">
|
||||
<Option platforms="Windows;Unix;" />
|
||||
<Option output="$(SvnRootDir)/bin/pcsx2-deb" prefix_auto="1" extension_auto="1" />
|
||||
<Option working_dir="$(SvnRootDir)/bin/" />
|
||||
<Option object_output="./.objs/devel" />
|
||||
<Option external_deps="../../tools/bin/bin2cpp;" />
|
||||
<Option type="0" />
|
||||
<Option compiler="gcc" />
|
||||
<Compiler>
|
||||
<Add option="-fdefer-pop" />
|
||||
<Add option="-fcprop-registers" />
|
||||
<Add option="-fif-conversion" />
|
||||
<Add option="-fif-conversion2" />
|
||||
<Add option="-ftree-ccp" />
|
||||
<Add option="-ftree-dce" />
|
||||
<Add option="-ftree-dominator-opts" />
|
||||
<Add option="-ftree-ter" />
|
||||
<Add option="-ftree-lrs" />
|
||||
<Add option="-ftree-sra" />
|
||||
<Add option="-ftree-copyrename" />
|
||||
<Add option="-ftree-fre" />
|
||||
<Add option="-ftree-ch" />
|
||||
<Add option="-funit-at-a-time" />
|
||||
<Add option="-fmerge-constants" />
|
||||
<Add option="-fthread-jumps" />
|
||||
<Add option="-fcrossjumping" />
|
||||
<Add option="-foptimize-sibling-calls" />
|
||||
<Add option="-fcse-follow-jumps" />
|
||||
<Add option="-fcse-skip-blocks" />
|
||||
<Add option="-fgcse -fgcse-lm" />
|
||||
<Add option="-frerun-cse-after-loop" />
|
||||
<Add option="-fcaller-saves" />
|
||||
<Add option="-fpeephole2" />
|
||||
<Add option="-fsched-interblock -fsched-spec" />
|
||||
<Add option="-fregmove" />
|
||||
<Add option="-fstrict-overflow" />
|
||||
<Add option="-fdelete-null-pointer-checks" />
|
||||
<Add option="-freorder-blocks -freorder-functions" />
|
||||
<Add option="-falign-functions -falign-jumps" />
|
||||
<Add option="-falign-loops -falign-labels" />
|
||||
<Add option="-ftree-vrp" />
|
||||
<Add option="-ftree-pre" />
|
||||
<Add option="-DPCSX2_DEVBUILD" />
|
||||
<Add option="-DPCSX2_DEVEL" />
|
||||
<Add option="-DNDEBUG" />
|
||||
</Compiler>
|
||||
<ResourceCompiler>
|
||||
<Add directory="$(ProjectRootDir)/gui" />
|
||||
</ResourceCompiler>
|
||||
<Linker>
|
||||
<Add library="$(SvnRootDir)/deps/devel/libx86emitter.a" />
|
||||
<Add library="$(SvnRootDir)/deps/devel/libUtilities.a" />
|
||||
</Linker>
|
||||
</Target>
|
||||
<Environment>
|
||||
<Variable name="SvnRootDir" value="../../" />
|
||||
<Variable name="ProjectRootDir" value='"$(SvnRootDir)/pcsx2/"' />
|
||||
|
@ -522,7 +576,7 @@
|
|||
<Unit filename="../ps2/BiosTools.cpp" />
|
||||
<Unit filename="../ps2/BiosTools.h" />
|
||||
<Unit filename="../ps2/GIFpath.cpp" />
|
||||
<Unit filename="../ps2/LegacyDmac.cpp" />
|
||||
<Unit filename="../ps2/HwInternal.h" />
|
||||
<Unit filename="../ps2/Iop/IopHwRead.cpp" />
|
||||
<Unit filename="../ps2/Iop/IopHwWrite.cpp" />
|
||||
<Unit filename="../ps2/Iop/IopHw_Internal.h" />
|
||||
|
|
|
@ -612,14 +612,28 @@ void memBindConditionalHandlers()
|
|||
{
|
||||
if( hw_by_page[0xf] == -1 ) return;
|
||||
|
||||
vtlbMemR16FP* page0F16( EmuConfig.Speedhacks.IntcStat ? hwRead16_page_0F_INTC_HACK : hwRead16<0x0f> );
|
||||
vtlbMemR32FP* page0F32( EmuConfig.Speedhacks.IntcStat ? hwRead32_page_0F_INTC_HACK : hwRead32<0x0f> );
|
||||
//vtlbMemR64FP* page0F64( EmuConfig.Speedhacks.IntcStat ? hwRead64_generic_INTC_HACK : hwRead64<0x0f> );
|
||||
if (EmuConfig.Speedhacks.IntcStat)
|
||||
{
|
||||
vtlbMemR16FP* page0F16(hwRead16_page_0F_INTC_HACK);
|
||||
vtlbMemR32FP* page0F32(hwRead32_page_0F_INTC_HACK);
|
||||
//vtlbMemR64FP* page0F64(hwRead64_generic_INTC_HACK);
|
||||
|
||||
vtlb_ReassignHandler( hw_by_page[0xf],
|
||||
hwRead8<0x0f>, page0F16, page0F32, hwRead64<0x0f>, hwRead128<0x0f>,
|
||||
hwWrite8<0x0f>, hwWrite16<0x0f>, hwWrite32<0x0f>, hwWrite64<0x0f>, hwWrite128<0x0f>
|
||||
);
|
||||
vtlb_ReassignHandler( hw_by_page[0xf],
|
||||
hwRead8<0x0f>, page0F16, page0F32, hwRead64<0x0f>, hwRead128<0x0f>,
|
||||
hwWrite8<0x0f>, hwWrite16<0x0f>, hwWrite32<0x0f>, hwWrite64<0x0f>, hwWrite128<0x0f>
|
||||
);
|
||||
}
|
||||
else
|
||||
{
|
||||
vtlbMemR16FP* page0F16(hwRead16<0x0f>);
|
||||
vtlbMemR32FP* page0F32(hwRead32<0x0f>);
|
||||
//vtlbMemR64FP* page0F64(hwRead64<0x0f>);
|
||||
|
||||
vtlb_ReassignHandler( hw_by_page[0xf],
|
||||
hwRead8<0x0f>, page0F16, page0F32, hwRead64<0x0f>, hwRead128<0x0f>,
|
||||
hwWrite8<0x0f>, hwWrite16<0x0f>, hwWrite32<0x0f>, hwWrite64<0x0f>, hwWrite128<0x0f>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
// Resets memory mappings, unmaps TLBs, reloads bios roms, etc.
|
||||
|
|
|
@ -993,7 +993,7 @@ void Pcsx2App::ProgramLog_PostEvent( wxEvent& evt )
|
|||
static void __concall ConsoleToFile_Newline()
|
||||
{
|
||||
#ifdef __LINUX__
|
||||
if (g_Conf->EmuOptions.ConsoleToStdio) ConsoleWriter_Stdout.Newline();
|
||||
if ((g_Conf) && (g_Conf->EmuOptions.ConsoleToStdio)) ConsoleWriter_Stdout.Newline();
|
||||
#endif
|
||||
|
||||
#ifdef __LINUX__
|
||||
|
@ -1006,7 +1006,7 @@ static void __concall ConsoleToFile_Newline()
|
|||
static void __concall ConsoleToFile_DoWrite( const wxString& fmt )
|
||||
{
|
||||
#ifdef __LINUX__
|
||||
if (g_Conf->EmuOptions.ConsoleToStdio) ConsoleWriter_Stdout.WriteRaw(fmt);
|
||||
if ((g_Conf) && (g_Conf->EmuOptions.ConsoleToStdio)) ConsoleWriter_Stdout.WriteRaw(fmt);
|
||||
#endif
|
||||
|
||||
px_fputs( emuLog, fmt.ToUTF8() );
|
||||
|
|
Loading…
Reference in New Issue