From a61e86f0b9e5c27ba0f6aa792ffee43a2283b61c Mon Sep 17 00:00:00 2001 From: Nathaniel Graff Date: Fri, 14 Jun 2019 09:29:48 -0700 Subject: Don't add riscv,pmpregions to DTS 19.05-generated hardware no longer needs this, and adding the node to targets which don't support PMPs causes the wrong failure when trying to use the Metal PMP API. Signed-off-by: Nathaniel Graff --- scripts/fixup-dts | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/scripts/fixup-dts b/scripts/fixup-dts index 8b2457f..e1f7d57 100755 --- a/scripts/fixup-dts +++ b/scripts/fixup-dts @@ -29,26 +29,6 @@ else SED=gsed fi -# Add a PMP node if it doesn't exist - -if [ `grep -c 'riscv,pmp' ${dts}` -eq 0 ]; then - - echo "$0: PMP node not found in ${dts}." - - # Check for targets without PMP support - - TARGET=`echo ${dts} | cut -d '/' -f 1` - if [ "$TARGET" != "freedom-e310-arty" -a \ - "$TARGET" != "sifive-hifive1" -a \ - "$TARGET" != "coreip-e20-rtl" -a \ - "$TARGET" != "coreip-e20-arty" ]; then - - ${SED} -i '/riscv,isa/a riscv,pmpregions = <1>;' ${dts} - - echo -e "$0: \tAdded pmp@0" - fi -fi - # Add numintbits for the clic node if it doesn't exist if [ `grep -c 'sifive,clic0' ${dts}` -ne 0 ]; then -- cgit v1.2.1-18-gbd029