From 05782384a7f43cb926794ff0c59b86a9159373ad Mon Sep 17 00:00:00 2001 From: wxjstz Date: Fri, 9 Jun 2017 17:10:32 +0800 Subject: riscv: Update the gcc built-in macro __riscv__ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The architecture is determined by __riscv__ in the LZ4_copy8 function (located in src / commonlib / lz4_wrapper.c). __riscv exists in gcc7.1.1. But __riscv__ does not exist. Change-Id: I38fd41da9afd76c254f0c3d6984579c3790e5792 Signed-off-by: XiangWang Reviewed-on: https://review.coreboot.org/20125 Tested-by: build bot (Jenkins) Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Andrew Waterman Reviewed-by: Jonathan Neuschäfer --- src/commonlib/lz4_wrapper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/commonlib/lz4_wrapper.c b/src/commonlib/lz4_wrapper.c index e444f2c4bc..98f2533cab 100644 --- a/src/commonlib/lz4_wrapper.c +++ b/src/commonlib/lz4_wrapper.c @@ -67,7 +67,7 @@ static void LZ4_copy8(void *dst, const void *src) : "=m"(*(uint32_t *)(dst + 4)) : [x1]"r"(x1), [dst]"r"(dst)); #endif -#elif defined(__riscv__) +#elif defined(__riscv) /* RISC-V implementations may trap on any unaligned access. */ int i; for (i = 0; i < 8; i++) -- cgit v1.2.3