Patchwork malta: Load kernel only during initialization

login
register
mail settings
Submitter Stefan Weil
Date Nov. 13, 2009, 10:30 p.m.
Message ID <1258151425-10206-1-git-send-email-weil@mail.berlios.de>
Download mbox | patch
Permalink /patch/38395/
State New
Headers show

Comments

Stefan Weil - Nov. 13, 2009, 10:30 p.m.
A 2nd load during reset is wrong and raises an assertion.

Signed-off-by: Stefan Weil <weil@mail.berlios.de>
---
 hw/mips_malta.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

Patch

diff --git a/hw/mips_malta.c b/hw/mips_malta.c
index 30fa6b8..094f597 100644
--- a/hw/mips_malta.c
+++ b/hw/mips_malta.c
@@ -758,7 +758,6 @@  static void main_cpu_reset(void *opaque)
        location does not change. */
     if (loaderparams.kernel_filename) {
         env->CP0_Status &= ~((1 << CP0St_BEV) | (1 << CP0St_ERL));
-        load_kernel (env);
     }
 }