UPSTREAM: riscv: update the definition of intptr_t/uintptr_t

These RISC-V ABIs defined by GCC : ilp32 ilp32d ilp32f lp64 lp64d lp64f.
Through this we know that the length of the long's bit is equal to pointer.
So update this code. This's more flexible.

BUG=none
BRANCH=none
TEST=none

Change-Id: I711461076799a4bef2875301715845f43389bb09
Signed-off-by: Martin Roth <martinroth@chromium.org>
Original-Commit-Id: 0e788c985c678f3f9ca84c192cd0fd04df30d70d
Original-Change-Id: I16e1a2c12c6034df75dc360b65acb1b6affec49b
Original-Signed-off-by: Xiang Wang <wxjstz@126.com>
Original-Reviewed-on: https://review.coreboot.org/27768
Original-Reviewed-by: Jonathan Neuschfer <j.neuschaefer@gmx.net>
Original-Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-on: https://chromium-review.googlesource.com/1197443
1 file changed