tools/litex_json2dts_linux: fix tlb-split
This is also relevant to vexriscv_smp, not rocket specific. Fixes these dt-schema validation errors: cpus: cpu@0: 'tlb-split' is a dependency of 'd-tlb-size' from schema : http://devicetree.org/schemas/cpus.yaml# cpus: cpu@0: 'tlb-split' is a dependency of 'd-tlb-sets' from schema : http://devicetree.org/schemas/cpus.yaml# cpus: cpu@0: 'tlb-split' is a dependency of 'i-tlb-size' from schema : http://devicetree.org/schemas/cpus.yaml# cpus: cpu@0: 'tlb-split' is a dependency of 'i-tlb-sets' from schema : http://devicetree.org/schemas/cpus.yaml#
This commit is contained in:
parent
8a0d50b03e
commit
ddc521b033
|
@ -161,6 +161,7 @@ def generate_dts(d, initrd_start=None, initrd_size=None, initrd=None, root_devic
|
||||||
tlb_desc = ""
|
tlb_desc = ""
|
||||||
if "config_cpu_dtlb_size" in d["constants"]:
|
if "config_cpu_dtlb_size" in d["constants"]:
|
||||||
tlb_desc += """
|
tlb_desc += """
|
||||||
|
tlb-split;
|
||||||
d-tlb-size = <{d_tlb_size}>;
|
d-tlb-size = <{d_tlb_size}>;
|
||||||
d-tlb-sets = <{d_tlb_ways}>;
|
d-tlb-sets = <{d_tlb_ways}>;
|
||||||
""".format(
|
""".format(
|
||||||
|
@ -181,7 +182,6 @@ def generate_dts(d, initrd_start=None, initrd_size=None, initrd=None, root_devic
|
||||||
next-level-cache = <&memory>;
|
next-level-cache = <&memory>;
|
||||||
riscv,pmpgranularity = <4>;
|
riscv,pmpgranularity = <4>;
|
||||||
riscv,pmpregions = <8>;
|
riscv,pmpregions = <8>;
|
||||||
tlb-split;
|
|
||||||
"""
|
"""
|
||||||
else:
|
else:
|
||||||
extra_attr = ""
|
extra_attr = ""
|
||||||
|
|
Loading…
Reference in New Issue