Skip to content
Commit 0440a815 authored by Nicolas Pitre's avatar Nicolas Pitre Committed by Andrew Boie
Browse files

riscv: make core code 64-bit compatible



There are two aspects to this: CPU registers are twice as big, and the
load and store instructions must use the 'd' suffix instead of the 'w'
one. To abstract register differences, we simply use a ulong_t instead
of u32_t given that RISC-V is either ILP32 or LP64. And the relevant
lw/sw instructions are replaced by LR/SR (load/store register) that get
defined as either lw/sw or ld/sd. Finally a few constants to deal with
register offsets are also provided.

Signed-off-by: default avatarNicolas Pitre <npitre@baylibre.com>
parent 1f4b5ddd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment