|
@@ -1046,8 +1046,6 @@ struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *fp)
|
|
|
*/
|
|
|
bpf_jit_dump(flen, proglen, pass, code_base);
|
|
|
|
|
|
- bpf_flush_icache(bpf_hdr, image + alloclen);
|
|
|
-
|
|
|
#ifdef PPC64_ELF_ABI_v1
|
|
|
/* Function descriptor nastiness: Address + TOC */
|
|
|
((u64 *)image)[0] = (u64)code_base;
|
|
@@ -1057,6 +1055,8 @@ struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *fp)
|
|
|
fp->bpf_func = (void *)image;
|
|
|
fp->jited = 1;
|
|
|
|
|
|
+ bpf_flush_icache(bpf_hdr, (u8 *)bpf_hdr + (bpf_hdr->pages * PAGE_SIZE));
|
|
|
+
|
|
|
out:
|
|
|
kfree(addrs);
|
|
|
|