]> git.pld-linux.org Git - packages/qemu.git/blame - qemu-capstone.patch
- disable xen-emu on x32, updated way to change CONFIG_USB_SMARTCARD option
[packages/qemu.git] / qemu-capstone.patch
CommitLineData
cc59f32b
JB
1Workaround symbol conflict with capstone/tricore.h
2--- qemu-8.0.5/target/tricore/cpu.h.orig 2023-09-21 22:19:34.000000000 +0200
3+++ qemu-8.0.5/target/tricore/cpu.h 2024-04-27 21:25:15.112539225 +0200
4@@ -258,7 +258,7 @@ enum tricore_features {
5 TRICORE_FEATURE_161,
6 };
7
8-static inline int tricore_feature(CPUTriCoreState *env, int feature)
9+static inline int qemu_tricore_feature(CPUTriCoreState *env, int feature)
10 {
11 return (env->features & (1ULL << feature)) != 0;
12 }
13--- qemu-8.0.5/target/tricore/op_helper.c.orig 2023-09-21 22:19:34.000000000 +0200
14+++ qemu-8.0.5/target/tricore/op_helper.c 2024-04-27 21:25:37.975748698 +0200
15@@ -2528,7 +2528,7 @@ void helper_ret(CPUTriCoreState *env)
16 /* PCXI = new_PCXI; */
17 env->PCXI = new_PCXI;
18
19- if (tricore_feature(env, TRICORE_FEATURE_13)) {
20+ if (qemu_tricore_feature(env, TRICORE_FEATURE_13)) {
21 /* PSW = new_PSW */
22 psw_write(env, new_PSW);
23 } else {
24@@ -2639,7 +2639,7 @@ void helper_rfm(CPUTriCoreState *env)
25 env->gpr_a[10] = cpu_ldl_data(env, env->DCX+8);
26 env->gpr_a[11] = cpu_ldl_data(env, env->DCX+12);
27
28- if (tricore_feature(env, TRICORE_FEATURE_131)) {
29+ if (qemu_tricore_feature(env, TRICORE_FEATURE_131)) {
30 env->DBGTCR = 0;
31 }
32 }
33--- qemu-8.0.5/target/tricore/cpu.c.orig 2023-09-21 22:19:34.000000000 +0200
34+++ qemu-8.0.5/target/tricore/cpu.c 2024-04-27 21:25:52.302337751 +0200
35@@ -103,14 +103,14 @@ static void tricore_cpu_realizefn(Device
36 }
37
38 /* Some features automatically imply others */
39- if (tricore_feature(env, TRICORE_FEATURE_161)) {
40+ if (qemu_tricore_feature(env, TRICORE_FEATURE_161)) {
41 set_feature(env, TRICORE_FEATURE_16);
42 }
43
44- if (tricore_feature(env, TRICORE_FEATURE_16)) {
45+ if (qemu_tricore_feature(env, TRICORE_FEATURE_16)) {
46 set_feature(env, TRICORE_FEATURE_131);
47 }
48- if (tricore_feature(env, TRICORE_FEATURE_131)) {
49+ if (qemu_tricore_feature(env, TRICORE_FEATURE_131)) {
50 set_feature(env, TRICORE_FEATURE_13);
51 }
52 cpu_reset(cs);
This page took 0.06851 seconds and 4 git commands to generate.