-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvex-r3206.patch
138 lines (129 loc) · 4.37 KB
/
vex-r3206.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
Index: Makefile-gcc
===================================================================
--- Makefile-gcc (revision 3206)
+++ Makefile-gcc (working copy)
@@ -12,6 +12,7 @@
pub/libvex_guest_s390x.h \
pub/libvex_s390x_common.h \
pub/libvex_guest_mips32.h \
+ pub/libvex_guest_tilegx.h \
pub/libvex_guest_offsets.h
PRIV_HEADERS = priv/host_x86_defs.h \
@@ -20,6 +21,7 @@
priv/host_ppc_defs.h \
priv/host_s390_defs.h \
priv/host_mips_defs.h \
+ priv/host_tilegx_defs.h \
priv/host_generic_maddf.h \
priv/host_generic_regs.h \
priv/host_generic_simd64.h \
@@ -34,8 +36,10 @@
priv/guest_arm_defs.h \
priv/guest_ppc_defs.h \
priv/guest_mips_defs.h \
+ priv/guest_tilegx_defs.h \
priv/s390_disasm.h \
priv/s390_defs.h \
+ priv/tilegx_disasm.h \
priv/ir_match.h \
priv/ir_opt.h
@@ -43,10 +47,11 @@
priv/ir_match.o \
priv/ir_opt.o \
priv/ir_inject.o \
- priv/main_main.o \
+ priv/multiarch_main_main.o \
priv/main_globals.o \
priv/main_util.o \
priv/s390_disasm.o \
+ priv/tilegx_disasm.o \
priv/host_x86_defs.o \
priv/host_amd64_defs.o \
priv/host_arm_defs.o \
@@ -54,6 +59,7 @@
priv/host_ppc_defs.o \
priv/host_s390_defs.o \
priv/host_mips_defs.o \
+ priv/host_tilegx_defs.o \
priv/host_x86_isel.o \
priv/host_amd64_isel.o \
priv/host_arm_isel.o \
@@ -61,6 +67,7 @@
priv/host_ppc_isel.o \
priv/host_s390_isel.o \
priv/host_mips_isel.o \
+ priv/host_tilegx_isel.o \
priv/host_generic_maddf.o \
priv/host_generic_regs.o \
priv/host_generic_simd64.o \
@@ -76,6 +83,7 @@
priv/guest_ppc_helpers.o \
priv/guest_s390_helpers.o \
priv/guest_mips_helpers.o \
+ priv/guest_tilegx_helpers.o \
priv/guest_x86_toIR.o \
priv/guest_amd64_toIR.o \
priv/guest_arm_toIR.o \
@@ -82,7 +90,8 @@
priv/guest_arm64_toIR.o \
priv/guest_ppc_toIR.o \
priv/guest_s390_toIR.o \
- priv/guest_mips_toIR.o
+ priv/guest_mips_toIR.o \
+ priv/guest_tilegx_toIR.o
PUB_INCLUDES = -Ipub
@@ -119,10 +128,6 @@
# (the above are for icc 8.0 -- 8.0.0.55 I think)
# 186: pointless comparison of unsigned integer with zero
-# kludge: stops V biarch builds screwing up at -j 2 or above
-# The Right fix is to autoconf/automake-ise vex.
-.NOTPARALLEL:
-
all: vex
# Empty, needed for Valgrind
@@ -254,6 +259,10 @@
$(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/ir_opt.o \
-c priv/ir_opt.c
+priv/multiarch_main_main.o: $(ALL_HEADERS) priv/multiarch_main_main.c
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/multiarch_main_main.o \
+ -c priv/multiarch_main_main.c
+
priv/main_main.o: $(ALL_HEADERS) priv/main_main.c
$(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/main_main.o \
-c priv/main_main.c
@@ -294,6 +303,10 @@
$(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/host_mips_defs.o \
-c priv/host_mips_defs.c
+priv/host_tilegx_defs.o: $(ALL_HEADERS) priv/host_tilegx_defs.c
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/host_tilegx_defs.o \
+ -c priv/host_tilegx_defs.c
+
priv/host_x86_isel.o: $(ALL_HEADERS) priv/host_x86_isel.c
$(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/host_x86_isel.o \
-c priv/host_x86_isel.c
@@ -322,6 +335,10 @@
$(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/host_mips_isel.o \
-c priv/host_mips_isel.c
+priv/host_tilegx_isel.o: $(ALL_HEADERS) priv/host_tilegx_isel.c
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/host_tilegx_isel.o \
+ -c priv/host_tilegx_isel.c
+
priv/host_generic_maddf.o: $(ALL_HEADERS) priv/host_generic_maddf.c
$(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/host_generic_maddf.o \
-c priv/host_generic_maddf.c
@@ -413,3 +430,15 @@
priv/guest_mips_toIR.o: $(ALL_HEADERS) priv/guest_mips_toIR.c
$(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/guest_mips_toIR.o \
-c priv/guest_mips_toIR.c
+
+priv/tilegx_disasm.o: $(ALL_HEADERS) priv/tilegx_disasm.c
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/tilegx_disasm.o \
+ -c priv/tilegx_disasm.c
+
+priv/guest_tilegx_helpers.o: $(ALL_HEADERS) priv/guest_tilegx_helpers.c
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/guest_tilegx_helpers.o \
+ -c priv/guest_tilegx_helpers.c
+
+priv/guest_tilegx_toIR.o: $(ALL_HEADERS) priv/guest_tilegx_toIR.c
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/guest_tilegx_toIR.o \
+ -c priv/guest_tilegx_toIR.c