编译Valgrind的对的ARMv5 [英] Compile Valgrind for armv5

查看:1415
本文介绍了编译Valgrind的对的ARMv5的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家。我得到了一些问题,而对于用于ARMv5(ARM926EJ-S)交叉编译的valgrind。我可以找出其中的一部分,但有一个我解决不了。我会写这些问题:


  1. Valgrind的不支持配置的ARMv5 ,我不是的ARMv7 *)的ARMv7 * | *手臂)和它工作得很好。


  2. -mcpu = Cortex-A8的是不正确的,因为我有一个ARM926EJ-S CPU。所以我用这个命令来替换他们都在Makfiles:


      

    SED -i的/ -mcpu = Cortex-A8的/ -mcpu = ARM926EJ-S / g的'`找到。 -名称
      Makefile中*`



  3. 有问题来了。 MOVW MOVT 源$ C ​​$ C不被支持的ARMv5。错误消息是:



  m_dispatch /调度臂-linux.S:汇编的消息:
m_dispatch /调度臂-linux.S:122:错误:选择的处理器不支持`MOVW R1,#47
m_dispatch /调度臂-linux.S:123:错误:选择的处理器不支持`MOVW R2,#0
m_dispatch /调度臂-linux.S:175:错误:选择的处理器不支持`MOVW R1,#:lower16:vgPlain_stats__n_xindirs_32
m_dispatch /调度臂-linux.S:176:错误:选择的处理器不支持'MOVT R1,#:upper16:vgPlain_stats__n_xindirs_32
m_dispatch /调度臂-linux.S:183:错误:选择的处理器不支持`MOVW R1,#(((1 <<;&LT; 15)) - 1)'
m_dispatch /调度臂-linux.S:184:错误:选择的处理器不支持`MOVW R4,#:lower16:vgPlain_tt_fast
m_dispatch /调度臂-linux.S:187:错误:选择的处理器不支持'MOVT R4,#:upper16:vgPlain_tt_fast
m_dispatch /调度臂-linux.S:200:错误:选择的处理器不支持`MOVW R1,#:lower16:vgPlain_stats__n_xindir_misses_32
m_dispatch /调度臂-linux.S:201:错误:选择的处理器不支持'MOVT R1,#:upper16:vgPlain_stats__n_xindir_misses_32


我在想,而不是 MOVW MOVT MOV 。但我不熟悉汇编code。任何一个可以帮助?谢谢!


解决方案

有上的在Valgrind的bug跟踪它试图增加对支持的ARMv5错误248998 但我没有他们是如何完成或多么好他们的工作。

他们可能会为您的工作提供了良好的起点呢。

everyone. I got some problems while cross compile valgrind for armv5(arm926ej-s). I can figure out some of them, but there is one I cannot solve. I will write these problems:

  1. Valgrind don't support armv5 in configure, I instead armv7*) with armv7*|arm*) and it works well.

  2. -mcpu=cortex-a8 is not right since I have a arm926ej-s CPU. So I use this command to replace them all in Makfiles:

    sed -i 's/-mcpu=cortex-a8/-mcpu=arm926ej-s/g' `find . -name "Makefile*"`

  3. There comes the problem. movw and movt in the source code is not supported by armv5. The error message is:

m_dispatch/dispatch-arm-linux.S: Assembler messages:
m_dispatch/dispatch-arm-linux.S:122: Error: selected processor does not support `movw r1,#47'
m_dispatch/dispatch-arm-linux.S:123: Error: selected processor does not support `movw r2,#0'
m_dispatch/dispatch-arm-linux.S:175: Error: selected processor does not support `movw   r1,#:lower16:vgPlain_stats__n_xindirs_32'
m_dispatch/dispatch-arm-linux.S:176: Error: selected processor does not support `movt r1,#:upper16:vgPlain_stats__n_xindirs_32'
m_dispatch/dispatch-arm-linux.S:183: Error: selected processor does not support `movw r1,#(((1<<15))-1)'
m_dispatch/dispatch-arm-linux.S:184: Error: selected processor does not support `movw r4,#:lower16:vgPlain_tt_fast'
m_dispatch/dispatch-arm-linux.S:187: Error: selected processor does not support `movt r4,#:upper16:vgPlain_tt_fast'
m_dispatch/dispatch-arm-linux.S:200: Error: selected processor does not support `movw r1,#:lower16:vgPlain_stats__n_xindir_misses_32'
m_dispatch/dispatch-arm-linux.S:201: Error: selected processor does not support `movt r1,#:upper16:vgPlain_stats__n_xindir_misses_32'

I'm thinking of instead of movw and movt with mov. But I'm not familiar with assembly code. Any one could help? Thanks!

解决方案

There are some patches on bug 248998 in the valgrind bug tracker which attempt to add support for armv5 but I have no how complete they are or how well they work.

They would probably make a good starting point for your work anyway.

这篇关于编译Valgrind的对的ARMv5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆