Skip to content

Commit 760842d

Browse files
authored
add TARGET support for HiSilicon tsv110 CPUs
1 parent 53f482e commit 760842d

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

getarch.c

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1065,6 +1065,23 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
10651065
#else
10661066
#endif
10671067

1068+
#ifdef FORCE_TSV110
1069+
#define FORCE
1070+
#define ARCHITECTURE "ARM64"
1071+
#define SUBARCHITECTURE "TSV110"
1072+
#define SUBDIRNAME "arm64"
1073+
#define ARCHCONFIG "-DTSV110 " \
1074+
"-DL1_CODE_SIZE=65536 -DL1_CODE_LINESIZE=64 -DL1_CODE_ASSOCIATIVE=4 " \
1075+
"-DL1_DATA_SIZE=65536 -DL1_DATA_LINESIZE=64 -DL1_DATA_ASSOCIATIVE=4 " \
1076+
"-DL2_SIZE=524288 -DL2_LINESIZE=64 -DL2_ASSOCIATIVE=8 " \
1077+
"-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 " \
1078+
"-DHAVE_VFPV4 -DHAVE_VFPV3 -DHAVE_VFP -DHAVE_NEON -DARMV8"
1079+
#define LIBNAME "tsv110"
1080+
#define CORENAME "TSV110"
1081+
#else
1082+
#endif
1083+
1084+
10681085
#ifdef FORCE_ZARCH_GENERIC
10691086
#define FORCE
10701087
#define ARCHITECTURE "ZARCH"

0 commit comments

Comments
 (0)