static int
cgen_get_fast_p (SIM_DESC sd)
{
- int i, c;
- int run_fast_p = 1;
+ int c;
for (c = 0; c < MAX_NR_PROCESSORS; ++c)
{
void
scache_flush_cpu (SIM_CPU *cpu)
{
- int i,n;
+ int i;
+#if WITH_SCACHE_PBB
+ int n;
+#endif
/* Don't bother if cache not in use. */
if (CPU_SCACHE_SIZE (cpu) == 0)
unsigned long hits = CPU_SCACHE_HITS (cpu);
unsigned long misses = CPU_SCACHE_MISSES (cpu);
char buf[20];
- unsigned long max_val;
- unsigned long *lengths;
- int i;
if (CPU_SCACHE_SIZE (cpu) == 0)
return;
if (verbose)
{
+ unsigned long max_val;
+ unsigned long *lengths;
+ int i;
+
sim_io_printf (sd, " Insn chain lengths:\n\n");
max_val = 0;
lengths = CPU_SCACHE_CHAIN_LENGTHS (cpu);
SIM_RC
sim_module_install (SIM_DESC sd)
{
- MODULE_INSTALL_FN * const *modp;
-
SIM_ASSERT (STATE_MAGIC (sd) == SIM_MAGIC_NUMBER);
SIM_ASSERT (STATE_MODULES (sd) == NULL);
const char *text, const char *word)
{
const OPTION *opt = NULL;
- int argi;
size_t len = strlen (word);
for ( ; ol != NULL; ol = ol->next)
schedule_watchpoint (SIM_DESC sd,
sim_watch_point *point)
{
- sim_watchpoints *watch = STATE_WATCHPOINTS (sd);
-
switch (point->type)
{
case pc_watchpoint:
/* Buffer size. */
int bufsize = sc->arg2;
int written = 0;
- /* Q is the target address of where all the strings go. */
- TADDR q;
- int i, argc, envc, len, ret;
+ int argc, envc, len, ret;
char **argv = cb->argv;
char **envp = cb->envp;