Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
---
hw/mips/bootloader.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/hw/mips/bootloader.c b/hw/mips/bootloader.c
index 3a4573118c..7f7d938f2e 100644
--- a/hw/mips/bootloader.c
+++ b/hw/mips/bootloader.c
@@ -59,7 +59,11 @@ static void bl_gen_nop(void **ptr)
{
uint32_t *p = (uint32_t *)*ptr;
- stl_p(p, 0);
+ if (bootcpu_supports_isa(ISA_NANOMIPS32)) {
+ stl_p(p, 0x8000c000);
+ } else {
+ stl_p(p, 0);
+ }
p++;
*ptr = p;
}
--
2.38.1