Add arch data for cross-compiling to CORE2
for
@@ -106,7 +106,25 @@ if (DEFINED CORE AND CMAKE_CROSSCOMPILING AND NOT (${HOST_OS} STREQUAL "WINDOWSS
file(APPEND ${TARGET_CONF_TEMP}
"#define ${TCORE}\n"
"#define CHAR_CORENAME \"${TCORE}\"\n")
- if ("${TCORE}" STREQUAL "ARMV7")
+ if ("${TCORE}" STREQUAL "CORE2")
+ file(APPEND ${TARGET_CONF_TEMP}
+ "#define L1_DATA_SIZE\t32768\n"
+ "#define L1_DATA_LINESIZE\t64\n"
+ "#define L2_SIZE\t1048576\n"
+ "#define L2_LINESIZE\t64\n"
+ "#define DTB_DEFAULT_ENTRIES\t256\n"
+ "#define DTB_SIZE\t4096\n"
+ "#define HAVE_CMOV\n"
+ "#define HAVE_MMX\n"
+ "#define HAVE_SSE\n"
+ "#define HAVE_SSE2\n"
+ "#define HAVE_SSE3\n"
+ "#define HAVE_SSSE3\n")
+ set(SGEMM_UNROLL_M 8)
+ set(SGEMM_UNROLL_N 4)
+ set(DGEMM_UNROLL_M 4)
+ set(DGEMM_UNROLL_N 4)
+ elseif ("${TCORE}" STREQUAL "ARMV7")
file(APPEND ${TARGET_CONF_TEMP}
"#define L1_DATA_SIZE\t65536\n"
"#define L1_DATA_LINESIZE\t32\n"
