Restore support for AMD K8

This commit is contained in:
Justine Tunney 2024-07-24 08:59:29 -07:00
parent e398f3887c
commit fbc4b03d4c
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
3 changed files with 3 additions and 9 deletions

View file

@ -244,7 +244,7 @@ server. You're welcome to join us! <https://discord.gg/FwAVVu7eJ4>
| Platform | Min Version | Circa | | Platform | Min Version | Circa |
| :--- | ---: | ---: | | :--- | ---: | ---: |
| AMD | K8 Venus | 2005 | | AMD | K8 | 2003 |
| Intel | Core | 2006 | | Intel | Core | 2006 |
| Linux | 2.6.18 | 2007 | | Linux | 2.6.18 | 2007 |
| Windows | 8 [1] | 2012 | | Windows | 8 [1] | 2012 |

View file

@ -14,7 +14,6 @@ ENABLE_FTRACE = 1
CONFIG_OFLAGS ?= -g -ggdb CONFIG_OFLAGS ?= -g -ggdb
CONFIG_CCFLAGS += -O2 $(BACKTRACES) CONFIG_CCFLAGS += -O2 $(BACKTRACES)
CONFIG_CPPFLAGS += -DSYSDEBUG CONFIG_CPPFLAGS += -DSYSDEBUG
TARGET_ARCH ?= -msse3
endif endif
ifeq ($(MODE), x86_64) ifeq ($(MODE), x86_64)
ENABLE_FTRACE = 1 ENABLE_FTRACE = 1
@ -64,7 +63,6 @@ ENABLE_FTRACE = 1
CONFIG_CCFLAGS += $(BACKTRACES) -O CONFIG_CCFLAGS += $(BACKTRACES) -O
CONFIG_CPPFLAGS += -DSYSDEBUG -DDWARFLESS CONFIG_CPPFLAGS += -DSYSDEBUG -DDWARFLESS
CONFIG_LDFLAGS += -S CONFIG_LDFLAGS += -S
TARGET_ARCH ?= -msse3
endif endif
# Optimized Mode # Optimized Mode
@ -123,7 +121,6 @@ endif
ifeq ($(MODE), rel) ifeq ($(MODE), rel)
CONFIG_CPPFLAGS += -DNDEBUG -DDWARFLESS CONFIG_CPPFLAGS += -DNDEBUG -DDWARFLESS
CONFIG_CCFLAGS += $(BACKTRACES) -O2 CONFIG_CCFLAGS += $(BACKTRACES) -O2
TARGET_ARCH ?= -msse3
PYFLAGS += -O1 PYFLAGS += -O1
endif endif
@ -142,7 +139,6 @@ CONFIG_OFLAGS ?= -g -ggdb
CONFIG_CPPFLAGS += -DMODE_DBG -D__SANITIZE_UNDEFINED__ CONFIG_CPPFLAGS += -DMODE_DBG -D__SANITIZE_UNDEFINED__
CONFIG_CCFLAGS += $(BACKTRACES) -DSYSDEBUG -O0 -fno-inline CONFIG_CCFLAGS += $(BACKTRACES) -DSYSDEBUG -O0 -fno-inline
CONFIG_COPTS += -fsanitize=undefined CONFIG_COPTS += -fsanitize=undefined
TARGET_ARCH ?= -msse3
OVERRIDE_CCFLAGS += -fno-pie OVERRIDE_CCFLAGS += -fno-pie
QUOTA ?= -C64 -L300 QUOTA ?= -C64 -L300
endif endif
@ -170,7 +166,6 @@ ENABLE_FTRACE = 1
CONFIG_OFLAGS ?= -g -ggdb CONFIG_OFLAGS ?= -g -ggdb
CONFIG_CCFLAGS += $(BACKTRACES) -O2 CONFIG_CCFLAGS += $(BACKTRACES) -O2
CONFIG_CPPFLAGS += -DSYSDEBUG -DSUPPORT_VECTOR=121 CONFIG_CPPFLAGS += -DSYSDEBUG -DSUPPORT_VECTOR=121
TARGET_ARCH ?= -msse3
endif endif
# Tiny Mode # Tiny Mode
@ -388,7 +383,6 @@ ENABLE_FTRACE = 1
CONFIG_COPTS += -mlong-double-64 CONFIG_COPTS += -mlong-double-64
CONFIG_CCFLAGS += $(BACKTRACES) -O2 CONFIG_CCFLAGS += $(BACKTRACES) -O2
CONFIG_CPPFLAGS += -DSYSDEBUG -DNOX87 CONFIG_CPPFLAGS += -DSYSDEBUG -DNOX87
TARGET_ARCH ?= -msse3
endif endif
# LLVM Mode # LLVM Mode
@ -401,7 +395,6 @@ endif
# #
ifeq ($(MODE), llvm) ifeq ($(MODE), llvm)
.STRICT = 0 .STRICT = 0
TARGET_ARCH ?= -msse3
CONFIG_CCFLAGS += $(BACKTRACES) -DSYSDEBUG -O2 CONFIG_CCFLAGS += $(BACKTRACES) -DSYSDEBUG -O2
AS = clang AS = clang
CC = clang CC = clang
@ -444,7 +437,6 @@ ifeq ($(MODE), ansi)
CONFIG_CFLAGS += -std=c11 CONFIG_CFLAGS += -std=c11
#CONFIG_CPPFLAGS += -ansi #CONFIG_CPPFLAGS += -ansi
CONFIG_CXXFLAGS += -std=c++11 CONFIG_CXXFLAGS += -std=c++11
TARGET_ARCH ?= -msse3
endif endif
ifneq ($(ENABLE_FTRACE),) ifneq ($(ENABLE_FTRACE),)

View file

@ -36,6 +36,8 @@
"/sys/devices/system/cpu/cpu*/cpufreq/scaling_governor\n" "/sys/devices/system/cpu/cpu*/cpufreq/scaling_governor\n"
void __warn_if_powersave(void) { void __warn_if_powersave(void) {
if (1)
return;
int e, fd; int e, fd;
char buf[16] = {0}; char buf[16] = {0};
if (IsLinux()) { if (IsLinux()) {