URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 847 |
Rev 848 |
Line 134... |
Line 134... |
}
|
}
|
|
|
void printout (int mode)
|
void printout (int mode)
|
{
|
{
|
unsigned long addr = start_addr & ~((1 << group_bits) - 1);
|
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)) {
|
for (; addr <= end_addr; addr += (1 << group_bits)) {
|
int i;
|
int i;
|
unsigned long a = hash_get (addr >> group_bits, 0);
|
unsigned long a = hash_get (addr >> group_bits, 0);
|
unsigned long b = hash_get (addr >> group_bits, 1);
|
unsigned long b = hash_get (addr >> group_bits, 1);
|
unsigned long c = hash_get (addr >> group_bits, 2);
|
unsigned long c = hash_get (addr >> group_bits, 2);
|
Line 172... |
Line 172... |
if (c) printf (" %10i W", c);
|
if (c) printf (" %10i W", c);
|
else printf (" W");
|
else printf (" W");
|
break;
|
break;
|
}
|
}
|
printf ("\n");
|
printf ("\n");
|
|
if (addr >= addr + (1 << group_bits)) break; /* Overflow? */
|
}
|
}
|
}
|
}
|
|
|
int main_mprofiler (int argc, char *argv[])
|
int main_mprofiler (int argc, char *argv[])
|
{
|
{
|
© copyright 1999-2025
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.