File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ struct shadow_stack_block {
46
46
47
47
int index ;
48
48
target_ulong buf [SHADOW_BK_SIZE ];
49
-
49
+
50
50
struct shadow_stack_block * next ;
51
51
52
52
};
@@ -87,6 +87,17 @@ extern __thread struct shadow_stack qasan_shadow_stack;
87
87
#define BP_GET (env ) ((env)->active_tc.gpr[29])
88
88
#define SP_GET (env ) ((env)->active_tc.gpr[30])
89
89
90
+ #elif defined(TARGET_PPC )
91
+
92
+ #define PC_GET (env ) ((env)->nip)
93
+ /*
94
+ * PPC doesn't really have a frame pointer since stack frames are built into a
95
+ * linked list. The BP is used only for display purposes in any case, so we will
96
+ * just use the SP here.
97
+ */
98
+ #define BP_GET (env ) ((env)->gpr[1])
99
+ #define SP_GET (env ) ((env)->gpr[1])
100
+
90
101
#else
91
102
//#error "Target not supported by asan-giovese"
92
103
#define DO_NOT_USE_QASAN 1
You can’t perform that action at this time.
0 commit comments