aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/simulator.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/simulator.rs b/src/simulator.rs
index 55b2b41..971427e 100644
--- a/src/simulator.rs
+++ b/src/simulator.rs
@@ -74,8 +74,9 @@ impl RegisterFile {
}
impl Simulator {
- pub fn new(num_cores: usize, binary: Binary) -> Simulator {
- let memory = Memory::new_from_binary(0x2000, binary);
+ pub fn new(num_cores: usize, memory: Memory) -> Simulator {
+ // TODO: pass in GP, SP, _start
+ // TODO: allow API user to specify core-cache layout
// TODO: initialize GP, registers (GP is in headers)
Simulator {
num_cores: num_cores,