summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoroharboe <oharboe>2008-02-22 17:38:08 +0000
committeroharboe <oharboe>2008-02-22 17:38:08 +0000
commit78e84633f945692c966a933df42f06f0df988e44 (patch)
treed7c1157692a38efdf951e254caf11f0138ed160c
parent648a70893907a9cb446f1546d4fd39cf6457f0e8 (diff)
downloadzpu-78e84633f945692c966a933df42f06f0df988e44.zip
zpu-78e84633f945692c966a933df42f06f0df988e44.tar.gz
* reduced memory for Phi to 2mByte to avoid Java heap out of memory.
Why does Java have trouble allocating a meagre 32mByte long array? :-)
-rw-r--r--zpu/sw/simulator/ChangeLog2
-rw-r--r--zpu/sw/simulator/com/zylin/zpu/simulator/Phi.java2
-rw-r--r--zpu/sw/simulator/com/zylin/zpu/simulator/Simulator.java2
3 files changed, 4 insertions, 2 deletions
diff --git a/zpu/sw/simulator/ChangeLog b/zpu/sw/simulator/ChangeLog
index 18b0981..2f54967 100644
--- a/zpu/sw/simulator/ChangeLog
+++ b/zpu/sw/simulator/ChangeLog
@@ -1,4 +1,6 @@
2008-02-22 Øyvind Harboe
+ * reduced memory for Phi to 2mByte to avoid Java heap out of memory.
+ Why does Java have trouble allocating a meagre 32mByte long array? :-)
* Hooked up support for the simulator to the Zylin Embedded CDT
2007-08-04 Øyvind Harboe
* First version after open sourcing ZPU
diff --git a/zpu/sw/simulator/com/zylin/zpu/simulator/Phi.java b/zpu/sw/simulator/com/zylin/zpu/simulator/Phi.java
index 0e3e7a1..663e68f 100644
--- a/zpu/sw/simulator/com/zylin/zpu/simulator/Phi.java
+++ b/zpu/sw/simulator/com/zylin/zpu/simulator/Phi.java
@@ -114,7 +114,7 @@ public class Phi extends Simulator
protected int getRAMSIZE()
{
- return 32*1024*1024;
+ return 2*1024*1024;
}
diff --git a/zpu/sw/simulator/com/zylin/zpu/simulator/Simulator.java b/zpu/sw/simulator/com/zylin/zpu/simulator/Simulator.java
index 791e253..cf6cf41 100644
--- a/zpu/sw/simulator/com/zylin/zpu/simulator/Simulator.java
+++ b/zpu/sw/simulator/com/zylin/zpu/simulator/Simulator.java
@@ -1942,7 +1942,7 @@ public class Simulator implements ZPU, Machine, Sim
protected int getRAMSIZE()
{
- return (16*1024*1024);
+ return (2*1024*1024);
}
protected int getStartStack()
OpenPOWER on IntegriCloud