From caf6340423358554f64babcc503404315ac7dc45 Mon Sep 17 00:00:00 2001
From: David Li
Date: Tue, 29 Dec 2015 15:17:55 -0700
Subject: Don't give simulator ownership of binary
---
src/simulator.rs | 5 +++--
1 file 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,
--
cgit v1.2.3