aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index 1745084..ff5ed3a 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -87,13 +87,13 @@ fn main() {
let mut cores = vec![];
for i in 0..4 {
let mut core = simulator::Core::new(
- i, start1, (0x1000 + i * 0x1000) as u32, cache1.clone(),
+ i, start1, (0x100000 * (i + 1)) as u32, cache1.clone(),
Box::new(memory::IdentityMmu::new())
);
core.registers().write_word(isa::Register::X10, i as isa::Word);
cores.push(core);
let mut core = simulator::Core::new(
- i, start2, (0x1000 + i * 0x1000) as u32, cache2.clone(),
+ i, start2, (0x100000 * (i + 1)) as u32, cache2.clone(),
Box::new(memory::ReverseMmu::new(0x4000000))
);
core.registers().write_word(isa::Register::X10, i as isa::Word);