SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
19
emulators/desmume/patches/patch-src_MMU_timing_h
Normal file
19
emulators/desmume/patches/patch-src_MMU_timing_h
Normal file
|
@ -0,0 +1,19 @@
|
|||
ports-gcc fix for:
|
||||
error: enumerator value for 'BLOCKMASK' is not an integer constant
|
||||
From:
|
||||
https://sourceforge.net/p/desmume/bugs/1570/
|
||||
|
||||
Index: src/MMU_timing.h
|
||||
--- src/MMU_timing.h.orig
|
||||
+++ src/MMU_timing.h
|
||||
@@ -155,8 +155,8 @@ class CacheController (private)
|
||||
enum { ASSOCIATIVITY = 1 << ASSOCIATIVESHIFT };
|
||||
enum { BLOCKSIZE = 1 << BLOCKSIZESHIFT };
|
||||
enum { TAGSHIFT = SIZESHIFT - ASSOCIATIVESHIFT };
|
||||
- enum { TAGMASK = (u32)(~0 << TAGSHIFT) };
|
||||
- enum { BLOCKMASK = ((u32)~0 >> (32 - TAGSHIFT)) & (u32)(~0 << BLOCKSIZESHIFT) };
|
||||
+ enum { TAGMASK = (u32)(~0U << TAGSHIFT) };
|
||||
+ enum { BLOCKMASK = ((u32)~0U >> (32 - TAGSHIFT)) & (u32)(~0U << BLOCKSIZESHIFT) };
|
||||
enum { WORDSIZE = sizeof(u32) };
|
||||
enum { WORDSPERBLOCK = (1 << BLOCKSIZESHIFT) / WORDSIZE };
|
||||
enum { DATAPERWORD = WORDSIZE * ASSOCIATIVITY };
|
Loading…
Add table
Add a link
Reference in a new issue