-
Notifications
You must be signed in to change notification settings - Fork 3
Architecture: Implemented SPARC. #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Muz-dev
wants to merge
14
commits into
FWGS:master
Choose a base branch
from
Muz-dev:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
d945ce1
Added SPARC
5ab4a33
I accidently added some stuff
d65dde9
I also made the wscript executable, based on the shebang in the file …
2f3e225
Updated library_suffix.c
19b6363
Updated library_suffix.c
7eed449
fixed format issue
2e512ab
removed cache for nvim
90f3771
reverted mode
6113092
64-bit aswell?
b577282
I hate this cache
9fe832a
oops
5eec32d
tab fix
0af8be8
added endif
54b79a6
tabs...
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -38,27 +38,27 @@ For more information, please refer to <http://unlicense.org/> | |
|
|
||
| //================================================================ | ||
| // | ||
| // OPERATING SYSTEM DEFINES | ||
| // OPERATING SYSTEM DEFINES | ||
| // | ||
| //================================================================ | ||
| #define PLATFORM_WIN32 1 | ||
| #define PLATFORM_LINUX 2 | ||
| #define PLATFORM_FREEBSD 3 | ||
| #define PLATFORM_ANDROID 4 | ||
| #define PLATFORM_APPLE 5 | ||
| #define PLATFORM_NETBSD 6 | ||
| #define PLATFORM_OPENBSD 7 | ||
| #define PLATFORM_WIN32 1 | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yep, it's much worse now. Revert all of this. Only keep your own SPARC related changes. |
||
| #define PLATFORM_LINUX 2 | ||
| #define PLATFORM_FREEBSD 3 | ||
| #define PLATFORM_ANDROID 4 | ||
| #define PLATFORM_APPLE 5 | ||
| #define PLATFORM_NETBSD 6 | ||
| #define PLATFORM_OPENBSD 7 | ||
| #define PLATFORM_EMSCRIPTEN 8 | ||
| #define PLATFORM_DOS4GW 9 | ||
| #define PLATFORM_HAIKU 10 | ||
| #define PLATFORM_SERENITY 11 | ||
| #define PLATFORM_IRIX 12 | ||
| #define PLATFORM_NSWITCH 13 | ||
| #define PLATFORM_PSVITA 14 | ||
| #define PLATFORM_WASI 15 | ||
| #define PLATFORM_SUNOS 16 | ||
| #define PLATFORM_HURD 17 | ||
| #define PLATFORM_PSP 18 | ||
| #define PLATFORM_DOS4GW 9 | ||
| #define PLATFORM_HAIKU 10 | ||
| #define PLATFORM_SERENITY 11 | ||
| #define PLATFORM_IRIX 12 | ||
| #define PLATFORM_NSWITCH 13 | ||
| #define PLATFORM_PSVITA 14 | ||
| #define PLATFORM_WASI 15 | ||
| #define PLATFORM_SUNOS 16 | ||
| #define PLATFORM_HURD 17 | ||
| #define PLATFORM_PSP 18 | ||
|
|
||
| #if XASH_WIN32 | ||
| #define XASH_PLATFORM PLATFORM_WIN32 | ||
|
|
@@ -102,18 +102,19 @@ For more information, please refer to <http://unlicense.org/> | |
|
|
||
| //================================================================ | ||
| // | ||
| // CPU ARCHITECTURE DEFINES | ||
| // CPU ARCHITECTURE DEFINES | ||
| // | ||
| //================================================================ | ||
| #define ARCHITECTURE_X86 1 | ||
| #define ARCHITECTURE_AMD64 2 | ||
| #define ARCHITECTURE_ARM 3 | ||
| #define ARCHITECTURE_MIPS 4 | ||
| #define ARCHITECTURE_JS 6 | ||
| #define ARCHITECTURE_E2K 7 | ||
| #define ARCHITECTURE_RISCV 8 | ||
| #define ARCHITECTURE_PPC 9 | ||
| #define ARCHITECTURE_WASM 10 | ||
| #define ARCHITECTURE_X86 1 | ||
| #define ARCHITECTURE_AMD64 2 | ||
| #define ARCHITECTURE_ARM 3 | ||
| #define ARCHITECTURE_MIPS 4 | ||
| #define ARCHITECTURE_JS 6 | ||
| #define ARCHITECTURE_E2K 7 | ||
| #define ARCHITECTURE_RISCV 8 | ||
| #define ARCHITECTURE_PPC 9 | ||
| #define ARCHITECTURE_WASM 10 | ||
| #define ARCHITECTURE_SPARC 11 | ||
|
|
||
| #if XASH_AMD64 | ||
| #define XASH_ARCHITECTURE ARCHITECTURE_AMD64 | ||
|
|
@@ -133,17 +134,19 @@ For more information, please refer to <http://unlicense.org/> | |
| #define XASH_ARCHITECTURE ARCHITECTURE_PPC | ||
| #elif XASH_WASM | ||
| #define XASH_ARCHITECTURE ARCHITECTURE_WASM | ||
| #elif XASH_SPARC | ||
| #define XASH_ARCHITECTURE ARCHITECTURE_SPARC | ||
| #else | ||
| #error | ||
| #endif | ||
|
|
||
| //================================================================ | ||
| // | ||
| // ENDIANNESS DEFINES | ||
| // ENDIANNESS DEFINES | ||
| // | ||
| //================================================================ | ||
| #define ENDIANNESS_LITTLE 1 | ||
| #define ENDIANNESS_BIG 2 | ||
| #define ENDIANNESS_BIG 2 | ||
|
|
||
| #if XASH_LITTLE_ENDIAN | ||
| #define XASH_ENDIANNESS ENDIANNESS_LITTLE | ||
|
|
@@ -155,17 +158,17 @@ For more information, please refer to <http://unlicense.org/> | |
|
|
||
| //================================================================ | ||
| // | ||
| // APPLICATION BINARY INTERFACE | ||
| // APPLICATION BINARY INTERFACE | ||
| // | ||
| //================================================================ | ||
| #define BIT( n ) ( 1U << ( n )) | ||
| #define BIT( n ) ( 1U << ( n )) | ||
| #define FBitSet( bit_vector, bits ) (( bit_vector ) & ( bits )) | ||
|
|
||
| #define ARCH_ARM_VER_MASK ( BIT( 5 ) - 1 ) | ||
| #define ARCH_ARM_VER_SHIFT 0 | ||
| #define ARCH_ARM_HARDFP BIT( 5 ) | ||
| #define ARCH_ARM_VER_MASK ( BIT( 5 ) - 1 ) | ||
| #define ARCH_ARM_VER_SHIFT 0 | ||
| #define ARCH_ARM_HARDFP BIT( 5 ) | ||
|
|
||
| #define ARCH_RISCV_FP_SOFT 0 | ||
| #define ARCH_RISCV_FP_SOFT 0 | ||
| #define ARCH_RISCV_FP_SINGLE 1 | ||
| #define ARCH_RISCV_FP_DOUBLE 2 | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Useless change.
Really, just uninstall your code editor.