aboutsummaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-01-31 17:17:10 -0500
committerMike Frysinger <vapier@gentoo.org>2021-01-31 17:19:38 -0500
commitbccec180ce9593ccdf652ce3a625f6e0542ccf78 (patch)
treedb688629a9774c7c84f015fdd4cfa8f14bb7d6ff /sim
parentba2f0de21691c6752daf4b3a6941392ee06a77d6 (diff)
downloadgdb-bccec180ce9593ccdf652ce3a625f6e0542ccf78.zip
gdb-bccec180ce9593ccdf652ce3a625f6e0542ccf78.tar.gz
gdb-bccec180ce9593ccdf652ce3a625f6e0542ccf78.tar.bz2
sim: bpf: fix mainloop extract call
The extract function takes the argbuf, not the scache.
Diffstat (limited to 'sim')
-rw-r--r--sim/bpf/ChangeLog4
-rw-r--r--sim/bpf/mloop.in2
2 files changed, 5 insertions, 1 deletions
diff --git a/sim/bpf/ChangeLog b/sim/bpf/ChangeLog
index dc3db5a..5b6a807 100644
--- a/sim/bpf/ChangeLog
+++ b/sim/bpf/ChangeLog
@@ -1,5 +1,9 @@
2021-01-31 Mike Frysinger <vapier@gentoo.org>
+ * mloop.in (xextract-scache): Call SEM_ARGBUF.
+
+2021-01-31 Mike Frysinger <vapier@gentoo.org>
+
* decode-be.c (bpfbf_ebpfbe_decode): Change TRACE_EXTRACT to
CGEN_TRACE_EXTRACT.
* decode-le.c (bpfbf_ebpfle_decode): Likewise.
diff --git a/sim/bpf/mloop.in b/sim/bpf/mloop.in
index 14325a2..e666835 100644
--- a/sim/bpf/mloop.in
+++ b/sim/bpf/mloop.in
@@ -137,7 +137,7 @@ cat <<EOF
insn = (((UDI) imm32) << 32) | (((UDI) off16) << 16) | (insn & 0xffff);
}
- extract (current_cpu, vpc, insn, sc, FAST_P);
+ extract (current_cpu, vpc, insn, SEM_ARGBUF (sc), FAST_P);
//XXX SEM_SKIP_COMPILE (current_cpu, sc, 1);
}