Skip to content

Commit 7c4cd82

Browse files
committed
buildroot: add RVH based build file and configuration
Signed-off-by: Inochi Amaoto <inochiama@gmail.com>
1 parent ea59638 commit 7c4cd82

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

buildroot/boards/naxriscv_sim/linux/linux_raw.config

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ CONFIG_FPU=y
1717
#else
1818
CONFIG_FPU=n
1919
#endif
20+
#ifdef RVH
21+
CONFIG_KVM=y
22+
#endif
2023
CONFIG_SMP=y
2124
CONFIG_STRICT_KERNEL_RWX=n
2225
CONFIG_EFI=n

buildroot/configs/rv64imafdch.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
FLAGS+=" -DISA=rv64imafdc"
4+
FLAGS+=" -DISA_STR=\"rv64imafdc\""
5+
FLAGS+=" -DXLEN=64"
6+
FLAGS+=" -DABI=lp64d"
7+
FLAGS+=" -DMMU_TYPE=\"riscv,sv39\""
8+
FLAGS+=" -DRV64"
9+
FLAGS+=" -DRVC=y"
10+
FLAGS+=" -DFPU=y"
11+
FLAGS+=" -DRVH=y"

0 commit comments

Comments
 (0)