From e0fd25e4859e1610395b93ff6f05d67c13220cf6 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 26 Jun 2021 23:28:25 -0400 Subject: sim: bpf/cris: include cgen-mem in decoders These arches use cgen memory functions, so make sure to include the header in the modules. --- sim/bpf/ChangeLog | 5 +++++ sim/bpf/decode-be.c | 2 ++ sim/bpf/decode-le.c | 2 ++ sim/cris/ChangeLog | 5 +++++ sim/cris/decodev10.c | 1 + sim/cris/decodev32.c | 1 + 6 files changed, 16 insertions(+) (limited to 'sim') diff --git a/sim/bpf/ChangeLog b/sim/bpf/ChangeLog index 039f2c7..1bc4c84 100644 --- a/sim/bpf/ChangeLog +++ b/sim/bpf/ChangeLog @@ -1,5 +1,10 @@ 2021-06-27 Mike Frysinger + * decode-be.c: Include cgen-mem.h & cgen-ops.h. + * decode-le.c: Likewise. + +2021-06-27 Mike Frysinger + * bpf-helpers.c: Include bpf-helpers.h. * bpf-helpers.h (bpf_trace_printk): Change return type to int. (bpfbf_breakpoint): New prototype. diff --git a/sim/bpf/decode-be.c b/sim/bpf/decode-be.c index 54ebae1..71ca032 100644 --- a/sim/bpf/decode-be.c +++ b/sim/bpf/decode-be.c @@ -27,6 +27,8 @@ This file is part of the GNU simulators. #include "sim-main.h" #include "sim-assert.h" +#include "cgen-mem.h" +#include "cgen-ops.h" /* The instruction descriptor array. This is computed at runtime. Space for it is not malloc'd to save a diff --git a/sim/bpf/decode-le.c b/sim/bpf/decode-le.c index 613d33d..96f1943 100644 --- a/sim/bpf/decode-le.c +++ b/sim/bpf/decode-le.c @@ -27,6 +27,8 @@ This file is part of the GNU simulators. #include "sim-main.h" #include "sim-assert.h" +#include "cgen-mem.h" +#include "cgen-ops.h" /* The instruction descriptor array. This is computed at runtime. Space for it is not malloc'd to save a diff --git a/sim/cris/ChangeLog b/sim/cris/ChangeLog index e22e99f..cb61b0e 100644 --- a/sim/cris/ChangeLog +++ b/sim/cris/ChangeLog @@ -1,3 +1,8 @@ +2021-06-27 Mike Frysinger + + * decodev10.c: Include cgen-mem.h. + * decodev32.c: Likewise. + 2021-06-24 Mike Frysinger * cris-sim.h (cris_bmod_handler): Delete. diff --git a/sim/cris/decodev10.c b/sim/cris/decodev10.c index 798572f..6b978d0 100644 --- a/sim/cris/decodev10.c +++ b/sim/cris/decodev10.c @@ -26,6 +26,7 @@ This file is part of the GNU simulators. #include "sim-main.h" #include "sim-assert.h" +#include "cgen-mem.h" #include "cgen-ops.h" /* The instruction descriptor array. diff --git a/sim/cris/decodev32.c b/sim/cris/decodev32.c index ea57659..43b0dfb 100644 --- a/sim/cris/decodev32.c +++ b/sim/cris/decodev32.c @@ -26,6 +26,7 @@ This file is part of the GNU simulators. #include "sim-main.h" #include "sim-assert.h" +#include "cgen-mem.h" #include "cgen-ops.h" /* The instruction descriptor array. -- cgit v1.1