tests,cachetest,loader: fix pc-relative addressing for global array
* The original code is not PIC, since it accesses a gloabl array. If we copy the code to somewhere else, it cannot access that global array any longer. To fix this, we pass the global array as function argument to make the code PIC. * Now NOOP can pass the loader test with fence.i.
Showing
想要评论请 注册 或 登录