This is an automated email from Gerrit.

Alamy Liu ([email protected]) just uploaded a new patch set to Gerrit, which 
you can find at http://openocd.zylin.com/3262

-- gerrit

commit 65b200a78e5d9f57f5ee5a3e975d3134322db62c
Author: Alamy Liu <[email protected]>
Date:   Fri Aug 14 16:55:07 2015 -0700

    targets: Extra 64-bit common support
    
    Pick up some 64-bit support modification from
    Dongxue Zhang<[email protected]>'s patch
    
      Author: Dongxue Zhang <[email protected]>
      Date:   Mon Sep 23 16:27:03 2013 +0800
    
        Change-Id: I2e91d205862ceb14f94b3e72a7e99ee0373a85d5
        Signed-off-by: Dongxue Zhang <[email protected]>
        Signed-off-by: David Ung <[email protected]>
    
    Change-Id: Ic86e3f6313e641c3518f1890d4af33f359314218
    Signed-off-by: Alamy Liu <[email protected]>

diff --git a/configure.ac b/configure.ac
index fb01e1b..8c4ddc5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -511,6 +511,10 @@ AC_ARG_ENABLE([internal-libjaylink],
   [Disable building internal libjaylink]),
   [use_internal_libjaylink=$enableval], [use_internal_libjaylink=yes])
 
+AC_ARG_ENABLE([target64],
+  AS_HELP_STRING([--enable-target64], [Enable building support 64-bit address])
+  [build_target64=$enableval], [build_target64=no])
+
 build_minidriver=no
 AC_MSG_CHECKING([whether to enable ZY1000 minidriver])
 if test $build_zy1000 = yes; then
@@ -759,6 +763,12 @@ else
   AC_DEFINE([BUILD_BITQ], [0], [0 if you don't want a bitq interface.])
 fi
 
+if test $build_target64 = yes; then
+  AC_DEFINE([BUILD_TARGET64], [1], [1 if you want 64bit addresses.])
+else
+  AC_DEFINE([BUILD_TARGET64], [0], [0 if you don't want 64bit addresses.])
+fi
+
 AC_DEFINE([BUILD_OPENJTAG], [0], [0 if you don't want the OpenJTAG driver.])
 AC_DEFINE([BUILD_OPENJTAG_FTD2XX], [0], [0 if you don't want the OpenJTAG 
driver with FTD2XX driver.])
 AC_DEFINE([BUILD_OPENJTAG_LIBFTDI], [0], [0 if you don't want to build 
OpenJTAG driver with libftdi.])
@@ -1230,6 +1240,7 @@ AM_CONDITIONAL([IS_WIN32], [test $is_win32 = yes])
 AM_CONDITIONAL([IS_DARWIN], [test $is_darwin = yes])
 AM_CONDITIONAL([BITQ], [test $build_bitq = yes])
 AM_CONDITIONAL([CMSIS_DAP], [test $use_hidapi = yes])
+AM_CONDITIONAL([TARGET64], [test $build_target64 = yes])
 
 AM_CONDITIONAL([MINIDRIVER], [test $build_minidriver = yes])
 AM_CONDITIONAL([MINIDRIVER_DUMMY], [test $build_minidriver_dummy = yes])
diff --git a/src/helper/types.h b/src/helper/types.h
index 3f0724c..49bd988 100644
--- a/src/helper/types.h
+++ b/src/helper/types.h
@@ -305,6 +305,8 @@ static inline int parity_u32(uint32_t x)
 #define PRId8 PRId32
 #define SCNx64 "llx"
 #define PRIx64 "llx"
+#define PRId64 "lld"
+#define PRIu64 "llu"
 
 typedef CYG_ADDRWORD intptr_t;
 typedef int64_t intmax_t;

-- 

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to