Skip to content

Commit

Permalink
build: drop unsupported architectures
Browse files Browse the repository at this point in the history
  • Loading branch information
scribam committed Dec 29, 2024
1 parent a067917 commit 9a13bda
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 18 deletions.
10 changes: 2 additions & 8 deletions core/build.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,8 @@
//HOST_CPU
#define CPU_X86 0x20000001
#define CPU_ARM 0x20000002
#define CPU_MIPS 0x20000003
#define CPU_ARM64 0x20000003
#define CPU_X64 0x20000004
#define CPU_GENERIC 0x20000005 //used for pnacl, emscripten, etc
#define CPU_PPC 0x20000006
#define CPU_PPC64 0x20000007
#define CPU_ARM64 0x20000008

//FEAT_SHREC, FEAT_AREC, FEAT_DSPREC
#define DYNAREC_NONE 0x40000001
Expand All @@ -36,10 +32,8 @@
#define HOST_CPU CPU_ARM
#elif defined(__aarch64__) || defined(_M_ARM64)
#define HOST_CPU CPU_ARM64
#elif defined(__mips__)
#define HOST_CPU CPU_MIPS
#else
#define HOST_CPU CPU_GENERIC
#error Unsupported architecture
#endif

#if defined(TARGET_IPHONE) && !defined(__aarch64__)
Expand Down
4 changes: 0 additions & 4 deletions core/linux/context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,6 @@ static void context_segfault(host_context_t* hostctx, void* segfault_ctx)
#else
#error "Unsupported OS"
#endif
#elif HOST_CPU == CPU_MIPS
bicopy<ToSegfault>(hostctx->pc, MCTX(.pc));
#elif HOST_CPU == CPU_GENERIC
//nothing!
#else
#error Unsupported HOST_CPU
#endif
Expand Down
2 changes: 0 additions & 2 deletions core/oslib/host_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
#include "types.h"

struct host_context_t {
#if HOST_CPU != CPU_GENERIC
uintptr_t pc;
#endif

#if HOST_CPU == CPU_X86
u32 eax;
Expand Down
4 changes: 0 additions & 4 deletions core/ui/gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2899,12 +2899,8 @@ static void gui_settings_about()
"x86"
#elif HOST_CPU == CPU_ARM
"ARM"
#elif HOST_CPU == CPU_MIPS
"MIPS"
#elif HOST_CPU == CPU_X64
"x86/64"
#elif HOST_CPU == CPU_GENERIC
"Generic"
#elif HOST_CPU == CPU_ARM64
"ARM64"
#else
Expand Down

0 comments on commit 9a13bda

Please sign in to comment.