sim: fix unused profile_print_addr_ranges warning
The profile_print_addr_ranges() function is only used when SIM_HAVE_ADDR_RANGE is defined, so #ifdef it accordingly.
This commit is contained in:
parent
59db87ade3
commit
739dfd28c3
|
@ -1,3 +1,8 @@
|
||||||
|
2010-03-30 Mike Frysinger <vapier@gentoo.org>
|
||||||
|
|
||||||
|
* sim-profile.c (profile_print_addr_ranges): Wrap with the
|
||||||
|
SIM_HAVE_ADDR_RANGE define.
|
||||||
|
|
||||||
2010-03-30 Mike Frysinger <vapier@gentoo.org>
|
2010-03-30 Mike Frysinger <vapier@gentoo.org>
|
||||||
|
|
||||||
* dv-glue.c (hw_glue_ports): Swap static and const.
|
* dv-glue.c (hw_glue_ports): Swap static and const.
|
||||||
|
|
|
@ -1051,6 +1051,7 @@ profile_print_speed (sim_cpu *cpu)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef SIM_HAVE_ADDR_RANGE
|
||||||
/* Print selected address ranges. */
|
/* Print selected address ranges. */
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -1071,6 +1072,7 @@ profile_print_addr_ranges (sim_cpu *cpu)
|
||||||
sim_io_printf (sd, "\n");
|
sim_io_printf (sd, "\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Top level function to print all summary profile information.
|
/* Top level function to print all summary profile information.
|
||||||
It is [currently] intended that all such data is printed by this function.
|
It is [currently] intended that all such data is printed by this function.
|
||||||
|
|
Loading…
Reference in New Issue