From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f180.google.com (mail-pf1-f180.google.com [209.85.210.180]) by mx.groups.io with SMTP id smtpd.web10.3307.1677033435957989216 for ; Tue, 21 Feb 2023 18:37:16 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@ventanamicro.com header.s=google header.b=YCOXNO9D; spf=pass (domain: ventanamicro.com, ip: 209.85.210.180, mailfrom: sunilvl@ventanamicro.com) Received: by mail-pf1-f180.google.com with SMTP id a26so3722702pfo.9 for ; Tue, 21 Feb 2023 18:37:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=57fxEN9ZhBZHol6BHiNVaDYU3p9vBtdj842tXFi7xgY=; b=YCOXNO9DkmBF4OpyfmpI9tYinqRK3Wr3zbhVPAblKe0xAGxmrVhL9hXGoZZkj4agEx FIOAdYVTodt4WlvCZ4T6g8RWrw311+jFNwPxhLXrMDmpjxUJNJIGAMrbOn9QmpXJA7O0 +1fu5L7wKzd76SiE23GjL2PiI+JF6eANeWc3HphJxJUqn1lLrZovsu305D6PiqZKB6Gx mVKmdOevngV8Nsm2wCIAD7IiHRaPzfDQ/48nJWwy7lAICOM8z7wMTzihce73vlVeUnt0 Zlx+4rojgnTGZHGqkbl5NsoPUEv2kVyExf1j8kPabg2rpt1s/5f0hTrskAC2tFVbM0Bs ipNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=57fxEN9ZhBZHol6BHiNVaDYU3p9vBtdj842tXFi7xgY=; b=zIGr0+dRWrQG+bWRfKSXaG8Gt2pNyETYZzMtnaOAvakZN9VIzJIH/urtbKT0GHMGc5 EhhGGBYJ7WrNZQiiNMtNSVn0vm91YJGEpwGZS+aLNtAtNe3dm595qz8rqB9I4XG7/2ZG dxiGmKvOTqG0/TV0nT7Ku4FMTcYX0fM7bx4Lb8YtleeslDXPFxZVd6ZucxPGCHSfQKf/ Exq4y9o6scJY7HWOW3dy9TNOCAmggEkcDN0y5PVVZEeefBM4dmQnIegCx6QYVFFVJYTO z0PeOqNJkzkQMlzYO09Zmfg077PZKgnsNPpdzRT5ZidbfM17gEMMCURYku4/AqeFCK8O 06vA== X-Gm-Message-State: AO0yUKWyS0vwkGm6Yp76yemn5v3vy395UE9Lw+J/vIGhk/EpJPXCqKMr KxK9b5vTdCcyop9enGrzupAZZxj5GAGiqtL3 X-Google-Smtp-Source: AK7set+xPcyXx+ruSatleKC/i5LFLIQphgUb8bp9cry6lbqFlGTXxILO0urL4zRjf3dcQWGuyWSFvA== X-Received: by 2002:a62:1507:0:b0:5a9:d5c7:199e with SMTP id 7-20020a621507000000b005a9d5c7199emr7135906pfv.9.1677033435266; Tue, 21 Feb 2023 18:37:15 -0800 (PST) Return-Path: Received: from kerodi.Dlink ([49.206.14.226]) by smtp.gmail.com with ESMTPSA id e24-20020aa78c58000000b00581c741f95csm10133536pfd.46.2023.02.21.18.37.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Feb 2023 18:37:14 -0800 (PST) From: "Sunil V L" To: devel@edk2.groups.io Cc: Bob Feng , Liming Gao , Yuwei Chen , Andrei Warkentin , Heinrich Schuchardt , Gerd Hoffmann Subject: [PATCH V2 1/1] BaseTools/tools_def.template: Update -march parameter for RISC-V Date: Wed, 22 Feb 2023 08:07:10 +0530 Message-Id: <20230222023710.2316619-1-sunilvl@ventanamicro.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Replace rv64imafdc with rv64gc so that it works for gcc 12. "g" means imafd in gcc < 12 and imafd_zifencei_zicsr in gcc >= 12. So, replacing rv64imafdc with rv64gc will work for both gcc <12 and gcc >=12. Cc: Bob Feng Cc: Liming Gao Cc: Yuwei Chen Cc: Andrei Warkentin Cc: Heinrich Schuchardt Signed-off-by: Sunil V L Tested-by: Gerd Hoffmann --- Changes since V1: 1) Updated commit message 2) Added Tested-by tag from Gerd BaseTools/Conf/tools_def.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BaseTools/Conf/tools_def.template b/BaseTools/Conf/tools_def.template index f77e936c0453..471eb67c0c83 100755 --- a/BaseTools/Conf/tools_def.template +++ b/BaseTools/Conf/tools_def.template @@ -1965,7 +1965,7 @@ DEFINE GCC5_RISCV_ALL_CC_FLAGS_WARNING_DISABLE = -Wno-tautological-compare -W DEFINE GCC5_RISCV_OPENSBI_TYPES = -DOPENSBI_EXTERNAL_SBI_TYPES=OpensbiTypes.h -DEFINE GCC5_RISCV64_ARCH = rv64imafdc +DEFINE GCC5_RISCV64_ARCH = rv64gc DEFINE GCC5_RISCV32_RISCV64_ASLDLINK_FLAGS = DEF(GCC5_RISCV_ALL_DLINK_COMMON) -Wl,--entry,ReferenceAcpiTable -u ReferenceAcpiTable DEFINE GCC5_RISCV64_CC_FLAGS = DEF(GCC5_RISCV_ALL_CC_FLAGS) DEF(GCC5_RISCV_ALL_CC_FLAGS_WARNING_DISABLE) DEF(GCC5_RISCV_OPENSBI_TYPES) -march=DEF(GCC5_RISCV64_ARCH) -fno-builtin -fno-builtin-memcpy -fno-stack-protector -Wno-address -fno-asynchronous-unwind-tables -Wno-unused-but-set-variable -fpack-struct=8 -mcmodel=medany -mabi=lp64 -mno-relax DEFINE GCC5_RISCV64_DLINK_FLAGS = DEF(GCC5_RISCV_ALL_DLINK_FLAGS) -Wl,-melf64lriscv,--oformat=elf64-littleriscv,--no-relax -- 2.34.1