This is an automated email from Gerrit.

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

-- gerrit

commit 4b591524d5e7edfea55e8af732d2193898b986d0
Author: Florian Fainelli <[email protected]>
Date:   Mon Jun 17 15:46:11 2019 -0700

    Remove BUILD_TARGET64
    
    BUILD_TARGET64 creates a larger test matrix and mostly gates the
    building of the aarch64/armv8 target, make that unconditional, which
    would help fixing any issues with 64-bit address types anyway.
    
    Change-Id: I219f62b744d540d9dde9a42e6b63fd7d91df3dbb
    Suggested-by: Matthias Welwarsky <[email protected]>
    Signed-off-by: Florian Fainelli <[email protected]>

diff --git a/configure.ac b/configure.ac
index 9991dc8..4015032 100644
--- a/configure.ac
+++ b/configure.ac
@@ -336,10 +336,6 @@ AC_ARG_ENABLE([internal-libjaylink],
   [Disable building internal libjaylink]),
   [use_internal_libjaylink=$enableval], [use_internal_libjaylink=yes])
 
-AC_ARG_ENABLE([target64],
-  AS_HELP_STRING([--disable-target64], [Disable 64-bit target address]),
-    [build_target64=$enableval], [build_target64=yes])
-
 build_minidriver=no
 AC_MSG_CHECKING([whether to enable ZY1000 minidriver])
 AS_IF([test "x$build_zy1000" = "xyes"], [
@@ -580,13 +576,6 @@ AS_IF([test "x$build_sysfsgpio" = "xyes"], [
   AC_DEFINE([BUILD_SYSFSGPIO], [0], [0 if you don't want SysfsGPIO driver.])
 ])
 
-AS_IF([test "x$build_target64" = "xyes"], [
-  AC_DEFINE([BUILD_TARGET64], [1], [1 if you want 64-bit addresses.])
-], [
-  AC_DEFINE([BUILD_TARGET64], [0], [0 if you don't want 64-bit addresses.])
-])
-
-
 PKG_CHECK_MODULES([LIBUSB1], [libusb-1.0], [
        use_libusb1=yes
        AC_DEFINE([HAVE_LIBUSB1], [1], [Define if you have libusb-1.x])
@@ -709,7 +698,6 @@ AM_CONDITIONAL([BITQ], [test "x$build_bitq" = "xyes"])
 AM_CONDITIONAL([USE_LIBFTDI], [test "x$use_libftdi" = "xyes"])
 AM_CONDITIONAL([USE_HIDAPI], [test "x$use_hidapi" = "xyes"])
 AM_CONDITIONAL([USE_LIBJAYLINK], [test "x$use_libjaylink" = "xyes"])
-AM_CONDITIONAL([TARGET64], [test "x$build_target64" = "xyes"])
 
 AM_CONDITIONAL([MINIDRIVER], [test "x$build_minidriver" = "xyes"])
 AM_CONDITIONAL([MINIDRIVER_DUMMY], [test "x$build_minidriver_dummy" = "xyes"])
diff --git a/src/helper/types.h b/src/helper/types.h
index 5e35c13..dafb08d 100644
--- a/src/helper/types.h
+++ b/src/helper/types.h
@@ -349,7 +349,6 @@ typedef uint64_t uintmax_t;
 
 #endif
 
-#if BUILD_TARGET64
 typedef uint64_t target_addr_t;
 #define TARGET_ADDR_MAX UINT64_MAX
 #define TARGET_PRIdADDR PRId64
@@ -357,15 +356,6 @@ typedef uint64_t target_addr_t;
 #define TARGET_PRIoADDR PRIo64
 #define TARGET_PRIxADDR PRIx64
 #define TARGET_PRIXADDR PRIX64
-#else
-typedef uint32_t target_addr_t;
-#define TARGET_ADDR_MAX UINT32_MAX
-#define TARGET_PRIdADDR PRId32
-#define TARGET_PRIuADDR PRIu32
-#define TARGET_PRIoADDR PRIo32
-#define TARGET_PRIxADDR PRIx32
-#define TARGET_PRIXADDR PRIX32
-#endif
 #define TARGET_ADDR_FMT "0x%8.8" TARGET_PRIxADDR
 
 #endif /* OPENOCD_HELPER_TYPES_H */
diff --git a/src/target/Makefile.am b/src/target/Makefile.am
index afa5f49..637a061 100644
--- a/src/target/Makefile.am
+++ b/src/target/Makefile.am
@@ -28,11 +28,8 @@ noinst_LTLIBRARIES += %D%/libtarget.la
        %D%/dsp563xx.c \
        %D%/dsp563xx_once.c \
        %D%/dsp5680xx.c \
-       %D%/hla_target.c
-
-if TARGET64
-%C%_libtarget_la_SOURCES +=$(ARMV8_SRC)
-endif
+       %D%/hla_target.c \
+       $(ARMV8_SRC)
 
 TARGET_CORE_SRC = \
        %D%/algorithm.c \
diff --git a/src/target/armv7a_mmu.c b/src/target/armv7a_mmu.c
index f83228d..eec14a3 100644
--- a/src/target/armv7a_mmu.c
+++ b/src/target/armv7a_mmu.c
@@ -62,12 +62,6 @@ int armv7a_mmu_translate_va_pa(struct target *target, 
uint32_t va,
 
        /* decode memory attribute */
        SS = (value >> 1) & 1;
-#if !BUILD_TARGET64
-       if (SS) {
-               LOG_ERROR("Super section found with no-64 bit address support");
-               return ERROR_FAIL;
-       }
-#endif
        NOS = (value >> 10) & 1;        /*  Not Outer shareable */
        NS = (value >> 9) & 1;  /* Non secure */
        INNER = (value >> 4) &  0x7;
diff --git a/src/target/riscv/riscv-013.c b/src/target/riscv/riscv-013.c
index 5683e5a..55f242c 100644
--- a/src/target/riscv/riscv-013.c
+++ b/src/target/riscv/riscv-013.c
@@ -1891,11 +1891,9 @@ static target_addr_t sb_read_address(struct target 
*target)
        target_addr_t address = 0;
        uint32_t v;
        if (sbasize > 32) {
-#if BUILD_TARGET64
                dmi_read(target, &v, DMI_SBADDRESS1);
                address |= v;
                address <<= 32;
-#endif
        }
        dmi_read(target, &v, DMI_SBADDRESS0);
        address |= v;
@@ -1912,11 +1910,7 @@ static int sb_write_address(struct target *target, 
target_addr_t address)
        if (sbasize > 64)
                dmi_write(target, DMI_SBADDRESS2, 0);
        if (sbasize > 32)
-#if BUILD_TARGET64
                dmi_write(target, DMI_SBADDRESS1, address >> 32);
-#else
-               dmi_write(target, DMI_SBADDRESS1, 0);
-#endif
        return dmi_write(target, DMI_SBADDRESS0, address);
 }
 
diff --git a/src/target/target.c b/src/target/target.c
index e6c4343..1a09444 100644
--- a/src/target/target.c
+++ b/src/target/target.c
@@ -145,9 +145,7 @@ static struct target_type *target_types[] = {
        &riscv_target,
        &mem_ap_target,
        &esirisc_target,
-#if BUILD_TARGET64
        &aarch64_target,
-#endif
        NULL,
 };
 

-- 


_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to