sim: frv: fix up various missing prototype warnings
authorMike Frysinger <vapier@gentoo.org>
Sun, 27 Jun 2021 04:02:52 +0000 (00:02 -0400)
committerMike Frysinger <vapier@gentoo.org>
Mon, 28 Jun 2021 03:35:46 +0000 (23:35 -0400)
Some of these were missing includes, some were unused funcs we can
cleanup, and some were missing prototypes for use in other files.

sim/frv/ChangeLog
sim/frv/interrupts.c
sim/frv/profile-fr400.c
sim/frv/reset.c
sim/frv/sim-if.c
sim/frv/sim-main.h

index cb4e2cfeaa1d67b1a630c90814d2b2f234b355ce..da32914d37911d3d822db89241b8ef7b4d973291 100644 (file)
@@ -1,3 +1,13 @@
+2021-06-27  Mike Frysinger  <vapier@gentoo.org>
+
+       * interrupts.c: Include cgen-mem.h.
+       * profile-fr400.c (acc_use_is_media_p4): Disable function.
+       * reset.c: Include cgen-mem.h.
+       * sim-if.c (print_frv_misc_cpu): Delete.
+       * sim-main.h (FRV_SIM_MAIN_H): Add ifdef guard.
+       (frvbf_model_branch): New prototype.
+       (frvbf_perform_writeback): Likewise.
+
 2021-06-27  Mike Frysinger  <vapier@gentoo.org>
 
        * profile.c (wait_for_flush): Change %p to %x.
index 99b27cffa948cecfee5d1d32e2abb43736e10233..64c563a2a894a1217f946c547716d1c29ee65bf7 100644 (file)
@@ -27,6 +27,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 #include "sim-signal.h"
 #include "bfd.h"
 #include <stdlib.h>
+#include "cgen-mem.h"
 
 /* FR-V Interrupt table.
    Describes the interrupts supported by the FR-V.
index f6752d88c10b423d40ae47652b216326b74e4cc0..3f2b6efcb44e902d65f2128b0f556b3bac423d26 100644 (file)
@@ -176,6 +176,7 @@ set_acc_use_not_media_p4 (SIM_CPU *cpu, INT acc)
     d->cur_acc_p4 &= ~(((DI)1) << acc);
 }
 
+#if 0
 static int
 acc_use_is_media_p4 (SIM_CPU *cpu, INT acc)
 {
@@ -184,6 +185,7 @@ acc_use_is_media_p4 (SIM_CPU *cpu, INT acc)
     return d->cur_acc_p4 & (((DI)1) << acc);
   return 0;
 }
+#endif
 
 static void
 set_use_is_media_p6 (SIM_CPU *cpu, INT fr)
index c87b99f2a9582dd1a01100e96ed25fbc524397b7..8b44fab6de60466c72a6e7a60dd2b4779ffcdc69 100644 (file)
@@ -25,6 +25,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
 #include "sim-main.h"
 #include "bfd.h"
+#include "cgen-mem.h"
 
 /* Initialize the frv simulator.  */
 void
index 3dd76ad7c9c2df742f1d68fdbc5063e438ec933e..ac5d83cbed153b2940725f27a9bbae6c2753e2b6 100644 (file)
@@ -30,7 +30,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 #include "elf-bfd.h"
 
 static void free_state (SIM_DESC);
-static void print_frv_misc_cpu (SIM_CPU *cpu, int verbose);
 \f
 /* Cover function of sim_state_free to free the cpu buffers as well.  */
 
index e2b09a3778d186f2cbd9139b713a0ab3aa68eca0..9297e55521b9d78805e76067972bf326e621d12c 100644 (file)
@@ -17,6 +17,9 @@ GNU General Public License for more details.
 You should have received a copy of the GNU General Public License
 along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
+#ifndef FRV_SIM_MAIN_H
+#define FRV_SIM_MAIN_H
+
 /* Main header for the frv.  */
 
 /* This is a global setting.  Different cpu families can't mix-n-match -scache
@@ -114,3 +117,8 @@ frv_core_signal ((SD), (CPU), (CIA), (MAP), (NR_BYTES), (ADDR), \
 
 /* Default memory size.  */
 #define FRV_DEFAULT_MEM_SIZE 0x800000 /* 8M */
+
+void frvbf_model_branch (SIM_CPU *, PCADDR, int hint);
+void frvbf_perform_writeback (SIM_CPU *);
+
+#endif
This page took 0.028089 seconds and 4 git commands to generate.