]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
ETRAX: Correct passing of kernel command line.
authorEdgar E. Iglesias <edgar.iglesias@gmail.com>
Fri, 15 May 2009 14:53:53 +0000 (16:53 +0200)
committerEdgar E. Iglesias <edgar.iglesias@gmail.com>
Fri, 15 May 2009 19:43:56 +0000 (21:43 +0200)
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
hw/axis_dev88.c
hw/etraxfs.c

index e7fdc639e62fda4d5f09de632737df6bfb03e7a4..9753868d871d6be6d0c4c465b98dfd233c3c5e13 100644 (file)
@@ -349,10 +349,10 @@ void axisdev88_init (ram_addr_t ram_size, int vga_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;
index eda992971f5e11ba9b4b4936058d206ece29a099..dceee9c449171e5e9fb5e160f3fe6f330b4fd620 100644 (file)
@@ -140,10 +140,10 @@ void bareetraxfs_init (ram_addr_t ram_size, int vga_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;