Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/emulators/aranym/files/patch-src_uae__cpu_m68k.h
16461 views
1
--- src/uae_cpu/m68k.h.orig 2022-10-04 08:41:56 UTC
2
+++ src/uae_cpu/m68k.h
3
@@ -561,7 +561,7 @@ static inline int cctrue(int cc)
4
"mrs %[nzcv],cpsr\n\t" \
5
"bic %[nzcv],#0x30000000\n\t" \
6
: [nzcv] "=r" (regflags.nzcv) \
7
- : [rv] "0" (v) \
8
+ : [rv] "0" ((uint32)v) \
9
: "cc"); \
10
}while(0)
11
12
@@ -571,7 +571,7 @@ static inline int cctrue(int cc)
13
"mrs %[nzcv],cpsr\n\t" \
14
"bic %[nzcv],#0x30000000\n\t" \
15
: [nzcv] "=r" (regflags.nzcv) \
16
- : [rv] "0" (v) \
17
+ : [rv] "0" ((uint32)v) \
18
: "cc"); \
19
}while(0)
20
21
@@ -581,7 +581,7 @@ static inline int cctrue(int cc)
22
"adds %[rd],%[rd],%[rs]\n\t" \
23
"mrs %[nzcv],cpsr\n\t" \
24
: [nzcv] "=r" (regflags.nzcv), [rv] "=r" (v) \
25
- : [rs] "ri" (s), [rd] "1" (d) \
26
+ : [rs] "ri" (s), [rd] "1" ((uint32)d) \
27
: "cc"); \
28
COPY_CARRY(); \
29
} while(0)
30
@@ -592,7 +592,7 @@ static inline int cctrue(int cc)
31
"adds %[rd],%[rd],%[rs]\n\t" \
32
"mrs %[nzcv],cpsr\n\t" \
33
: [nzcv] "=r" (regflags.nzcv), [rv] "=r" (v) \
34
- : [rs] "ri" (s), [rd] "1" (d) \
35
+ : [rs] "ri" (s), [rd] "1" ((uint32)d) \
36
: "cc"); \
37
COPY_CARRY(); \
38
} while(0)
39
@@ -604,7 +604,7 @@ static inline int cctrue(int cc)
40
"mrs %[nzcv],cpsr\n\t" \
41
"eor %[nzcv],#0x20000000\n\t" \
42
: [nzcv] "=r" (regflags.nzcv), [rv] "=r" (v) \
43
- : [rs] "ri" (s), [rd] "1" (d) \
44
+ : [rs] "ri" (s), [rd] "1" ((uint32)d) \
45
: "cc"); \
46
COPY_CARRY(); \
47
} while(0)
48
@@ -616,7 +616,7 @@ static inline int cctrue(int cc)
49
"mrs %[nzcv],cpsr\n\t" \
50
"eor %[nzcv],#0x20000000\n\t" \
51
: [nzcv] "=r" (regflags.nzcv), [rv] "=r" (v) \
52
- : [rs] "ri" (s), [rd] "1" (d) \
53
+ : [rs] "ri" (s), [rd] "1" ((uint32)d) \
54
: "cc"); \
55
COPY_CARRY(); \
56
} while(0)
57
@@ -628,7 +628,7 @@ static inline int cctrue(int cc)
58
"mrs %[nzcv],cpsr\n\t" \
59
"eor %[nzcv],#0x20000000\n\t" \
60
: [nzcv] "=r" (regflags.nzcv) \
61
- : [rs] "ri" (s), [rd] "0" (d) \
62
+ : [rs] "ri" (s), [rd] "0" ((uint32)d) \
63
: "cc"); \
64
} while(0)
65
66
@@ -639,7 +639,7 @@ static inline int cctrue(int cc)
67
"mrs %[nzcv],cpsr\n\t" \
68
"eor %[nzcv],#0x20000000\n\t" \
69
: [nzcv] "=r" (regflags.nzcv) \
70
- : [rs] "ri" (s), [rd] "0" (d) \
71
+ : [rs] "ri" (s), [rd] "0" ((uint32)d) \
72
: "cc"); \
73
} while(0)
74
75
76