Use regcache->tdesc instead of arm_hwcap
authorYao Qi <yao.qi@linaro.org>
Thu, 30 Jul 2015 14:07:39 +0000 (15:07 +0100)
committerYao Qi <yao.qi@linaro.org>
Thu, 30 Jul 2015 14:07:39 +0000 (15:07 +0100)
commit89abb03951a90203c6635296447b7e96a1248a68
tree69de5c5afecb1b37be182b8f3be28a7d7dce5740
parentdeca266c89cf61c679f759a74bdf362960b0cc2c
Use regcache->tdesc instead of arm_hwcap

arm_hwcap is a global variable, and we should avoid using it as much
as we can.  Instead of checking arm_hwcap, we can check whether
regcache->tdesc is a certain kind of target description.  This is
what this patch does.

gdb/gdbserver:

2015-07-30  Yao Qi  <yao.qi@linaro.org>

* linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
Use regcache->tdesc instead.
(arm_store_wmmxregset): Likewise.
(arm_fill_vfpregset): Likewise.
(arm_store_vfpregset): Likewise.
gdb/gdbserver/ChangeLog
gdb/gdbserver/linux-arm-low.c