OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 847 to Rev 848
    Reverse comparison

Rev 847 → Rev 848

/trunk/or1ksim/mprofiler.c
136,7 → 136,7
void printout (int mode)
{
unsigned long addr = start_addr & ~((1 << group_bits) - 1);
printf ("start = %08x; end = %08x; addr = %08x; group_bits = %08x\n", start_addr, end_addr, addr, group_bits);
printf ("start = %08x (%08x); end = %08x; group_bits = %08x\n", start_addr, addr, end_addr, (1 << group_bits) - 1);
for (; addr <= end_addr; addr += (1 << group_bits)) {
int i;
unsigned long a = hash_get (addr >> group_bits, 0);
174,6 → 174,7
break;
}
printf ("\n");
if (addr >= addr + (1 << group_bits)) break; /* Overflow? */
}
}
 
/trunk/or1ksim/cpu/common/parse.h
34,3 → 34,5
char *stripwhite (char *string);
char *dupstr (char *s);
char *strtoken(char *in, char *out, int which);
/* Parses string line and puts up to maxparam parameters into argv[]; number of parameters is returned */
int tokenize_line (char *str, char *argv[], int maxparam);
/trunk/or1ksim/cpu/common/parse.c
104,6 → 104,25
return (r);
}
 
/* Parses string line and puts up to maxparam parameters into argv[]; number of parameters is returned */
int tokenize_line (char *str, char *argv[], int maxparam)
{
int i, param = 0;
str = stripwhite (str);
while (*str) {
char *p;
argv[param] = str;
while (*str && !isblank (*str)) str++;
param++;
p = str;
if (param >= maxparam) break;
while (*str && isblank (*str)) str++;
*p = 0;
}
for (i = 0; i < param; i++) argv[i] = stripwhite (argv[i]);
return param;
}
 
/* Used only by the simulator loader to translate logical addresses into physical.
If loadcode() is called with valid virtphy_transl pointer to a table of
translations then translate() performs translation otherwise phy address is
/trunk/or1ksim/toplevel.c
59,7 → 59,7
#include "mc.h"
 
/* CVS revision number. */
const char rcsrev[] = "$Revision: 1.83 $";
const char rcsrev[] = "$Revision: 1.84 $";
 
/* Continuos run versus single step tracing switch. */
int cont_run;
671,10 → 671,16
if (strcmp(item1, "info") == 0) /* configuration info */
sim_info ();
else
if (strcmp (item1, "profiler") == 0) { /
av = tokenize_line (linestr
main_profiler (ac, av);
if (strcmp (item1, "profiler") == 0) { /* run profiler utility */
char *argv[10];
int argc = tokenize_line (linestr, argv, 10);
main_profiler (argc, argv);
} else
if (strcmp (item1, "mprofiler") == 0) { /* run mprofiler utility */
char *argv[10];
int argc = tokenize_line (linestr, argv, 10);
main_mprofiler (argc, argv);
} else
#if !FAST_SIM
if (strcmp(item1, "set") == 0) { /* configuration info */
char *s = linestr;

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.