sim: frv: add missing const type
authorMike Frysinger <vapier@gentoo.org>
Sun, 27 Jun 2021 04:05:10 +0000 (00:05 -0400)
committerMike Frysinger <vapier@gentoo.org>
Mon, 28 Jun 2021 03:36:56 +0000 (23:36 -0400)
sim/frv/ChangeLog
sim/frv/sim-if.c

index e82e9c82e4cd0427528283d8de2aa78f383454a1..bc42a81c646fd21c298ea3efe4dd8b34d8995261 100644 (file)
@@ -1,3 +1,7 @@
+2021-06-27  Mike Frysinger  <vapier@gentoo.org>
+
+       * sim-if.c (sim_open): Mark backend_data const.
+
 2021-06-27  Mike Frysinger  <vapier@gentoo.org>
 
        * sim-main.h (SIM_ENGINE_RESTART_HOOK): Delete 0.
index ac5d83cbed153b2940725f27a9bbae6c2753e2b6..530a8dd04289e3d86af8a9ec5bfb45bf60476b93 100644 (file)
@@ -103,7 +103,7 @@ sim_open (SIM_OPEN_KIND kind, host_callback *callback, bfd *abfd,
     bfd *prog_bfd = STATE_PROG_BFD (sd);
     if (prog_bfd != NULL)
       {
-       struct elf_backend_data *backend_data;
+       const struct elf_backend_data *backend_data;
 
        if (bfd_get_arch (prog_bfd) != bfd_arch_frv)
          {