1menu "CPU errata selection" 2 3config RISCV_ERRATA_ALTERNATIVE 4 bool "RISC-V alternative scheme" 5 depends on !XIP_KERNEL 6 default y 7 help 8 This Kconfig allows the kernel to automatically patch the 9 errata required by the execution platform at run time. The 10 code patching is performed once in the boot stages. It means 11 that the overhead from this mechanism is just taken once. 12 13config ERRATA_SIFIVE 14 bool "SiFive errata" 15 depends on RISCV_ERRATA_ALTERNATIVE 16 help 17 All SiFive errata Kconfig depend on this Kconfig. Disabling 18 this Kconfig will disable all SiFive errata. Please say "Y" 19 here if your platform uses SiFive CPU cores. 20 21 Otherwise, please say "N" here to avoid unnecessary overhead. 22 23config ERRATA_SIFIVE_CIP_453 24 bool "Apply SiFive errata CIP-453" 25 depends on ERRATA_SIFIVE && 64BIT 26 default y 27 help 28 This will apply the SiFive CIP-453 errata to add sign extension 29 to the $badaddr when exception type is instruction page fault 30 and instruction access fault. 31 32 If you don't know what to do here, say "Y". 33 34config ERRATA_SIFIVE_CIP_1200 35 bool "Apply SiFive errata CIP-1200" 36 depends on ERRATA_SIFIVE && 64BIT 37 default y 38 help 39 This will apply the SiFive CIP-1200 errata to repalce all 40 "sfence.vma addr" with "sfence.vma" to ensure that the addr 41 has been flushed from TLB. 42 43 If you don't know what to do here, say "Y". 44 45endmenu 46