aboutsummaryrefslogtreecommitdiff
path: root/hw/etraxfs.c
diff options
context:
space:
mode:
authorEdgar E. Iglesias <edgar.iglesias@gmail.com>2009-05-15 16:53:53 +0200
committerEdgar E. Iglesias <edgar.iglesias@gmail.com>2009-05-15 16:53:53 +0200
commitd33fd9d14b97731721e70bbb500ebc33c9e3a6ef (patch)
tree7227a6bbb206d36c94ecfa4147de14f2f8834c1b /hw/etraxfs.c
parent21aeb3430ce7ba066f394c2029c2ddf130662455 (diff)
ETRAX: Correct passing of kernel command line.
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
Diffstat (limited to 'hw/etraxfs.c')
-rw-r--r--hw/etraxfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/etraxfs.c b/hw/etraxfs.c
index 56cb249773..ad82132c3b 100644
--- a/hw/etraxfs.c
+++ b/hw/etraxfs.c
@@ -141,10 +141,10 @@ void bareetraxfs_init (ram_addr_t ram_size,
fprintf(stderr, "Too long CRIS kernel cmdline (max 256)\n");
exit(1);
}
- pstrcpy_targphys(high, 256, kernel_cmdline);
/* Let the kernel know we are modifying the cmdline. */
env->regs[10] = 0x87109563;
- env->regs[11] = high;
+ env->regs[11] = 0x40000000;
+ pstrcpy_targphys(env->regs[11], 256, kernel_cmdline);
}
}
env->pc = bootstrap_pc;