We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4650dc6 commit de28409Copy full SHA for de28409
1 file changed
PowerUtils/ppc_context.h
@@ -105,8 +105,12 @@
105
#define PPC_CALL_FUNC(x) x(ctx, base)
106
#endif
107
108
+#define PPC_MEMORY_SIZE 0x100000000ull
109
+#define PPC_FUNC_TABLE_OFFSET PPC_MEMORY_SIZE
110
+#define PPC_FUNC_TABLE_SIZE 0x200000000ull
111
+
112
#ifndef PPC_CALL_INDIRECT_FUNC
-#define PPC_CALL_INDIRECT_FUNC(x) (*(PPCFunc**)(ctx.fn + uint64_t(x) * 2))(ctx, base)
113
+#define PPC_CALL_INDIRECT_FUNC(x) (*(PPCFunc**)(base + PPC_FUNC_TABLE_OFFSET + (uint64_t(x) * 2)))(ctx, base)
114
115
116
typedef void PPCFunc(struct PPCContext& __restrict__ ctx, uint8_t* base);
@@ -309,7 +313,6 @@ struct PPCContext
309
313
PPCRegister r31;
310
314
311
315
312
- uint8_t* fn;
316
#ifndef PPC_CONFIG_SKIP_LR
317
uint64_t lr;
318
0 commit comments