Created
June 16, 2024 17:30
-
-
Save cyyself/ec5ef6143c5d0ee64c8ee07dc25deab8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
for ($i=0;$i<8;$i++) { | |
?> | |
cpu_<?php echo $i; ?>: cpu@<?php echo $i; ?> { | |
compatible = "spacemit,x60", "riscv"; | |
device_type = "cpu"; | |
reg = <<?php echo $i; ?>>; | |
riscv,isa = "rv64imafdcv_zicbom_zicbop_zicboz_zicntr_zicond_zicsr_zifencei_zihintpause_zihpm_zfh_zba_zbb_zbc_zbs_zkt_zvfh_zvkt_sscofpmf_sstc_svinval_svnapot_svpbmt"; | |
riscv,isa-base = "rv64i"; | |
riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "v", "zicbom", | |
"zicbop", "zicboz", "zicntr", "zicond", "zicsr", | |
"zifencei", "zihintpause", "zihpm", "zfh", "zba", | |
"zbb", "zbc", "zbs", "zkt", "zvfh", "zvkt", | |
"sscofpmf", "sstc", "svinval", "svnapot", "svpbmt"; | |
riscv,cbom-block-size = <64>; | |
riscv,cbop-block-size = <64>; | |
riscv,cboz-block-size = <64>; | |
mmu-type = "riscv,sv39"; | |
cpu<?php echo $i; ?>_intc: interrupt-controller { | |
compatible = "riscv,cpu-intc"; | |
interrupt-controller; | |
#interrupt-cells = <1>; | |
}; | |
}; | |
<?php | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment