From 5c59bbe2b4ed58d28415ad1e67cb909f5965b238 Mon Sep 17 00:00:00 2001 From: David Li Date: Mon, 11 Jan 2016 09:58:59 -0700 Subject: Give player 2 correct core_id arg --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/main.rs b/src/main.rs index 143fcc8..7d17d48 100644 --- a/src/main.rs +++ b/src/main.rs @@ -109,7 +109,7 @@ fn main() { i, start2, (0x100000 * (i + 1)) as u32, core_cache, Box::new(memory::ReverseMmu::new(0x4000000)) ); - core.registers().write_word(isa::Register::X10, i as isa::Word); + core.registers().write_word(isa::Register::X10, (i - 4) as isa::Word); cores.push(core); } -- cgit v1.2.3