Merge pull request #120 from ucb-bar/rebar-dev-hart0-tests

use hart0 for the test suite
This commit is contained in:
Abraham Gonzalez 2019-06-13 10:29:25 -07:00 committed by GitHub
commit 9a22afb58f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -57,11 +57,11 @@ object Generator extends GeneratorApp {
import freechips.rocketchip.system.DefaultTestSuites._
val xlen = params(XLen)
// TODO: for now only generate tests for the first rocket/boom tile in the subsystem
// TODO: support heterogenous systems?
// TODO: generate tests for hart0 of the system since asm tests run on hart0 by default
// rocket specific tests
params(RocketTilesKey).headOption.map { tileParams =>
params(RocketTilesKey).find(_.hartId == 0).map { tileParams =>
val coreParams = tileParams.core
val vm = coreParams.useVM
val env = if (vm) List("p","v") else List("p")
@ -95,7 +95,7 @@ object Generator extends GeneratorApp {
}
// boom specific tests
params(BoomTilesKey).headOption.map { tileParams =>
params(BoomTilesKey).find(_.hartId == 0).map { tileParams =>
val coreParams = tileParams.core
val vm = coreParams.useVM
val env = if (vm) List("p","v") else List("p")