pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

lldb-netbsd: Support MM0..7 registers in FPR



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Sat Apr 15 18:05:16 2017 +0200
Changeset:	6fbb6615b091ae5a89bc0619c348a3a7a07fdc34

Modified Files:
	lldb-netbsd/distinfo
	lldb-netbsd/patches/patch-source_Plugins_Process_NetBSD_NativeRegisterContextNetBSD__x86__64.cpp

Log Message:
lldb-netbsd: Support MM0..7 registers in FPR

Sponsored by <The NetBSD Foundation>

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=6fbb6615b091ae5a89bc0619c348a3a7a07fdc34

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 lldb-netbsd/distinfo                               |  2 +-
 ...NetBSD_NativeRegisterContextNetBSD__x86__64.cpp | 28 +++++++++++++++++++---
 2 files changed, 26 insertions(+), 4 deletions(-)

diffs:
diff --git a/lldb-netbsd/distinfo b/lldb-netbsd/distinfo
index 81baa8eb7c..a8f0e22b14 100644
--- a/lldb-netbsd/distinfo
+++ b/lldb-netbsd/distinfo
@@ -15,7 +15,7 @@ Size (llvm-3.6.2.src.tar.xz) = 12802380 bytes
 SHA1 (patch-source_Plugins_Process_NetBSD_NativeProcessNetBSD.cpp) = e29554252e70fc9e1cb62b40ce32f93fad24d71b
 SHA1 (patch-source_Plugins_Process_NetBSD_NativeRegisterContextNetBSD.cpp) = abeb0ceb532831404f692f2e25532f81f2a83163
 SHA1 (patch-source_Plugins_Process_NetBSD_NativeRegisterContextNetBSD.h) = 30ef94fb108271313ec61cf4d293fe5d9709948b
-SHA1 (patch-source_Plugins_Process_NetBSD_NativeRegisterContextNetBSD__x86__64.cpp) = cfd03e86338600cc1d41169a867b10a2e4eca5a4
+SHA1 (patch-source_Plugins_Process_NetBSD_NativeRegisterContextNetBSD__x86__64.cpp) = 6d519b2c0cde07187d9df54da0c9b616b957ea65
 SHA1 (patch-source_Plugins_Process_NetBSD_NativeRegisterContextNetBSD__x86__64.h) = 21d5cd9cb1632ed2bbd696f0c3bec68eebf0be83
 SHA1 (patch-source_Plugins_Process_NetBSD_NativeThreadNetBSD.cpp) = d788ea7d92ffa31f2d6477e11129fc9b9fd0b8eb
 SHA1 (patch-source_Plugins_Process_NetBSD_NativeThreadNetBSD.h) = d2586e2ecdc2c979c59fc1a6a569e7870d3334ba
diff --git a/lldb-netbsd/patches/patch-source_Plugins_Process_NetBSD_NativeRegisterContextNetBSD__x86__64.cpp b/lldb-netbsd/patches/patch-source_Plugins_Process_NetBSD_NativeRegisterContextNetBSD__x86__64.cpp
index de0b99eb50..e0cc16e866 100644
--- a/lldb-netbsd/patches/patch-source_Plugins_Process_NetBSD_NativeRegisterContextNetBSD__x86__64.cpp
+++ b/lldb-netbsd/patches/patch-source_Plugins_Process_NetBSD_NativeRegisterContextNetBSD__x86__64.cpp
@@ -125,7 +125,7 @@ $NetBSD$
    default:
      break;
    }
-@@ -285,6 +360,76 @@ Error NativeRegisterContextNetBSD_x86_64
+@@ -285,6 +360,87 @@ Error NativeRegisterContextNetBSD_x86_64
    case lldb_es_x86_64:
      reg_value = (uint64_t)m_gpr_x86_64.regs[_REG_ES];
      break;
@@ -170,6 +170,17 @@ $NetBSD$
 +    reg_value.SetBytes(&m_fpr_x86_64.fxstate.fx_87_ac[reg - lldb_st0_x86_64],
 +                       reg_info->byte_size, endian::InlHostByteOrder());
 +    break;
++  case lldb_mm0_x86_64:
++  case lldb_mm1_x86_64:
++  case lldb_mm2_x86_64:
++  case lldb_mm3_x86_64:
++  case lldb_mm4_x86_64:
++  case lldb_mm5_x86_64:
++  case lldb_mm6_x86_64:
++  case lldb_mm7_x86_64:
++    reg_value.SetBytes(&m_fpr_x86_64.fxstate.fx_xmm[reg - lldb_mm0_x86_64],
++                       reg_info->byte_size, endian::InlHostByteOrder());
++    break;
 +  case lldb_xmm0_x86_64:
 +  case lldb_xmm1_x86_64:
 +  case lldb_xmm2_x86_64:
@@ -202,7 +213,7 @@ $NetBSD$
    }
  
    return error;
-@@ -400,6 +545,76 @@ Error NativeRegisterContextNetBSD_x86_64
+@@ -400,6 +556,87 @@ Error NativeRegisterContextNetBSD_x86_64
    case lldb_es_x86_64:
      m_gpr_x86_64.regs[_REG_ES] = reg_value.GetAsUInt64();
      break;
@@ -247,6 +258,17 @@ $NetBSD$
 +    ::memcpy(&m_fpr_x86_64.fxstate.fx_87_ac[reg - lldb_st0_x86_64],
 +             reg_value.GetBytes(), reg_value.GetByteSize());
 +    break;
++  case lldb_mm0_x86_64:
++  case lldb_mm1_x86_64:
++  case lldb_mm2_x86_64:
++  case lldb_mm3_x86_64:
++  case lldb_mm4_x86_64:
++  case lldb_mm5_x86_64:
++  case lldb_mm6_x86_64:
++  case lldb_mm7_x86_64:
++    ::memcpy(&m_fpr_x86_64.fxstate.fx_xmm[reg - lldb_mm0_x86_64],
++             reg_value.GetBytes(), reg_value.GetByteSize());
++    break;
 +  case lldb_xmm0_x86_64:
 +  case lldb_xmm1_x86_64:
 +  case lldb_xmm2_x86_64:
@@ -279,7 +301,7 @@ $NetBSD$
    }
  
    if (WriteRegisterSet(set) != 0)
-@@ -480,4 +695,223 @@ Error NativeRegisterContextNetBSD_x86_64
+@@ -480,4 +717,223 @@ Error NativeRegisterContextNetBSD_x86_64
    return error;
  }
  


Home | Main Index | Thread Index | Old Index