aboutsummaryrefslogtreecommitdiff
path: root/src/simulator.rs
diff options
context:
space:
mode:
authorDavid Li <li.davidm96@gmail.com>2015-12-15 16:25:58 -0500
committerDavid Li <li.davidm96@gmail.com>2015-12-15 16:25:58 -0500
commit98475b71bcf5a89c8c1c4c59a0c9f9ade74494f5 (patch)
treeb97cf27b7e7ed29831992880db1378b876e80f87 /src/simulator.rs
parent391dceacc280d6a339b36a85e4f0665da992b91e (diff)
Load hexdump of ELF
Diffstat (limited to 'src/simulator.rs')
-rw-r--r--src/simulator.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/simulator.rs b/src/simulator.rs
index e965686..86ddfab 100644
--- a/src/simulator.rs
+++ b/src/simulator.rs
@@ -2,8 +2,8 @@ use isa;
use binary::{Binary};
use memory::{Memory};
-pub struct Simulator<'a> {
- binary: Binary<'a>,
+pub struct Simulator {
+ binary: Binary,
num_cores: usize,
memory: Memory,
}
@@ -17,8 +17,8 @@ struct RegisterFile {
registers: [u32; 32],
}
-impl<'a> Simulator<'a> {
- pub fn new(num_cores: usize, binary: Binary<'a>) -> Simulator<'a> {
+impl Simulator {
+ pub fn new(num_cores: usize, binary: Binary) -> Simulator {
Simulator {
binary: binary,
num_cores: num_cores,