From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f45.google.com (mail-pj1-f45.google.com [209.85.216.45]) by mx.groups.io with SMTP id smtpd.web11.24212.1676923020236522692 for ; Mon, 20 Feb 2023 11:57:00 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@ventanamicro.com header.s=google header.b=YEMROlqh; spf=pass (domain: ventanamicro.com, ip: 209.85.216.45, mailfrom: sunilvl@ventanamicro.com) Received: by mail-pj1-f45.google.com with SMTP id na9-20020a17090b4c0900b0023058bbd7b2so2432407pjb.0 for ; Mon, 20 Feb 2023 11:57:00 -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=EcAZod+2UwxTJVcFYvbssFW/hRPGmAEhoCRVSTG5ekk=; b=YEMROlqhhwiA61qdlwqethGUgJOV6IId2MUTT6R6R6vCpM+9p5OYi4leM1N5JuEyKF c2aBZBytZmsLHCRqxaE9wQ4KONnUVDK0oOZRpnEAXV1IB8LmTjRhm1Stj0RKct2CsKs2 yjHTh3QfBe+ZI05C0g/mSxPIL2I7VW4Vs4j2sWqdIoNwrhbWtFB6qhWYjbO7soYZu1qH XX4JS7zBQu8UyAqKxFUj7g3pl5gcVjQqJiYIiPPytQsF6WSTuGsBEGp/SoYUmnrHwyX2 A8t0OTr041uA3vgOA4osmW2Nxs7Zv7ULHrN4vYrZSp4OMWsCOC/r0q2FxEDe/OKzkz4o 5ODQ== 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=EcAZod+2UwxTJVcFYvbssFW/hRPGmAEhoCRVSTG5ekk=; b=t9qyZ6ayHTudPCoSWOSIa6xk7jVjgzcCE09Z/uxC67Xm12I+hwpg2PuHe8J7tq0BWs IphKXT7W30qHpMUX57OzzW6PDfxeBUQVZ7CvrFhbKMjgppRHGvggpfRwXYDBUloZh2q9 Cv6loVs5l+InrcbMf619IjADwzRYa2C5mLbmAcrZk/wBqBnEyrPWn6e0/iHIB0pk5N2+ fYhaSRlvqQZJfLRb+u0bcNO5Jq3vSJtiFWzdXUIlp21YDIYJpntQNNKdrkSkJyus8JHK qLQNlScDJdmrTcsr01rFvbo3jgHj00O4sM2q2aB9vYe/yiWESUKU0szfJRqOFlfXK82L uQvw== X-Gm-Message-State: AO0yUKWIonu86+oXe/XFojqLPcwAmQ4l+K6MZq5Yb9ObIOGnbzPH2Vt0 5Wzh5J+cYFAU7rUovj++PrDdqu0Y4AjYMjMu X-Google-Smtp-Source: AK7set80A9gVJQmmCjNSuXrv2v8Gx07Gpof+BRzSkzOLqJC1L2NwG3Lk9Vj+WSrfzX0p0z78rQX6dg== X-Received: by 2002:a17:902:bf47:b0:196:519d:8655 with SMTP id u7-20020a170902bf4700b00196519d8655mr3624173pls.5.1676923019510; Mon, 20 Feb 2023 11:56:59 -0800 (PST) Return-Path: Received: from kerodi.Dlink ([49.206.14.226]) by smtp.gmail.com with ESMTPSA id d5-20020a170902c18500b00198e12c499dsm1377799pld.282.2023.02.20.11.56.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Feb 2023 11:56:59 -0800 (PST) From: "Sunil V L" To: devel@edk2.groups.io Cc: Bob Feng , Liming Gao , Yuwei Chen , Andrei Warkentin , Heinrich Schuchardt Subject: [PATCH 1/1] BaseTools/tools_def.template: Update -march parameter for RISC-V Date: Tue, 21 Feb 2023 01:26:55 +0530 Message-Id: <20230220195655.2293454-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. 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 --- 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