arch-riscv: Make Zicbom/Zicboz extensions optional in FS mode
Currently, we're enable Zicbom/Zicboz by default. Since those extensions might be buggy as they are not well-tested, making those entensions optional allows running simulation where the performance implication of the instructions do not matter. Effectively, by turning off the extensions, we simply remove those extensions from the device tree, so the OS would not use them. It doesn't prohibit the userspace application to use those instructions, however. Change-Id: Ib30e98c4c39f741dec5f7d31bd7b832391686840 Signed-off-by: Hoa Nguyen <hn@hnpl.org>
This commit is contained in:
@@ -279,6 +279,18 @@ class RiscvBoard(AbstractSystemBoard, KernelDiskWorkload):
|
||||
node.append(FdtPropertyStrings("device_type", "cpu"))
|
||||
node.append(FdtPropertyWords("reg", state.CPUAddrCells(i)))
|
||||
node.append(FdtPropertyStrings("mmu-type", "riscv,sv48"))
|
||||
if core.core.isa[0].enable_Zicbom_fs.value:
|
||||
node.append(
|
||||
FdtPropertyWords(
|
||||
"riscv,cbom-block-size", self.get_cache_line_size()
|
||||
)
|
||||
)
|
||||
if core.core.isa[0].enable_Zicboz_fs.value:
|
||||
node.append(
|
||||
FdtPropertyWords(
|
||||
"riscv,cboz-block-size", self.get_cache_line_size()
|
||||
)
|
||||
)
|
||||
node.append(FdtPropertyStrings("status", "okay"))
|
||||
node.append(
|
||||
FdtPropertyStrings(
|
||||
|
||||
Reference in New Issue
Block a user