mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-28 15:18:37 +08:00
sim: frv: fix up various missing prototype warnings
Some of these were missing includes, some were unused funcs we can cleanup, and some were missing prototypes for use in other files.
This commit is contained in:
@ -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>
|
2021-06-27 Mike Frysinger <vapier@gentoo.org>
|
||||||
|
|
||||||
* profile.c (wait_for_flush): Change %p to %x.
|
* profile.c (wait_for_flush): Change %p to %x.
|
||||||
|
@ -27,6 +27,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
|||||||
#include "sim-signal.h"
|
#include "sim-signal.h"
|
||||||
#include "bfd.h"
|
#include "bfd.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include "cgen-mem.h"
|
||||||
|
|
||||||
/* FR-V Interrupt table.
|
/* FR-V Interrupt table.
|
||||||
Describes the interrupts supported by the FR-V.
|
Describes the interrupts supported by the FR-V.
|
||||||
|
@ -176,6 +176,7 @@ set_acc_use_not_media_p4 (SIM_CPU *cpu, INT acc)
|
|||||||
d->cur_acc_p4 &= ~(((DI)1) << acc);
|
d->cur_acc_p4 &= ~(((DI)1) << acc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
static int
|
static int
|
||||||
acc_use_is_media_p4 (SIM_CPU *cpu, INT acc)
|
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 d->cur_acc_p4 & (((DI)1) << acc);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static void
|
static void
|
||||||
set_use_is_media_p6 (SIM_CPU *cpu, INT fr)
|
set_use_is_media_p6 (SIM_CPU *cpu, INT fr)
|
||||||
|
@ -25,6 +25,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
|||||||
|
|
||||||
#include "sim-main.h"
|
#include "sim-main.h"
|
||||||
#include "bfd.h"
|
#include "bfd.h"
|
||||||
|
#include "cgen-mem.h"
|
||||||
|
|
||||||
/* Initialize the frv simulator. */
|
/* Initialize the frv simulator. */
|
||||||
void
|
void
|
||||||
|
@ -30,7 +30,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
|||||||
#include "elf-bfd.h"
|
#include "elf-bfd.h"
|
||||||
|
|
||||||
static void free_state (SIM_DESC);
|
static void free_state (SIM_DESC);
|
||||||
static void print_frv_misc_cpu (SIM_CPU *cpu, int verbose);
|
|
||||||
|
|
||||||
/* Cover function of sim_state_free to free the cpu buffers as well. */
|
/* Cover function of sim_state_free to free the cpu buffers as well. */
|
||||||
|
|
||||||
|
@ -17,6 +17,9 @@ GNU General Public License for more details.
|
|||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
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. */
|
/* Main header for the frv. */
|
||||||
|
|
||||||
/* This is a global setting. Different cpu families can't mix-n-match -scache
|
/* 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. */
|
/* Default memory size. */
|
||||||
#define FRV_DEFAULT_MEM_SIZE 0x800000 /* 8M */
|
#define FRV_DEFAULT_MEM_SIZE 0x800000 /* 8M */
|
||||||
|
|
||||||
|
void frvbf_model_branch (SIM_CPU *, PCADDR, int hint);
|
||||||
|
void frvbf_perform_writeback (SIM_CPU *);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
Reference in New Issue
Block a user