resources: Specify the number of cores to riscv platform

Due to a recent fix of HiFive platform,,
the number of cores must be explicitly specified.

Signed-off-by: Hoa Nguyen <>
Change-Id: I053e75ffb2c2d86da3478556599b70ecc45fdf49
Reviewed-by: Jason Lowe-Power <>
Maintainer: Jason Lowe-Power <>
Tested-by: Jason Lowe-Power <>
diff --git a/src/riscv-fs/configs/system/ b/src/riscv-fs/configs/system/
index 3f545f1..85d162d 100755
--- a/src/riscv-fs/configs/system/
+++ b/src/riscv-fs/configs/system/
@@ -119,6 +119,9 @@
         # Create the memory controller
+        # Set number of CPU cores
+        self.platform.setNumCores(num_cpus)
         # using RiscvLinux as the base full system workload