Skip to content

Commit

Permalink
Merge branch 'stenzek:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
yeager authored Dec 31, 2024
2 parents 864d74c + d69d254 commit e898a6c
Show file tree
Hide file tree
Showing 30 changed files with 1,209 additions and 308 deletions.
23 changes: 14 additions & 9 deletions CMakeModules/DuckStationUtils.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -92,17 +92,22 @@ function(detect_architecture)
elseif("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "riscv64")
message(STATUS "Building RISC-V 64 binaries.")
set(CPU_ARCH_RISCV64 TRUE PARENT_SCOPE)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -finline-atomics" PARENT_SCOPE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -finline-atomics" PARENT_SCOPE)

# Still need this, apparently.
link_libraries("-latomic")
# Don't want function calls for atomics.
if(COMPILER_GCC)
set(EXTRA_CFLAGS "${EXTRA_CFLAGS} -finline-atomics")

# Still need this, apparently.
link_libraries("-latomic")
endif()

if(NOT "${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
# Frame pointers generate an annoying amount of code on leaf functions.
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fomit-frame-pointer" PARENT_SCOPE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fomit-frame-pointer" PARENT_SCOPE)
set(EXTRA_CFLAGS "${EXTRA_CFLAGS} -fomit-frame-pointer")
endif()

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS}" PARENT_SCOPE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${EXTRA_CFLAGS}" PARENT_SCOPE)
else()
message(FATAL_ERROR "Unknown system processor: ${CMAKE_SYSTEM_PROCESSOR}")
endif()
Expand All @@ -121,8 +126,8 @@ function(detect_page_size)
return()
endif()

if(HOST_MIN_PAGE_SIZE OR HOST_MAX_PAGE_SIZE)
if(NOT HOST_MIN_PAGE_SIZE OR NOT HOST_MAX_PAGE_SIZE)
if(DEFINED HOST_MIN_PAGE_SIZE OR DEFINED HOST_MAX_PAGE_SIZE)
if(NOT DEFINED HOST_MIN_PAGE_SIZE OR NOT DEFINED HOST_MAX_PAGE_SIZE)
message(FATAL_ERROR "Both HOST_MIN_PAGE_SIZE and HOST_MAX_PAGE_SIZE must be defined.")
endif()
return()
Expand Down Expand Up @@ -172,7 +177,7 @@ function(detect_cache_line_size)
endif()

if(CMAKE_CROSSCOMPILING)
message(WARNING "Cross-compiling and can't determine page size, assuming default.")
message(WARNING "Cross-compiling and can't determine cache line size, assuming default.")
return()
endif()

Expand Down
3 changes: 3 additions & 0 deletions data/resources/gamedb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66894,6 +66894,9 @@ SLPM-86031:
- DigitalController
codes:
- HASH-4B6CD9BD936C3CCE
traits:
- DisablePGXP # 2D, PGXP is not beneficial.
- DisableWidescreen # Apparently issues with sprites.
metadata:
publisher: "Konami"
developer: "Konami Computer Entertainment Tokyo, Inc"
Expand Down
Loading

0 comments on commit e898a6c

Please sign in to comment.