Changeset 24995

Timestamp:
Mar 3, 2021, 4:13:47 PM (3 years ago)
Author:
Stan
Message:

Enable support for powerpc64 systems. New problems with NVTT will be addressed in another diff.

Patch by: @tpearson-raptor
Comments by: @q66

Refs: https://github.com/void-linux/void-packages/blob/master/srcpkgs/0ad/patches/ppc64.patch

Differential Revision: https://code.wildfiregames.com/D1619

Location:
ps/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • ps/trunk/binaries/data/mods/public/gui/credits/texts/programming.json

    r24949 r24995  
    259259                { "nick": "triumvir", "name": "Corin Schedler" },
    260260                { "nick": "trompetin17", "name": "Juan Guillermo" },
     261
    261262                { "nick": "user1", "name": "A. C." },
    262263                { "nick": "usey11" },
  • ps/trunk/build/premake/premake5.lua

    r24728 r24995  
    8888        elseif string.find(machine, "e2k") == 1 then
    8989            arch = "e2k"
     90
     91
    9092        else
    9193            print("WARNING: Cannot determine architecture from GCC, assuming x86")
     
    866868    elseif arch == "e2k" then
    867869        table.insert(source_dirs, "lib/sysdep/arch/e2k");
     870
     871
    868872    end
    869873
  • ps/trunk/source/lib/alignment.h

    r21480 r24995  
    1 /* Copyright (C) 2018 Wildfire Games.
     1/* Copyright (C) 20 Wildfire Games.
    22 *
    33 * Permission is hereby granted, free of charge, to any person obtaining
     
    8181//
    8282
     83
     84
     85
     86
     87
     88
     89
     90
     91
     92
    8393static const size_t g_PageSize = 4 * 1024;  // 4 KB
     94
    8495static const size_t g_LargePageSize = 2 * 1024 * 1024;  // 2 MB
    8596
  • ps/trunk/source/lib/byte_order.h

    r24490 r24995  
    1 /* Copyright (C) 2020 Wildfire Games.
     1/* Copyright (C) 202 Wildfire Games.
    22 *
    33 * Permission is hereby granted, free of charge, to any person obtaining
     
    3434# define LITTLE_ENDIAN 0x4321
    3535# define BIG_ENDIAN    0x1234
    36 # if ARCH_IA32 || ARCH_IA64 || ARCH_AMD64 || ARCH_ALPHA || ARCH_ARM || ARCH_AARCH64 || ARCH_MIPS || ARCH_E2K || defined(__LITTLE_ENDIAN__)
     36# if ARCH_IA32 || ARCH_IA64 || ARCH_AMD64 || ARCH_ALPHA || ARCH_ARM || ARCH_AARCH64 || ARCH_MIPS || ARCH_E2K || defined(__LITTLE_ENDIAN__)
    3737#  define BYTE_ORDER LITTLE_ENDIAN
    3838# else
  • ps/trunk/source/lib/sysdep/arch.h

    r24490 r24995  
    1 /* Copyright (C) 2020 Wildfire Games.
     1/* Copyright (C) 202 Wildfire Games.
    22 *
    33 * Permission is hereby granted, free of charge, to any person obtaining
     
    6565# define ARCH_AARCH64 0
    6666#endif
     67
     68
     69
     70
     71
     72
    6773// .. MIPS
    6874#if defined(__MIPS__) || defined(__mips__) || defined(__mips)
     
    7985
    8086// ensure exactly one architecture has been detected
    81 #if (ARCH_IA32+ARCH_IA64+ARCH_AMD64+ARCH_ALPHA+ARCH_ARM+ARCH_AARCH64+ARCH_MIPS+ARCH_E2K) != 1
     87#if (ARCH_IA32+ARCH_IA64+ARCH_AMD64+ARCH_ALPHA+ARCH_ARM+ARCH_AARCH64+ARCH_MIPS+ARCH_E2K) != 1
    8288# error "architecture not correctly detected (either none or multiple ARCH_* defined)"
    8389#endif
  • ps/trunk/source/ps/GameSetup/HWDetect.cpp

    r24969 r24995  
    125125    scriptInterface.SetProperty(settings, "arch_aarch64", ARCH_AARCH64);
    126126    scriptInterface.SetProperty(settings, "arch_e2k", ARCH_E2K);
     127
    127128
    128129#ifdef NDEBUG
Note: See TracChangeset for help on using the changeset viewer.