mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-04 02:18:37 +00:00
It's reorg only. No new cache autodetection stuff has been added.
coregrind
pub_tool_cpuid.h is removed as it is no longer exposed to tools.
Its contents has moved to pub_core_cpuid.h.
New file: coregrind/m_cache.c to contain the autodetect code for
cache configurations and define other cache characteristics that
cannot be autodetected (i.e. icaches_maintain_coherence). Most of
cg-arch/x86-amd64.c was moved here. The cache detection code for
x86-64 needs to be fixed to properly initialise VexCacheInfo. It
currently has cachegrind bias.
m_cache.c exports a single function (to coregrind):
VG_(machine_get_cache_info)(VexArchInfo *vai)
This function is called from VG_(machine_get_hwcaps) after hwcaps have
been detected.
cachegrind
Remove cachegrind/cg-{ppc32,ppc43,arm,mips32,s390x,x86-amd64}.c
With the exception of x86/mamd64 those were only establishing a
default cache configuration and that is so small a code snippet that
a separate file is no longer warranted. So, the code was moved to
cg-arch.c. Code was added to extract the relevant info from
x86-amd64.
New function maybe_tweak_LLc which captures the code to massage the
LLc cache configuration into something the simulator can handle. This
was originally in cg-x86-amd64.c but should be used to all architectures.
Changed warning message about missing cache auto-detect feature
to be more useful. Adapted filter-stderr scripts accordingly.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13028
91 lines
2.8 KiB
Makefile
91 lines
2.8 KiB
Makefile
include $(top_srcdir)/Makefile.tool.am
|
|
|
|
EXTRA_DIST = \
|
|
docs/callgrind_annotate-manpage.xml \
|
|
docs/callgrind_control-manpage.xml \
|
|
docs/cl-manual.xml \
|
|
docs/cl-format.xml
|
|
|
|
#----------------------------------------------------------------------------
|
|
# Headers, etc
|
|
#----------------------------------------------------------------------------
|
|
|
|
pkginclude_HEADERS = callgrind.h
|
|
|
|
bin_SCRIPTS = \
|
|
callgrind_annotate \
|
|
callgrind_control
|
|
|
|
noinst_HEADERS = \
|
|
costs.h \
|
|
events.h \
|
|
global.h
|
|
|
|
#----------------------------------------------------------------------------
|
|
# callgrind-<platform>
|
|
#----------------------------------------------------------------------------
|
|
|
|
noinst_PROGRAMS = callgrind-@VGCONF_ARCH_PRI@-@VGCONF_OS@
|
|
if VGCONF_HAVE_PLATFORM_SEC
|
|
noinst_PROGRAMS += callgrind-@VGCONF_ARCH_SEC@-@VGCONF_OS@
|
|
endif
|
|
|
|
CALLGRIND_SOURCES_COMMON = \
|
|
bb.c \
|
|
bbcc.c \
|
|
callstack.c \
|
|
clo.c \
|
|
context.c \
|
|
costs.c \
|
|
debug.c \
|
|
dump.c \
|
|
events.c \
|
|
fn.c \
|
|
jumps.c \
|
|
main.c \
|
|
sim.c \
|
|
threads.c \
|
|
../cachegrind/cg-arch.c
|
|
|
|
CALLGRIND_CFLAGS_COMMON = -I$(top_srcdir)/cachegrind
|
|
|
|
callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_SOURCES = \
|
|
$(CALLGRIND_SOURCES_COMMON)
|
|
callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CPPFLAGS = \
|
|
$(AM_CPPFLAGS_@VGCONF_PLATFORM_PRI_CAPS@)
|
|
callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CFLAGS = \
|
|
$(AM_CFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) $(CALLGRIND_CFLAGS_COMMON)
|
|
callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_DEPENDENCIES = \
|
|
$(TOOL_DEPENDENCIES_@VGCONF_PLATFORM_PRI_CAPS@)
|
|
callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDADD = \
|
|
$(TOOL_LDADD_@VGCONF_PLATFORM_PRI_CAPS@)
|
|
callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDFLAGS = \
|
|
$(TOOL_LDFLAGS_@VGCONF_PLATFORM_PRI_CAPS@)
|
|
callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LINK = \
|
|
$(top_builddir)/coregrind/link_tool_exe_@VGCONF_OS@ \
|
|
@VALT_LOAD_ADDRESS_PRI@ \
|
|
$(LINK) \
|
|
$(callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CFLAGS) \
|
|
$(callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDFLAGS)
|
|
|
|
if VGCONF_HAVE_PLATFORM_SEC
|
|
callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_SOURCES = \
|
|
$(CALLGRIND_SOURCES_COMMON)
|
|
callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CPPFLAGS = \
|
|
$(AM_CPPFLAGS_@VGCONF_PLATFORM_SEC_CAPS@)
|
|
callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CFLAGS = \
|
|
$(AM_CFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) $(CALLGRIND_CFLAGS_COMMON)
|
|
callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_DEPENDENCIES = \
|
|
$(TOOL_DEPENDENCIES_@VGCONF_PLATFORM_SEC_CAPS@)
|
|
callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDADD = \
|
|
$(TOOL_LDADD_@VGCONF_PLATFORM_SEC_CAPS@)
|
|
callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDFLAGS = \
|
|
$(TOOL_LDFLAGS_@VGCONF_PLATFORM_SEC_CAPS@)
|
|
callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LINK = \
|
|
$(top_builddir)/coregrind/link_tool_exe_@VGCONF_OS@ \
|
|
@VALT_LOAD_ADDRESS_SEC@ \
|
|
$(LINK) \
|
|
$(callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CFLAGS) \
|
|
$(callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDFLAGS)
|
|
endif
|