Skip to content

Commit

Permalink
Revert "Goodbye PowerPC, you can always be resurrected when the time …
Browse files Browse the repository at this point in the history
…comes"

This reverts commit a54e0cf.
  • Loading branch information
aliaspider committed May 9, 2018
1 parent e98e9f7 commit 3eb7621
Show file tree
Hide file tree
Showing 20 changed files with 6,741 additions and 3 deletions.
31 changes: 30 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ if(CMAKE_SYSTEM_PROCESSOR)
set(X86 ON)
elseif(${CMAKE_SYSTEM_PROCESSOR} MATCHES "^mips")
set(MIPS ON)
elseif(${CMAKE_SYSTEM_PROCESSOR} MATCHES "^ppc" OR ${CMAKE_SYSTEM_PROCESSOR} MATCHES "^powerpc")
set(PPC ON)
else()
message("Unknown CMAKE_SYSTEM_PROCESSOR: ${CMAKE_SYSTEM_PROCESSOR}")
endif()
Expand Down Expand Up @@ -227,6 +229,9 @@ endif()
if(ARM64)
message("Generating for ARMv8, ${CMAKE_BUILD_TYPE}")
endif()
if(PPC)
message("Generating for PowerPC, ${CMAKE_BUILD_TYPE}")
endif()
if(NOT MSVC)
if (ANDROID)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11")
Expand Down Expand Up @@ -359,7 +364,13 @@ set(CommonMIPS
Common/MipsEmitter.h)
source_group(MIPS FILES ${CommonMIPS})

if(NOT (X86 OR ARM OR MIPS))
set(CommonPPC
Common/FakeCPUDetect.cpp
Common/ppcEmitter.cpp
Common/ppcEmitter.h)
source_group(PPC FILES ${CommonPPC})

if(NOT (X86 OR ARM OR MIPS OR PPC))
set(CommonFake
Common/FakeCPUDetect.cpp
Common/FakeEmitter.h)
Expand Down Expand Up @@ -392,6 +403,7 @@ add_library(Common STATIC
${CommonARM}
${CommonARM64}
${CommonMIPS}
${CommonPPC}
${CommonFake}
${CommonWindows}
${CommonVulkan}
Expand Down Expand Up @@ -1220,6 +1232,23 @@ list(APPEND CoreExtra
GPU/Software/SamplerX86.cpp
)

list(APPEND CoreExtra
Core/MIPS/PPC/PpcAsm.cpp
Core/MIPS/PPC/PpcCompAlu.cpp
Core/MIPS/PPC/PpcCompBranch.cpp
Core/MIPS/PPC/PpcCompFpu.cpp
Core/MIPS/PPC/PpcCompLoadStore.cpp
Core/MIPS/PPC/PpcCompReplace.cpp
Core/MIPS/PPC/PpcCompVFPU.cpp
Core/MIPS/PPC/PpcJit.cpp
Core/MIPS/PPC/PpcJit.h
Core/MIPS/PPC/PpcRegCache.cpp
Core/MIPS/PPC/PpcRegCache.h
Core/MIPS/PPC/PpcRegCacheFPU.cpp
Core/MIPS/PPC/PpcRegCacheFPU.h
Core/MIPS/PPC/PpcRegCacheVPU.cpp
Core/MIPS/PPC/PpcRegCacheVPU.h)

list(APPEND CoreExtra
Core/MIPS/MIPS/MipsJit.cpp
Core/MIPS/MIPS/MipsJit.h
Expand Down
Loading

0 comments on commit 3eb7621

Please sign in to comment.