summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorNathaniel Graff <nathaniel.graff@sifive.com>2019-05-22 17:53:09 +0000
committerGitHub <noreply@github.com>2019-05-22 17:53:09 +0000
commit44deff8b8d615721c11ab5f408da73030b01d0f9 (patch)
tree34cd2bb52009a596dc8de95bf2b7262f5a6ce3f9 /scripts
parent9946f2062837098088e4c9701614a2eeffaa921b (diff)
parentc5dd42c68d030a356c85bb8d174296b4f2df615d (diff)
Merge pull request #254 from sifive/dts-pmpregions
Update to new-style riscv,pmpregions property
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/fixup-dts2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/fixup-dts b/scripts/fixup-dts
index 005c5de..278b835 100755
--- a/scripts/fixup-dts
+++ b/scripts/fixup-dts
@@ -43,7 +43,7 @@ if [ `grep -c 'riscv,pmp' ${dts}` -eq 0 ]; then
$TARGET != "coreip-e20-rtl" -a \
$TARGET != "coreip-e20-arty" ]; then
- ${SED} -i 's/ranges;/ranges;\n\t\tpmp: pmp@0 {\n\t\t\tcompatible = "riscv,pmp";\n\t\t\tregions = <1>;\n\t\t};/' ${dts}
+ ${SED} -i '/riscv,isa/a riscv,pmpregions = <1>;' ${dts}
echo -e "$0: \tAdded pmp@0"
fi