mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-19 00:13:33 +00:00
emulators/aranym: Fix build on armv7
PR: 266816
This commit is contained in:
parent
0f8625d292
commit
5701f4ab6e
74
emulators/aranym/files/patch-src_uae__cpu_m68k.h
Normal file
74
emulators/aranym/files/patch-src_uae__cpu_m68k.h
Normal file
@ -0,0 +1,74 @@
|
||||
--- src/uae_cpu/m68k.h.orig 2022-10-04 08:41:56 UTC
|
||||
+++ src/uae_cpu/m68k.h
|
||||
@@ -561,7 +561,7 @@ static inline int cctrue(int cc)
|
||||
"mrs %[nzcv],cpsr\n\t" \
|
||||
"bic %[nzcv],#0x30000000\n\t" \
|
||||
: [nzcv] "=r" (regflags.nzcv) \
|
||||
- : [rv] "0" (v) \
|
||||
+ : [rv] "0" ((uint32)v) \
|
||||
: "cc"); \
|
||||
}while(0)
|
||||
|
||||
@@ -571,7 +571,7 @@ static inline int cctrue(int cc)
|
||||
"mrs %[nzcv],cpsr\n\t" \
|
||||
"bic %[nzcv],#0x30000000\n\t" \
|
||||
: [nzcv] "=r" (regflags.nzcv) \
|
||||
- : [rv] "0" (v) \
|
||||
+ : [rv] "0" ((uint32)v) \
|
||||
: "cc"); \
|
||||
}while(0)
|
||||
|
||||
@@ -581,7 +581,7 @@ static inline int cctrue(int cc)
|
||||
"adds %[rd],%[rd],%[rs]\n\t" \
|
||||
"mrs %[nzcv],cpsr\n\t" \
|
||||
: [nzcv] "=r" (regflags.nzcv), [rv] "=r" (v) \
|
||||
- : [rs] "ri" (s), [rd] "1" (d) \
|
||||
+ : [rs] "ri" (s), [rd] "1" ((uint32)d) \
|
||||
: "cc"); \
|
||||
COPY_CARRY(); \
|
||||
} while(0)
|
||||
@@ -592,7 +592,7 @@ static inline int cctrue(int cc)
|
||||
"adds %[rd],%[rd],%[rs]\n\t" \
|
||||
"mrs %[nzcv],cpsr\n\t" \
|
||||
: [nzcv] "=r" (regflags.nzcv), [rv] "=r" (v) \
|
||||
- : [rs] "ri" (s), [rd] "1" (d) \
|
||||
+ : [rs] "ri" (s), [rd] "1" ((uint32)d) \
|
||||
: "cc"); \
|
||||
COPY_CARRY(); \
|
||||
} while(0)
|
||||
@@ -604,7 +604,7 @@ static inline int cctrue(int cc)
|
||||
"mrs %[nzcv],cpsr\n\t" \
|
||||
"eor %[nzcv],#0x20000000\n\t" \
|
||||
: [nzcv] "=r" (regflags.nzcv), [rv] "=r" (v) \
|
||||
- : [rs] "ri" (s), [rd] "1" (d) \
|
||||
+ : [rs] "ri" (s), [rd] "1" ((uint32)d) \
|
||||
: "cc"); \
|
||||
COPY_CARRY(); \
|
||||
} while(0)
|
||||
@@ -616,7 +616,7 @@ static inline int cctrue(int cc)
|
||||
"mrs %[nzcv],cpsr\n\t" \
|
||||
"eor %[nzcv],#0x20000000\n\t" \
|
||||
: [nzcv] "=r" (regflags.nzcv), [rv] "=r" (v) \
|
||||
- : [rs] "ri" (s), [rd] "1" (d) \
|
||||
+ : [rs] "ri" (s), [rd] "1" ((uint32)d) \
|
||||
: "cc"); \
|
||||
COPY_CARRY(); \
|
||||
} while(0)
|
||||
@@ -628,7 +628,7 @@ static inline int cctrue(int cc)
|
||||
"mrs %[nzcv],cpsr\n\t" \
|
||||
"eor %[nzcv],#0x20000000\n\t" \
|
||||
: [nzcv] "=r" (regflags.nzcv) \
|
||||
- : [rs] "ri" (s), [rd] "0" (d) \
|
||||
+ : [rs] "ri" (s), [rd] "0" ((uint32)d) \
|
||||
: "cc"); \
|
||||
} while(0)
|
||||
|
||||
@@ -639,7 +639,7 @@ static inline int cctrue(int cc)
|
||||
"mrs %[nzcv],cpsr\n\t" \
|
||||
"eor %[nzcv],#0x20000000\n\t" \
|
||||
: [nzcv] "=r" (regflags.nzcv) \
|
||||
- : [rs] "ri" (s), [rd] "0" (d) \
|
||||
+ : [rs] "ri" (s), [rd] "0" ((uint32)d) \
|
||||
: "cc"); \
|
||||
} while(0)
|
||||
|
Loading…
Reference in New Issue
Block a user