ソースを参照

riscv: dts: starfive: add zicsr_zifencei to riscv,isa string

Starting from gcc 12.x, csr and fence instructions have been
separated from the base I instruction set. special the
zicsr_zifencei string to DT riscv,isa string

Signed-off-by: Andy Hu <andy.hu@starfivetech.com>
Andy Hu 1 年間 前
コミット
fffd811e3d
1 ファイル変更6 行追加6 行削除
  1. 6 6
      arch/riscv/dts/jh7110.dtsi

+ 6 - 6
arch/riscv/dts/jh7110.dtsi

@@ -20,7 +20,7 @@
 		#size-cells = <0>;
 
 		cpu0: cpu@0 {
-			compatible = "sifive,u74-mc", "riscv";
+			compatible = "sifive,s7", "riscv";
 			reg = <0>;
 			d-cache-block-size = <64>;
 			d-cache-sets = <64>;
@@ -35,7 +35,7 @@
 			i-tlb-size = <40>;
 			mmu-type = "riscv,sv39";
 			next-level-cache = <&cachectrl>;
-			riscv,isa = "rv64imacu";
+			riscv,isa = "rv64imacu_zba_zbb";
 			tlb-split;
 			status = "disabled";
 
@@ -62,7 +62,7 @@
 			i-tlb-size = <40>;
 			mmu-type = "riscv,sv39";
 			next-level-cache = <&cachectrl>;
-			riscv,isa = "rv64imafdcbsux";
+			riscv,isa = "rv64imafdcbsux_zba_zbb";
 			tlb-split;
 			status = "okay";
 
@@ -89,7 +89,7 @@
 			i-tlb-size = <40>;
 			mmu-type = "riscv,sv39";
 			next-level-cache = <&cachectrl>;
-			riscv,isa = "rv64imafdcbsux";
+			riscv,isa = "rv64imafdcbsux_zba_zbb";
 			tlb-split;
 			status = "okay";
 
@@ -116,7 +116,7 @@
 			i-tlb-size = <40>;
 			mmu-type = "riscv,sv39";
 			next-level-cache = <&cachectrl>;
-			riscv,isa = "rv64imafdcbsux";
+			riscv,isa = "rv64imafdcbsux_zba_zbb";
 			tlb-split;
 			status = "okay";
 
@@ -143,7 +143,7 @@
 			i-tlb-size = <40>;
 			mmu-type = "riscv,sv39";
 			next-level-cache = <&cachectrl>;
-			riscv,isa = "rv64imafdcbsux";
+			riscv,isa = "rv64imafdcbsux_zba_zbb";
 			tlb-split;
 			status = "okay";