Add support for LoongArch

This commit is contained in:
Zhang Na
2022-09-19 14:31:36 +08:00
parent 0a17487c3a
commit a665838eb0
2 changed files with 12 additions and 0 deletions

View File

@ -18,6 +18,7 @@ obj 64 : 64.cpp ;
obj arm : arm.cpp ;
obj combined : combined.cpp ;
obj loongarch : loongarch.cpp ;
obj mips : mips.cpp ;
alias mips1 : mips ; # Backwards compatibility
obj power : power.cpp ;

View File

@ -0,0 +1,11 @@
// loongarch.cpp
//
// Copyright (c) 2022 Zhang Na
//
// Distributed under the Boost Software License Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#if !defined(__loongarch__)
#error "Not LoongArch"
#endif