]> git.ipfire.org Git - thirdparty/valgrind.git/commit
arm64 Improve fpsr gdbsrv handling.
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Sun, 10 Aug 2014 10:42:10 +0000 (10:42 +0000)
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Sun, 10 Aug 2014 10:42:10 +0000 (10:42 +0000)
commit7200525296932549dc3ebfd7bb0635d35165645d
tree0c5691e3bc079f2e739c4049b22890850376228a
parentc907d5f5a10354c1e0740ab4f547a65c71ad5403
arm64 Improve fpsr gdbsrv handling.
let the compiler handle the ULong to UInt conversion rather than
play with addresses.

Tested manually GDB+vgdb that reading and setting fpsr works, using
code such as (provided by Julian, I cannot write a single line of
arm64 asm :)
 void set_fpsr ( uint32_t val ) {
     __asm__ __volatile__( "msr fpsr, %0" : : "r"(val) : "cc" );
  }

  uint32_t get_fpsr ( void ) {
     uint32_t res;
     __asm__ __volatile__( "mrs %0, fpsr" : "=r"(res) : : "cc" );
     return res;
  }

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14256
coregrind/m_gdbserver/valgrind-low-arm64.c