Commit d59f3215 authored by Kunshan Wang's avatar Kunshan Wang

Increased the heap size for the UvmInterpreterSpec test which uses many

stacks.
parent 0b82f6b7
...@@ -21,6 +21,8 @@ class UvmInterpreterSpec extends UvmBundleTesterBase { ...@@ -21,6 +21,8 @@ class UvmInterpreterSpec extends UvmBundleTesterBase {
//"uvm.refimpl.mem" -> DEBUG, //"uvm.refimpl.mem" -> DEBUG,
"uvm.refimpl.itpr" -> DEBUG) "uvm.refimpl.itpr" -> DEBUG)
override def makeMicroVM = new MicroVM(heapSize = 64L * 1024L * 1024L)
preloadBundles("tests/uvm-refimpl-test/basic-tests.uir") preloadBundles("tests/uvm-refimpl-test/basic-tests.uir")
"The constant pool" should "contain appropriate constant values" in { "The constant pool" should "contain appropriate constant values" in {
...@@ -573,7 +575,7 @@ class UvmInterpreterSpec extends UvmBundleTesterBase { ...@@ -573,7 +575,7 @@ class UvmInterpreterSpec extends UvmBundleTesterBase {
val a7 = ca.newStack(a5, Seq()) val a7 = ca.newStack(a5, Seq())
testFunc(ca, func, Seq(a0, a0, a2, a2, a4, a4, a6, a6)) { (ca, th, st, wp) => testFunc(ca, func, Seq(a0, a0, a2, a2, a4, a4, a6, a6)) { (ca, th, st, wp) =>
val Seq(req, rne,ieq, ine, feq, fne, seq, sne) = ca.dumpKeepalives(st, 0) val Seq(req, rne, ieq, ine, feq, fne, seq, sne) = ca.dumpKeepalives(st, 0)
req.vb.asUInt(1) shouldEqual 1 req.vb.asUInt(1) shouldEqual 1
rne.vb.asUInt(1) shouldEqual 0 rne.vb.asUInt(1) shouldEqual 0
...@@ -588,7 +590,7 @@ class UvmInterpreterSpec extends UvmBundleTesterBase { ...@@ -588,7 +590,7 @@ class UvmInterpreterSpec extends UvmBundleTesterBase {
} }
testFunc(ca, func, Seq(a0, a1, a2, a3, a4, a5, a6, a7)) { (ca, th, st, wp) => testFunc(ca, func, Seq(a0, a1, a2, a3, a4, a5, a6, a7)) { (ca, th, st, wp) =>
val Seq(req, rne,ieq, ine, feq, fne, seq, sne) = ca.dumpKeepalives(st, 0) val Seq(req, rne, ieq, ine, feq, fne, seq, sne) = ca.dumpKeepalives(st, 0)
req.vb.asUInt(1) shouldEqual 0 req.vb.asUInt(1) shouldEqual 0
rne.vb.asUInt(1) shouldEqual 1 rne.vb.asUInt(1) shouldEqual 1
...@@ -608,7 +610,7 @@ class UvmInterpreterSpec extends UvmBundleTesterBase { ...@@ -608,7 +610,7 @@ class UvmInterpreterSpec extends UvmBundleTesterBase {
val ns = ca.putConstant("@NULLSTACK") val ns = ca.putConstant("@NULLSTACK")
testFunc(ca, func, Seq(nr, nr, ni, ni, nf, nf, ns, ns)) { (ca, th, st, wp) => testFunc(ca, func, Seq(nr, nr, ni, ni, nf, nf, ns, ns)) { (ca, th, st, wp) =>
val Seq(req, rne,ieq, ine, feq, fne, seq, sne) = ca.dumpKeepalives(st, 0) val Seq(req, rne, ieq, ine, feq, fne, seq, sne) = ca.dumpKeepalives(st, 0)
req.vb.asUInt(1) shouldEqual 1 req.vb.asUInt(1) shouldEqual 1
rne.vb.asUInt(1) shouldEqual 0 rne.vb.asUInt(1) shouldEqual 0
...@@ -623,7 +625,7 @@ class UvmInterpreterSpec extends UvmBundleTesterBase { ...@@ -623,7 +625,7 @@ class UvmInterpreterSpec extends UvmBundleTesterBase {
} }
testFunc(ca, func, Seq(a0, nr, a2, ni, a4, nf, a6, ns)) { (ca, th, st, wp) => testFunc(ca, func, Seq(a0, nr, a2, ni, a4, nf, a6, ns)) { (ca, th, st, wp) =>
val Seq(req, rne,ieq, ine, feq, fne, seq, sne) = ca.dumpKeepalives(st, 0) val Seq(req, rne, ieq, ine, feq, fne, seq, sne) = ca.dumpKeepalives(st, 0)
req.vb.asUInt(1) shouldEqual 0 req.vb.asUInt(1) shouldEqual 0
rne.vb.asUInt(1) shouldEqual 1 rne.vb.asUInt(1) shouldEqual 1
...@@ -796,8 +798,8 @@ class UvmInterpreterSpec extends UvmBundleTesterBase { ...@@ -796,8 +798,8 @@ class UvmInterpreterSpec extends UvmBundleTesterBase {
testFunc(ca, func, Seq()) { (ca, th, st, wp) => testFunc(ca, func, Seq()) { (ca, th, st, wp) =>
val Seq(x, y) = ca.dumpKeepalives(st, 0) val Seq(x, y) = ca.dumpKeepalives(st, 0)
ca.toInt(x, signExt=true) shouldEqual 2 ca.toInt(x, signExt = true) shouldEqual 2
ca.toInt(y, signExt=true) shouldEqual 1 ca.toInt(y, signExt = true) shouldEqual 1
TrapRebindPassVoid(st) TrapRebindPassVoid(st)
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment