From: Kito Cheng Date: Sun, 11 Mar 2018 12:21:23 +0000 (+0000) Subject: [NDS32] Add new option -mvh. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ff77f6e8b3c1ad4ef3ec86289969e10100911913;p=gcc.git [NDS32] Add new option -mvh. gcc/ * config/nds32/nds32.c (nds32_cpu_cpp_builtins): Modify to define __NDS32_VH__ macro. * config/nds32/nds32.opt (mvh): New option. Co-Authored-By: Chung-Ju Wu From-SVN: r258427 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5d2df1d215c..4402f98fc26 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2018-03-11 Kito Cheng + Chung-Ju Wu + + * config/nds32/nds32.c (nds32_cpu_cpp_builtins): Modify to define + __NDS32_VH__ macro. + * config/nds32/nds32.opt (mvh): New option. + 2018-03-11 Kito Cheng Chung-Ju Wu diff --git a/gcc/config/nds32/nds32.c b/gcc/config/nds32/nds32.c index f1e64cdc171..353641129f6 100644 --- a/gcc/config/nds32/nds32.c +++ b/gcc/config/nds32/nds32.c @@ -2788,6 +2788,8 @@ nds32_cpu_cpp_builtins(struct cpp_reader *pfile) builtin_define ("__NDS32_16_BIT__"); if (TARGET_GP_DIRECT) builtin_define ("__NDS32_GP_DIRECT__"); + if (TARGET_VH) + builtin_define ("__NDS32_VH__"); if (TARGET_BIG_ENDIAN) builtin_define ("__big_endian__"); diff --git a/gcc/config/nds32/nds32.opt b/gcc/config/nds32/nds32.opt index 68f73a91a6f..876e8411f06 100644 --- a/gcc/config/nds32/nds32.opt +++ b/gcc/config/nds32/nds32.opt @@ -77,6 +77,10 @@ m16-bit Target Report Mask(16_BIT) Generate 16-bit instructions. +mvh +Target Report Mask(VH) +Enable Virtual Hosting support. + misr-vector-size= Target RejectNegative Joined UInteger Var(nds32_isr_vector_size) Init(NDS32_DEFAULT_ISR_VECTOR_SIZE) Specify the size of each interrupt vector, which must be 4 or 16.