search for: setpc

Displaying 2 results from an estimated 2 matches for "setpc".

Did you mean: setcc
2012 Oct 04
2
[LLVMdev] Problems of manipulating GEP for struct type
...;); fprintf(stderr,"reach stderr\n"); } so I am almost sure that the segmentation fault is derived from storeInst. the structure struct.ThreadContext in LLVM IR corresponds to C struct struct ThreadContext { int id; int r[32]; void init(); void setsp(int); void setpc(int); }; The function prototype typedef uint32_t (*func)(struct ThreadContext* ); func = jit->runJITOnFunction(...); then execute the function by func(&ctx); // ctx is defined to be " struct ThreadContext ctx;" My execution result press any key reach reach stderr press an...
2012 Oct 04
0
[LLVMdev] Problems of manipulating GEP for struct type
...re that the segmentation fault is derived from storeInst. > > > > the structure struct.ThreadContext in LLVM IR corresponds to C struct > > struct ThreadContext > { > int id; > int r[32]; > > > void init(); > void setsp(int); > void setpc(int); > }; > > > The function prototype > typedef uint32_t (*func)(struct ThreadContext* ); > > func = jit->runJITOnFunction(...); > > then execute the function by > > func(&ctx); // ctx is defined to be " struct ThreadContext ctx;" > > > &...