As I complied valgrind, then run it on my arm board, found this:
# ./valgrind
Illegal instruction
#
Because my arm cpu is not armv7, but the params for arm-linux-gcc contented :
#AM_CFLAGS_ARM_LINUX = $(AM_CFLAGS_BASE) -marm -mcpu=cortex-a8
#AM_CFLAGS_PSO_ARM_LINUX = $(AM_CFLAGS_BASE) -marm -mcpu=cortex-a8 $(AM_CFLAGS_PSO_BASE)
#AM_CCASFLAGS_ARM_LINUX = -marm -mcpu=cortex-a8 -g
I commented those above, then complied the source code again but found these:
m_dispatch/dispatch-arm-linux.S: Assembler messages:
m_dispatch/dispatch-arm-linux.S:103: Error: selected processor does not support ARM mode `movw r1,#47'
m_dispatch/dispatch-arm-linux.S:104: Error: selected processor does not support ARM mode `movw r2,#0'
m_dispatch/dispatch-arm-linux.S:156: Error: selected processor does not support ARM mode `movw r1,#:lower16:vgPlain_stats__n_xindirs_32'
m_dispatch/dispatch-arm-linux.S:157: Error: selected processor does not support ARM mode `movt r1,#:upper16:vgPlain_stats__n_xindirs_32'
m_dispatch/dispatch-arm-linux.S:164: Error: selected processor does not support ARM mode `movw r1,#(((1<<15))-1)'
m_dispatch/dispatch-arm-linux.S:165: Error: selected processor does not support ARM mode `movw r4,#:lower16:vgPlain_tt_fast'
m_dispatch/dispatch-arm-linux.S:168: Error: selected processor does not support ARM mode `movt r4,#:upper16:vgPlain_tt_fast'
m_dispatch/dispatch-arm-linux.S:172: Error: selected processor does not support ARM mode `ldrd r4,r5,[r1,#0]'
m_dispatch/dispatch-arm-linux.S:181: Error: selected processor does not support ARM mode `movw r1,#:lower16:vgPlain_stats__n_xindir_misses_32'
m_dispatch/dispatch-arm-linux.S:182: Error: selected processor does not support ARM mode `movt r1,#:upper16:vgPlain_stats__n_xindir_misses_32'
make[3]: *** [m_dispatch/libcoregrind_arm_linux_a-dispatch-arm-linux.o] Error 1
I am not familiar with ArmV7's disassembly code, could you help to modify the instruction movw, movt to mov ? or some which can run on ArmV9.
Thank you very very much.
|