diff options
author | wxjstz <wxjstz@126.com> | 2017-06-09 17:10:32 +0800 |
---|---|---|
committer | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2017-07-01 00:29:38 +0000 |
commit | 05782384a7f43cb926794ff0c59b86a9159373ad (patch) | |
tree | f29e3e3dd8d9296b364c133513ff6e39b56cf04f /src/commonlib | |
parent | 8868fc616c76bf848f8870a17cedb87187aca06c (diff) |
riscv: Update the gcc built-in macro __riscv__
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 <wxjstz@126.com>
Reviewed-on: https://review.coreboot.org/20125
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Andrew Waterman <aswaterman@gmail.com>
Reviewed-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Diffstat (limited to 'src/commonlib')
-rw-r--r-- | src/commonlib/lz4_wrapper.c | 2 |
1 files changed, 1 insertions, 1 deletions
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++) |